diff options
author | Connie Price <contact@connieprice.co.uk> | 2022-02-11 23:36:05 +0000 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-02-12 13:47:33 -0300 |
commit | b389be9738dd6c535806dec1ae77e7327d02d5e2 (patch) | |
tree | 7569c352126c05e61c0ae31525f366c7a47b95a4 | |
parent | 855e7f3e8b5f1a9198b7b9eeb3de7af420fa8694 (diff) | |
download | NorthstarMods-b389be9738dd6c535806dec1ae77e7327d02d5e2.tar.gz NorthstarMods-b389be9738dd6c535806dec1ae77e7327d02d5e2.zip |
Quick GunGame Assist Fix
-rw-r--r-- | Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut index 14f5f15d..4d3d6612 100644 --- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut +++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut @@ -81,7 +81,7 @@ void function OnPlayerKilled( entity victim, entity attacker, var damageInfo ) table<int, bool> alreadyAssisted foreach( DamageHistoryStruct attackerInfo in victim.e.recentDamageHistory ) { - if( attackerInfo.attacker != attacker && !alreadyAssisted[attackerInfo.attacker.GetEncodedEHandle()] ) + if( attackerInfo.attacker != attacker && !( attackerInfo.attacker.GetEncodedEHandle() in alreadyAssisted ) ) { if ( attackerInfo.damageSourceId != eDamageSourceId.melee_pilot_emptyhanded ) { alreadyAssisted[attackerInfo.attacker.GetEncodedEHandle()] <- true @@ -163,4 +163,4 @@ void function OnWinnerDetermined() { SetRespawnsEnabled( false ) SetKillcamsEnabled( false ) -}
\ No newline at end of file +} |