Use paralyze for table bonks (#11247)
Originally I was going to have knockdowns block movement but we might want crawling I guess.
This commit is contained in:
parent
fed0c0c108
commit
57049b3384
|
|
@ -142,8 +142,7 @@ public sealed class ClimbSystem : SharedClimbSystem
|
|||
// BONK!
|
||||
|
||||
_audioSystem.PlayPvs(component.BonkSound, component.Owner);
|
||||
|
||||
_stunSystem.TryKnockdown(user, TimeSpan.FromSeconds(component.BonkTime), true);
|
||||
_stunSystem.TryParalyze(user, TimeSpan.FromSeconds(component.BonkTime), true);
|
||||
|
||||
if (component.BonkDamage is { } bonkDmg)
|
||||
_damageableSystem.TryChangeDamage(user, bonkDmg, true);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace Content.Shared.ActionBlocker
|
|||
return false;
|
||||
|
||||
var ev = new UpdateCanMoveEvent(uid);
|
||||
RaiseLocalEvent(uid, ev, true);
|
||||
RaiseLocalEvent(uid, ev);
|
||||
|
||||
if (component.CanMove == ev.Cancelled && component is Component comp)
|
||||
Dirty(comp);
|
||||
|
|
|
|||
Loading…
Reference in New Issue