aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-08-27 01:41:47 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-01 01:13:05 +0200
commit68dd8b10eb424946f95dee8c3127a53c876736db (patch)
treecd80f768386cbbe5c336be07dd35a7852900f50f /Northstar.CustomServers/mod/scripts
parent2e476917e868284af049523136fde46ca585723c (diff)
downloadNorthstarMods-1.9.7-rc2.tar.gz
NorthstarMods-1.9.7-rc2.zip
hotfixes respawn crash exploit Co-authored-by: ScureX <multiaccshop@web.de>
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut6
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