aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-07-27 11:02:41 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-07 23:12:03 +0200
commit2408ac85587231a6cf8de55e58cc82c8254a7a52 (patch)
tree779d2c9c3a32f71796ff85239d6d680de263442a
parent5539fd026938e0b622cd2009f753a41351e6ee99 (diff)
downloadNorthstarMods-2408ac85587231a6cf8de55e58cc82c8254a7a52.tar.gz
NorthstarMods-2408ac85587231a6cf8de55e58cc82c8254a7a52.zip
Fix RespawnAsTitan not triggering FirstToFall (#427)
Co-authored-by: x3Karma <juliuslimck@gmail.com>
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut15
1 files changed, 14 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 1c53167f..05537435 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
@@ -447,7 +447,20 @@ void function RespawnAsTitan( entity player, bool manualPosition = false )
AddCinematicFlag( player, CE_FLAG_CLASSIC_MP_SPAWNING ) // hide hud
// do titanfall scoreevent
- AddPlayerScore( player, "Titanfall", player )
+ if ( !level.firstTitanfall )
+ {
+ AddPlayerScore( player, "FirstTitanfall", player )
+
+ #if HAS_STATS
+ UpdatePlayerStat( player, "misc_stats", "titanFallsFirst" )
+ #endif
+
+ level.firstTitanfall = true
+ }
+ else
+ {
+ AddPlayerScore( player, "Titanfall", player )
+ }
entity camera = CreateTitanDropCamera( spawnpoint.GetAngles(), < 90, titan.GetAngles().y, 0 > )
camera.SetParent( titan )