disable mut tick for server
This commit is contained in:
parent
5df8f93add
commit
406257c0e9
@ -322,6 +322,7 @@ auto state loadInteractionnSpawnRate
|
|||||||
ScrnMut.OriginalWaveSpawnPeriod = FMax(minSpawnRate, FMin(maxSpawnRate, ScrnMut.OriginalWaveSpawnPeriod));
|
ScrnMut.OriginalWaveSpawnPeriod = FMax(minSpawnRate, FMin(maxSpawnRate, ScrnMut.OriginalWaveSpawnPeriod));
|
||||||
// do not execute below code on dedicated servers!
|
// do not execute below code on dedicated servers!
|
||||||
GoToState('');
|
GoToState('');
|
||||||
|
DisableServerGlobalTick();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -345,14 +346,18 @@ auto state loadInteractionnSpawnRate
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// disable tick for servers!
|
||||||
|
final private function DisableServerGlobalTick()
|
||||||
|
{
|
||||||
|
Disable('Tick');
|
||||||
|
}
|
||||||
|
|
||||||
// global tick
|
// global tick
|
||||||
simulated function Tick(float Delta)
|
simulated function Tick(float Delta)
|
||||||
{
|
{
|
||||||
local int i;
|
local int i;
|
||||||
local NicePlayerController localPlayer;
|
local NicePlayerController localPlayer;
|
||||||
|
|
||||||
super.Tick(Delta);
|
|
||||||
|
|
||||||
localPlayer = NicePlayerController(Level.GetLocalPlayerController());
|
localPlayer = NicePlayerController(Level.GetLocalPlayerController());
|
||||||
// Check if the local PlayerController is available yet
|
// Check if the local PlayerController is available yet
|
||||||
if (localPlayer == none)
|
if (localPlayer == none)
|
||||||
|
Loading…
Reference in New Issue
Block a user