feat(client): any animation the client has, sent as "sja:<anim>,<flip>"

An action message "sja:<anim>,<flip>" plays animation <anim> (1 to 255)
on the sender's avatar for everyone else, and holds it as their idle
(AvatarWorldView.holdIdleAnim) until they walk or do another action, so the
game's idle refreshes don't stand them back up. Not in minigames. A
client without this finds no action by that name and ignores it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
SnipzilandClaude Opus 5.5 committed 2026-10-21 22:42:11 -04:00
1 parent 9156c6e392
commit d44612bd08
2 files changed
+24

No files matched your search

+10
View File
@@ -805,6 +805,16 @@ package avatar
return false;
}
// plays an animation and keeps it as this avatar's idle, so the client's
// own idle refreshes don't put the avatar back to standing. Walking or
// an action replaces it, as with any idle.
public function holdIdleAnim(param1:int, param2:Boolean) : void
{
_lastIdleAnim = param1;
_lastIdleFlip = param2;
playAnim(param1,param2);
}
public function getBaseIdle() : int
{
return _roomType == 1 ? 32 : 14;