fix zombie mispredicts (#11043)

This commit is contained in:
Nemanja
2022-09-06 21:59:27 -04:00
committed by GitHub
parent 3a5821f7d6
commit 47f312e90f
4 changed files with 34 additions and 11 deletions

View File

@@ -0,0 +1,20 @@
using Content.Shared.Movement.Systems;
namespace Content.Shared.Zombies;
public abstract class SharedZombieSystem : EntitySystem
{
/// <inheritdoc/>
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<ZombieComponent, RefreshMovementSpeedModifiersEvent>(OnRefreshSpeed);
}
private void OnRefreshSpeed(EntityUid uid, ZombieComponent component, RefreshMovementSpeedModifiersEvent args)
{
var mod = component.ZombieMovementSpeedDebuff;
args.ModifySpeed(mod, mod);
}
}