aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-07-27 11:02:41 +0200
committerGitHub <noreply@github.com>2022-07-27 11:02:41 +0200
commitd9fed6e461c6e19ee488568951bee7064a62baa0 (patch)
tree26eef529002aa2d5ff6c9ae684352a0903346808 /Northstar.CustomServers/mod/scripts
parente591885e0336f33facbcf2b15c9cd99f9b217e70 (diff)
downloadNorthstarMods-d9fed6e461c6e19ee488568951bee7064a62baa0.tar.gz
NorthstarMods-d9fed6e461c6e19ee488568951bee7064a62baa0.zip
Fix RespawnAsTitan not triggering FirstToFall (#427)
Co-authored-by: x3Karma <juliuslimck@gmail.com>
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-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 1c53167fd..055374359 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 )