space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.7k stars 3.38k forks source link

When mobs move themselves, there is no movement animation #32187

Open PilgrimViis opened 1 month ago

PilgrimViis commented 1 month ago

Description

When you control the mob, moving animation provided by SpriteMovementComponent is working perfectly. When the mob is controlled by the game, movement animation not shown.

Reproduction See an attached video

Screenshots https://github.com/user-attachments/assets/313823f4-4377-4a04-9d00-73faf485d189 Additional context Seems like the problem happens because in SpriteMovementSystem the game subscribes only for user's input and not for mob movement event. Do we have one, btw? SubscribeLocalEvent<SpriteMovementComponent, MoveInputEvent>(OnSpriteMoveInput);

PilgrimViis commented 1 month ago

Just to let you know. I will be able to prepare PR for that fix if you give me a tip how to detect Mob movements and direction. Unfortunately, I couldn't find anything myself.