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:
metalgearsloth
2022-09-13 23:53:02 +10:00
committed by GitHub
parent fed0c0c108
commit 57049b3384
2 changed files with 2 additions and 3 deletions

View File

@@ -142,8 +142,7 @@ public sealed class ClimbSystem : SharedClimbSystem
// BONK! // BONK!
_audioSystem.PlayPvs(component.BonkSound, component.Owner); _audioSystem.PlayPvs(component.BonkSound, component.Owner);
_stunSystem.TryParalyze(user, TimeSpan.FromSeconds(component.BonkTime), true);
_stunSystem.TryKnockdown(user, TimeSpan.FromSeconds(component.BonkTime), true);
if (component.BonkDamage is { } bonkDmg) if (component.BonkDamage is { } bonkDmg)
_damageableSystem.TryChangeDamage(user, bonkDmg, true); _damageableSystem.TryChangeDamage(user, bonkDmg, true);

View File

@@ -41,7 +41,7 @@ namespace Content.Shared.ActionBlocker
return false; return false;
var ev = new UpdateCanMoveEvent(uid); var ev = new UpdateCanMoveEvent(uid);
RaiseLocalEvent(uid, ev, true); RaiseLocalEvent(uid, ev);
if (component.CanMove == ev.Cancelled && component is Component comp) if (component.CanMove == ev.Cancelled && component is Component comp)
Dirty(comp); Dirty(comp);