aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers
diff options
context:
space:
mode:
authorDinorush <62536724+Dinorush@users.noreply.github.com>2022-02-16 05:13:19 -0500
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-02-16 11:18:14 +0100
commitfcb5f672aa65ef3424c589a0182d6d2e1623cec3 (patch)
tree38635c82454ddfd8e8d132b8dcb7ca0ce616d6ee /Northstar.CustomServers
parentc346b535e92ad1ad996835a7dc21be43f8ca24d1 (diff)
downloadNorthstarMods-fcb5f672aa65ef3424c589a0182d6d2e1623cec3.tar.gz
NorthstarMods-fcb5f672aa65ef3424c589a0182d6d2e1623cec3.zip
Cleanup tracked player projectiles on round end (#219)
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut1
1 files changed, 1 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
index 85cc0de5..aa14477a 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
@@ -666,6 +666,7 @@ 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 } )