diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-07-27 11:02:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 11:02:41 +0200 |
commit | d9fed6e461c6e19ee488568951bee7064a62baa0 (patch) | |
tree | 26eef529002aa2d5ff6c9ae684352a0903346808 /Northstar.CustomServers | |
parent | e591885e0336f33facbcf2b15c9cd99f9b217e70 (diff) | |
download | NorthstarMods-d9fed6e461c6e19ee488568951bee7064a62baa0.tar.gz NorthstarMods-d9fed6e461c6e19ee488568951bee7064a62baa0.zip |
Fix RespawnAsTitan not triggering FirstToFall (#427)
Co-authored-by: x3Karma <juliuslimck@gmail.com>
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut | 15 |
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 ) |