]> git.smokeofanarchy.ru Git - space-station-14.git/commit
SS14-26950 Fix Waddling During Improper States (#26965)
authorHannah Giovanna Dawson <karakkaraz@gmail.com>
Mon, 15 Apr 2024 01:53:22 +0000 (02:53 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Apr 2024 01:53:22 +0000 (21:53 -0400)
commit3d0fc1067303635a743af04ef4c463abd0dba343
tree154c85c0d86446f5e27c697a36f0c3940419266e
parent637fc2d47571cec3c4d2509ac5aa285d2ccd2ab9
SS14-26950 Fix Waddling During Improper States (#26965)

* SS14-26950 Fix Waddling During Improper States

Fix some states when a clown can waddle when no clown should be able to waddle, no-matter their clowning powers.

1. You cannot waddle whilst weightless
2. You cannot waddle whilst stunned
3. You cannot waddle whilst slowed down due to stam damage
4. You cannot waddle whilst you're knocked down
5. You cannot waddle whilst you're buckled
6. You cannot waddle whilst crit
7. You cannot waddle whilst dead

There's some argument for being able to waddle whilst on the floor
and doing some bizarre floor-humping exercise but I'm not coding an animation layer system just to handle clowns doing the worm.

* Use a nicer "can move" check
Content.Client/Movement/Systems/WaddleAnimationSystem.cs