aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts
diff options
context:
space:
mode:
authorx3Karma <juliuslimck@gmail.com>2022-01-07 16:16:25 +0800
committerGitHub <noreply@github.com>2022-01-07 16:16:25 +0800
commitf0e833da58233c0bb6bf7aa92b8c105448d72343 (patch)
tree2049aac5bd6c7d94d69031fcfceff99b128815a4 /Northstar.CustomServers/mod/scripts/vscripts
parent42f66d01d16b0d562fa08e3f5a1bc66e97ef5c43 (diff)
downloadNorthstarMods-f0e833da58233c0bb6bf7aa92b8c105448d72343.tar.gz
NorthstarMods-f0e833da58233c0bb6bf7aa92b8c105448d72343.zip
ClearLastAttacker added after respawning
to prevent any method of suicide to continue crediting the previous killer.
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut3
1 files changed, 2 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
index b8cd67ad..69274062 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
@@ -222,6 +222,7 @@ void function CodeCallback_OnPlayerRespawned( entity player )
player.SetPredictionEnabled( true )
Loadouts_TryGivePilotLoadout( player )
SetHumanRagdollImpactTable( player )
+ ClearLastAttacker( player ) // so dying to anything doesn't credit the same attacker after respawning
foreach ( entity weapon in player.GetMainWeapons() )
weapon.SetProScreenOwner( player )
@@ -630,4 +631,4 @@ float function GetTitanBuildTime(entity player)
void function TitanPlayerHotDropsIntoLevel( entity player )
{
-} \ No newline at end of file
+}