diff options
author | ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2022-02-16 10:00:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 11:00:15 +0100 |
commit | 482380091f93a2d86ea2f959fca6aadd2646700a (patch) | |
tree | edca4700abec8b0c18f09c44d5349aee86980359 | |
parent | 031089460eda53bd4af5e0b1bf7a0dfb7d41ef3e (diff) | |
download | NorthstarMods-482380091f93a2d86ea2f959fca6aadd2646700a.tar.gz NorthstarMods-482380091f93a2d86ea2f959fca6aadd2646700a.zip |
Fixed battery bug in LTS (#218)
Remove all batteries from players at the end of a round for round-based modes
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut index 5d27a17e..85cc0de5 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut @@ -666,7 +666,7 @@ void function CleanUpEntitiesForRoundEnd() foreach ( entity player in GetPlayerArray() ) { ClearTitanAvailable( player ) - + player.SetPlayerNetInt( "batteryCount", 0 ) if ( IsAlive( player ) ) player.Die( svGlobal.worldspawn, svGlobal.worldspawn, { damageSourceId = eDamageSourceId.round_end } ) } @@ -675,7 +675,6 @@ void function CleanUpEntitiesForRoundEnd() { if ( !IsValid( npc ) ) continue - // kill rather than destroy, as destroying will cause issues with children which is an issue especially for dropships and titans npc.Die( svGlobal.worldspawn, svGlobal.worldspawn, { damageSourceId = eDamageSourceId.round_end } ) } @@ -854,4 +853,4 @@ float function GetTimeLimit_ForGameMode() // default to 10 mins, because that seems reasonable return GetCurrentPlaylistVarFloat( playlistString, 10 ) -}
\ No newline at end of file +} |