diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-08-27 01:41:47 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-01 01:13:05 +0200 |
commit | 68dd8b10eb424946f95dee8c3127a53c876736db (patch) | |
tree | cd80f768386cbbe5c336be07dd35a7852900f50f | |
parent | 2e476917e868284af049523136fde46ca585723c (diff) | |
download | NorthstarMods-1.9.5-rc1.tar.gz NorthstarMods-1.9.5-rc1.zip |
Add alive checks (#491)v1.9.7-rc2v1.9.7-rc1v1.9.7v1.9.6v1.9.5-rc1v1.9.51.9.X
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 |