diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-02-16 20:50:56 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-02-16 20:50:56 +0000 |
commit | 695a7e279235d13590afef1531d6cd53736d947b (patch) | |
tree | e49a206928c660701f87cd401c1a0d8792df88fd /Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut | |
parent | 4bba08f72314824df075387b3f8fb4450d192e5a (diff) | |
parent | 031d351db8900f5f7dc8aed0ea59e9f902667b84 (diff) | |
download | NorthstarMods-695a7e279235d13590afef1531d6cd53736d947b.tar.gz NorthstarMods-695a7e279235d13590afef1531d6cd53736d947b.zip |
Merge branch 'main' of https://github.com/R2Northstar/NorthstarMods
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut | 6 |
1 files changed, 3 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 5d27a17e6..aa14477ac 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut @@ -666,7 +666,8 @@ void function CleanUpEntitiesForRoundEnd() foreach ( entity player in GetPlayerArray() ) { ClearTitanAvailable( player ) - + PROTO_CleanupTrackedProjectiles( player ) + player.SetPlayerNetInt( "batteryCount", 0 ) if ( IsAlive( player ) ) player.Die( svGlobal.worldspawn, svGlobal.worldspawn, { damageSourceId = eDamageSourceId.round_end } ) } @@ -675,7 +676,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 +854,4 @@ float function GetTimeLimit_ForGameMode() // default to 10 mins, because that seems reasonable return GetCurrentPlaylistVarFloat( playlistString, 10 ) -}
\ No newline at end of file +} |