aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-01-07 16:34:13 -0300
committerGitHub <noreply@github.com>2022-01-07 16:34:13 -0300
commit5e256f1146ff049f391e46cfba89fe138fbdfd08 (patch)
tree1bbb17a11e6c74c8265405befac4bb92d5cf18c9 /Northstar.CustomServers/mod/scripts
parent6e19bb521ce7a1ac40c397b552dee6001a8b621d (diff)
parentf9e56b5908800625a44a3b943ca66e4afd188fdf (diff)
downloadNorthstarMods-5e256f1146ff049f391e46cfba89fe138fbdfd08.tar.gz
NorthstarMods-5e256f1146ff049f391e46cfba89fe138fbdfd08.zip
Merge pull request #72 from RoyalBlue1/main
Hide death from scoreboard when playerDeathHidden is true
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut5
1 files changed, 4 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
index b8cd67ad..713cd1b5 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
@@ -261,7 +261,7 @@ void function PostDeathThread_MP( entity player, var damageInfo ) // based on ga
player.SetNoTargetSmartAmmo( false )
player.ClearExtraWeaponMods()
- player.AddToPlayerGameStat( PGS_DEATHS, 1 )
+
if ( player.IsTitan() )
SoulDies( player.GetTitanSoul(), damageInfo ) // cleanup some titan stuff, no idea where else to put this
@@ -303,7 +303,10 @@ void function PostDeathThread_MP( entity player, var damageInfo ) // based on ga
player.SetObserverTarget( null )
if ( !file.playerDeathsHidden )
+ {
+ player.AddToPlayerGameStat( PGS_DEATHS, 1 )
Remote_CallFunction_NonReplay( player, "ServerCallback_YouDied", attacker.GetEncodedEHandle(), GetHealthFrac( attacker ), methodOfDeath )
+ }
float deathcamLength = GetDeathCamLength( player )
wait deathcamLength