aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers
diff options
context:
space:
mode:
authorUnknown <malte.hoermeyer@web.de>2022-01-05 03:45:38 +0100
committerUnknown <malte.hoermeyer@web.de>2022-01-05 03:45:38 +0100
commitf9e56b5908800625a44a3b943ca66e4afd188fdf (patch)
tree5ecc672a59fd26e05714b6835ce6bbae88fc6fcf /Northstar.CustomServers
parent37cb7e553243ce1cec6f32b5b9a8dbca64db5026 (diff)
downloadNorthstarMods-f9e56b5908800625a44a3b943ca66e4afd188fdf.tar.gz
NorthstarMods-f9e56b5908800625a44a3b943ca66e4afd188fdf.zip
Hide death from scoreboard when playerDeathHidden is true
This fixes the scoreboard showing a death when player survived a round in roundbased gamemodes
Diffstat (limited to 'Northstar.CustomServers')
-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