improve sleeping mob state changes (#11083)
This commit is contained in:
@@ -36,6 +36,9 @@ namespace Content.Server.Sound
|
||||
base.Update(frameTime);
|
||||
foreach (var soundSpammer in EntityQuery<SpamEmitSoundComponent>())
|
||||
{
|
||||
if (!soundSpammer.Enabled)
|
||||
continue;
|
||||
|
||||
soundSpammer.Accumulator += frameTime;
|
||||
if (soundSpammer.Accumulator < soundSpammer.RollInterval)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user