aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts/gamemodes
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-14 02:20:10 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-14 02:20:10 +0000
commit1b6e5af70bf442c684b891003e516329b190c130 (patch)
treeb8df2155f13ac612bfa45bfadf783b3789f117cb /Northstar.Custom/mod/scripts/vscripts/gamemodes
parent4eaace462efe15328fcc171f2c7f85ff29a9e821 (diff)
downloadNorthstarMods-1b6e5af70bf442c684b891003e516329b190c130.tar.gz
NorthstarMods-1b6e5af70bf442c684b891003e516329b190c130.zip
various fixes
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts/gamemodes')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut10
1 files changed, 7 insertions, 3 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut
index 8c68f554..5794260b 100644
--- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut
+++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut
@@ -16,9 +16,13 @@ void function GamemodeGG_Init()
AddCallback_GameStateEnter( eGameState.WinnerDetermined, OnWinnerDetermined )
- // set scorelimit if it's wrongm sort of a jank way to do it but best i've got rn
- if ( GetCurrentPlaylistVarInt( "scorelimit", GetGunGameWeapons().len() ) != GetGunGameWeapons().len() )
- SetPlaylistVarOverride( "scorelimit", GetGunGameWeapons().len().tostring() )
+ // set scorelimit if it's wrong, sort of a jank way to do it but best i've got rn
+ try
+ {
+ if ( GetCurrentPlaylistVarInt( "scorelimit", GetGunGameWeapons().len() ) != GetGunGameWeapons().len() )
+ SetPlaylistVarOverride( "scorelimit", GetGunGameWeapons().len().tostring() )
+ }
+ catch ( ex ) {}
}
void function OnPlayerRespawned( entity player )