Skip to content

Commit

Permalink
Prevent suicides registering stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanieon committed Jul 6, 2024
1 parent 1c54129 commit e07c336
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ void function OnPlayerOrNPCKilled( entity victim, entity attacker, var damageInf
thread SetLastPosForDistanceStatValid_Threaded( victim, false )

HandleDeathStats( victim, attacker, damageInfo )

if( victim == attacker ) //Suicides are registering stats, afaik vanilla ignores them
return

HandleKillStats( victim, attacker, damageInfo )
HandleWeaponKillStats( victim, attacker, damageInfo )
HandleTitanStats( victim, attacker, damageInfo )
Expand Down

0 comments on commit e07c336

Please sign in to comment.