aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-05 01:18:52 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-05 01:18:52 +0000
commit614fcf2f354cc5883364c49fa3b557100c76f373 (patch)
tree190c9b096116e000f0fe65556a325015512b43e1 /Northstar.CustomServers
parent77800abf48c9b5892c05578764a374d11b674bd8 (diff)
downloadNorthstarMods-614fcf2f354cc5883364c49fa3b557100c76f373.tar.gz
NorthstarMods-614fcf2f354cc5883364c49fa3b557100c76f373.zip
prevent spectator velocity from increasing due to gravity
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut3
1 files changed, 3 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 62f7d459..b8cd67ad 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
@@ -335,6 +335,7 @@ void function PostDeathThread_MP( entity player, var damageInfo ) // based on ga
}
player.SetPlayerSettings( "spectator" ) // prevent a crash with going from titan => pilot on respawn
+ player.StopPhysics() // need to set this after SetPlayerSettings
if ( RespawnsEnabled() )
{
@@ -467,6 +468,7 @@ void function RespawnAsTitan( entity player, bool manualPosition = false )
void function PlayerBecomesSpectator( entity player )
{
player.StartObserverMode( OBS_MODE_CHASE )
+ player.StopPhysics()
player.EndSignal( "OnRespawned" )
player.EndSignal( "OnDestroy" )
@@ -533,6 +535,7 @@ void function PlayerBecomesSpectator( entity player )
player.SetObserverModeStaticAngles( target.GetAngles() )
player.StartObserverMode( OBS_MODE_STATIC )
}
+ player.StopPhysics()
}
}