diff options
author | William Miller <william-millennium@hotmail.com> | 2024-07-06 19:49:01 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-07 00:49:01 +0200 |
commit | e898b0a17d817bf36189ed9c5499ded4cefdbb26 (patch) | |
tree | da77c134362a5f9c62e17111ec9d3af1c67084c5 /Northstar.CustomServers/mod | |
parent | 1c54129e11b496f049764d0bc7feed53a6341a57 (diff) | |
download | NorthstarMods-e898b0a17d817bf36189ed9c5499ded4cefdbb26.tar.gz NorthstarMods-e898b0a17d817bf36189ed9c5499ded4cefdbb26.zip |
Prevent suicides registering progression stats (#813)
Prevent suicides registering stats
Diffstat (limited to 'Northstar.CustomServers/mod')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut index 101d5e4e..674923e7 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut @@ -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 ) |