aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-03 22:03:41 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-03 22:03:41 +0000
commit4582f57a5b82d8c75666010081573df0d86ee03a (patch)
treebdd899ec8498501a74ff19bc9606254bb9fddc50 /Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
parenta614d9c52ee1015a340609daa4196613ab37825d (diff)
downloadNorthstarMods-4582f57a5b82d8c75666010081573df0d86ee03a.tar.gz
NorthstarMods-4582f57a5b82d8c75666010081573df0d86ee03a.zip
cleanup respawn and script prediction management code
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut4
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
index 7e9943c3b..e8b636ffe 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
@@ -395,7 +395,7 @@ void function PlayerWatchesRoundWinningKillReplay( entity player, float replayLe
else
wait replayLength
- player.SetPredictionEnabled( true )
+ //player.SetPredictionEnabled( true ) doesn't seem needed, as native code seems to set this on respawn
player.ClearReplayDelay()
player.ClearViewEntity()
player.UnfreezeControlsOnServer()
@@ -486,7 +486,7 @@ void function PlayerWatchesSwitchingSidesKillReplay( entity player, bool doRepla
else
wait SWITCHING_SIDES_DELAY_REPLAY // extra delay if no replay
- player.SetPredictionEnabled( true )
+ //player.SetPredictionEnabled( true ) doesn't seem needed, as native code seems to set this on respawn
player.ClearReplayDelay()
player.ClearViewEntity()
}