aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Miller <william-millennium@hotmail.com>2024-07-06 19:49:01 -0300
committerGitHub <noreply@github.com>2024-07-07 00:49:01 +0200
commite898b0a17d817bf36189ed9c5499ded4cefdbb26 (patch)
treeda77c134362a5f9c62e17111ec9d3af1c67084c5
parent1c54129e11b496f049764d0bc7feed53a6341a57 (diff)
downloadNorthstarMods-e898b0a17d817bf36189ed9c5499ded4cefdbb26.tar.gz
NorthstarMods-e898b0a17d817bf36189ed9c5499ded4cefdbb26.zip
Prevent suicides registering progression stats (#813)
Prevent suicides registering stats
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut4
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 )