1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

implement arm swinging animation

* Added packets to show players swinging their arms

* fix misleading comment

---------

Co-authored-by: p2r3 <p2r3@p2r3.com>
This commit is contained in:
SDFTDusername
2025-09-14 15:59:25 +02:00
committed by GitHub
parent a34134918a
commit f6333429eb
3 changed files with 54 additions and 0 deletions

View File

@@ -437,6 +437,10 @@ void handlePacket (int client_fd, int length, int packet_id, int state) {
case 0x34:
if (state == STATE_PLAY) cs_setHeldItem(client_fd);
break;
case 0x3C:
if (state == STATE_PLAY) cs_swingArm(client_fd);
break;
case 0x28:
if (state == STATE_PLAY) cs_playerAction(client_fd);