Compare commits

...

2 Commits

Author SHA1 Message Date
Shtoyan
b9771ed28b a 2022-02-28 02:08:37 +04:00
Shtoyan
0b1a5335ef disable mut tick for server 2022-02-28 02:08:06 +04:00

View File

@ -322,6 +322,7 @@ auto state loadInteractionnSpawnRate
ScrnMut.OriginalWaveSpawnPeriod = FMax(minSpawnRate, FMin(maxSpawnRate, ScrnMut.OriginalWaveSpawnPeriod));
// do not execute below code on dedicated servers!
GoToState('');
DisableServerGlobalTick();
return;
}
@ -345,14 +346,18 @@ auto state loadInteractionnSpawnRate
}
}
// disable tick for servers!
final private function DisableServerGlobalTick()
{
Disable('Tick');
}
// global tick
simulated function Tick(float Delta)
{
local int i;
local NicePlayerController localPlayer;
super.Tick(Delta);
localPlayer = NicePlayerController(Level.GetLocalPlayerController());
// Check if the local PlayerController is available yet
if (localPlayer == none)