Skip to content

Commit

Permalink
Prevent suicides registering progression stats (#813)
Browse files Browse the repository at this point in the history
Prevent suicides registering stats
  • Loading branch information
Zanieon authored Jul 6, 2024
1 parent 1c54129 commit e898b0a
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 e898b0a

Please sign in to comment.