diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-08-27 01:41:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-27 01:41:47 +0200 |
commit | 57c9f05a5fd4f901bd8622829dbee4809990e71a (patch) | |
tree | c6afa09c95515ec8c74424400123a372349a1bad | |
parent | 052e45547536ed139a5729498461ee242951a4c2 (diff) | |
download | NorthstarMods-57c9f05a5fd4f901bd8622829dbee4809990e71a.tar.gz NorthstarMods-57c9f05a5fd4f901bd8622829dbee4809990e71a.zip |
Add alive checks (#491)
hotfixes respawn crash exploit
Co-authored-by: ScureX <multiaccshop@web.de>
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut | 6 |
1 files changed, 6 insertions, 0 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 b453286c..ca8dc5f1 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut @@ -427,11 +427,17 @@ void function DecideRespawnPlayer( entity player ) void function RespawnAsPilot( entity player ) { + // respawn crash exploit hotfix + if(IsAlive( player )) return + player.RespawnPlayer( FindSpawnPoint( player, false, ( ShouldStartSpawn( player ) || Flag( "ForceStartSpawn" ) ) && !IsFFAGame() ) ) } void function RespawnAsTitan( entity player, bool manualPosition = false ) { + // respawn crash exploit hotfix + if(IsAlive( player )) return + player.Signal( "PlayerRespawnStarted" ) player.isSpawning = true |