diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-10-31 23:16:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-31 23:16:58 +0000 |
commit | ef8a419edea010f39c35b913626c35900f052e2b (patch) | |
tree | cf1cdbd0c31fc6bc9b887c615cedc50c7fe0d6eb /Northstar.Client | |
parent | dae4a32f1c4b0f04a50fa462d00ce6ebee92b2ee (diff) | |
download | NorthstarMods-ef8a419edea010f39c35b913626c35900f052e2b.tar.gz NorthstarMods-ef8a419edea010f39c35b913626c35900f052e2b.zip |
restore hud_takesshots functionality to automatically take screenshots of scoreboard (#522)
* restore hud_takesshots functionality to take screenshots of scoreboard
automatically
* fixup some formatting
Diffstat (limited to 'Northstar.Client')
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/client/cl_gamestate.gnut | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/client/cl_gamestate.gnut b/Northstar.Client/mod/scripts/vscripts/client/cl_gamestate.gnut index 93be01ea..1baeae9f 100644 --- a/Northstar.Client/mod/scripts/vscripts/client/cl_gamestate.gnut +++ b/Northstar.Client/mod/scripts/vscripts/client/cl_gamestate.gnut @@ -1105,8 +1105,16 @@ void function DisplayPostMatchTop3() RuiSetBool( rui, "isFriendly" + i, localTeam == players[i].GetTeam() ) } } + + if ( GetConVarBool( "hud_takesshots" ) ) + thread TakeScoreboardScreenshot_Delayed() } +void function TakeScoreboardScreenshot_Delayed() +{ + wait 1.5 + GetLocalClientPlayer().ClientCommand( "jpeg" ) +} float function GetGameStartTime() { |