@@ -192,6 +192,17 @@ namespace Content.Server.GameObjects.Components.Mobs
|
|||||||
_statusRemoveCancellation = new CancellationTokenSource();
|
_statusRemoveCancellation = new CancellationTokenSource();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ResetStuns()
|
||||||
|
{
|
||||||
|
_stunnedTimer = 0f;
|
||||||
|
_slowdownTimer = 0f;
|
||||||
|
|
||||||
|
if (KnockedDown)
|
||||||
|
StandingStateHelper.Standing(Owner);
|
||||||
|
|
||||||
|
_knockdownTimer = 0f;
|
||||||
|
}
|
||||||
|
|
||||||
public void Update(float delta)
|
public void Update(float delta)
|
||||||
{
|
{
|
||||||
if (Stunned)
|
if (Stunned)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Content.Server.GameObjects;
|
using Content.Server.GameObjects;
|
||||||
|
using Content.Server.GameObjects.Components.Mobs;
|
||||||
using Content.Server.GameObjects.Components.Nutrition;
|
using Content.Server.GameObjects.Components.Nutrition;
|
||||||
using Content.Shared.GameObjects;
|
using Content.Shared.GameObjects;
|
||||||
using Robust.Server.Console;
|
using Robust.Server.Console;
|
||||||
@@ -62,6 +63,10 @@ namespace Content.Server.GlobalVerbs
|
|||||||
{
|
{
|
||||||
thirst.ResetThirst();
|
thirst.ResetThirst();
|
||||||
}
|
}
|
||||||
|
if (target.TryGetComponent(out StunnableComponent stun))
|
||||||
|
{
|
||||||
|
stun.ResetStuns();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user