Adds the super speed smite (#10707)

* Add super speed smite

* Increase acceleration and speed so it can actually gib
This commit is contained in:
Julian Giebel
2022-08-23 16:04:17 +02:00
committed by GitHub
parent 24090fcf9c
commit 99aab9f409
4 changed files with 33 additions and 0 deletions

View File

@@ -51,6 +51,17 @@ namespace Content.Shared.Movement.Systems
Dirty(move);
}
public void ChangeBaseSpeed(EntityUid uid, float baseWalkSpeed, float baseSprintSpeed, float acceleration, MovementSpeedModifierComponent? move = null)
{
if (!Resolve(uid, ref move, false))
return;
move.BaseWalkSpeed = baseWalkSpeed;
move.BaseSprintSpeed = baseSprintSpeed;
move.Acceleration = acceleration;
Dirty(move);
}
[Serializable, NetSerializable]
private sealed class MovementSpeedModifierComponentState : ComponentState
{