aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
diff options
context:
space:
mode:
authorWill Castro <39478251+VITALISED@users.noreply.github.com>2022-01-16 15:00:52 +1100
committerWill Castro <39478251+VITALISED@users.noreply.github.com>2022-01-16 15:00:52 +1100
commit1f6c2ce8e7a5a5ba47e773bd6173f228b507e8fd (patch)
tree74a71adbe72e98561fb74ff1ea7c76c167c3be57 /Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
parent358b243fe65cd319fb871c331fb359437ad1d395 (diff)
downloadNorthstarMods-1f6c2ce8e7a5a5ba47e773bd6173f228b507e8fd.tar.gz
NorthstarMods-1f6c2ce8e7a5a5ba47e773bd6173f228b507e8fd.zip
Swag fix
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut5
1 files changed, 4 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 d3fc4c950..b169de632 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
@@ -284,12 +284,15 @@ void function PostDeathThread_MP( entity player, var damageInfo ) // based on ga
table<int, bool> alreadyAssisted
foreach( DamageHistoryStruct attackerInfo in player.e.recentDamageHistory )
{
- if( attackerInfo.attacker != attacker && !alreadyAssisted[attackerInfo.attacker.GetEncodedEHandle()] )
+ bool exists = attackerInfo.attacker.GetEncodedEHandle() in alreadyAssisted ? true : false
+ if( attackerInfo.attacker != attacker && !exists )
{
alreadyAssisted[attackerInfo.attacker.GetEncodedEHandle()] <- true
Remote_CallFunction_NonReplay( attackerInfo.attacker, "ServerCallback_SetAssistInformation", attackerInfo.damageSourceId, attacker.GetEncodedEHandle(), player.GetEncodedEHandle(), attackerInfo.time )
AddPlayerScore(attackerInfo.attacker, "PilotAssist" )
}
+
+
}
player.p.rematchOrigin = player.p.deathOrigin