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/_score.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/_score.nut')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut index b7fd4d520..36862d8a2 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut @@ -194,6 +194,9 @@ void function ScoreEvent_TitanKilled( entity victim, entity attacker, var damage table<int, bool> alreadyAssisted foreach( DamageHistoryStruct attackerInfo in victim.e.recentDamageHistory ) { + if ( !IsValid( attackerInfo.attacker ) || !attackerInfo.attacker.IsPlayer() || attackerInfo.attacker == victim ) + continue + bool exists = attackerInfo.attacker.GetEncodedEHandle() in alreadyAssisted ? true : false if( attackerInfo.attacker != attacker && !exists ) { |