From 1edc6c8601f9d00751bf7c9f7fcc69d1e18bb46a Mon Sep 17 00:00:00 2001 From: Persson-dev <66266021+Persson-dev@users.noreply.github.com> Date: Wed, 29 Dec 2021 20:30:09 +0100 Subject: Add skeleton bow pulling animation (#5355) * Added basic skeleton bow animation * Fixing style --- src/Protocol/Protocol_1_10.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/Protocol/Protocol_1_10.cpp') diff --git a/src/Protocol/Protocol_1_10.cpp b/src/Protocol/Protocol_1_10.cpp index 9f4413576..4f3e1a52b 100644 --- a/src/Protocol/Protocol_1_10.cpp +++ b/src/Protocol/Protocol_1_10.cpp @@ -795,6 +795,19 @@ void cProtocol_1_10_0::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_ break; } // case mtSheep + case mtSkeleton: + { + auto & Skeleton = static_cast(a_Mob); + a_Pkt.WriteBEUInt8(LIVING_ACTIVE_HAND); + a_Pkt.WriteBEUInt8(METADATA_TYPE_BYTE); + a_Pkt.WriteBEUInt8(Skeleton.IsChargingBow() ? 0x01 : 0x00); + + a_Pkt.WriteBEUInt8(SKELETON_ARMS_SWINGING); + a_Pkt.WriteBEUInt8(METADATA_TYPE_BOOL); + a_Pkt.WriteBool(Skeleton.IsChargingBow()); + break; + } // case mtSkeleton + case mtSlime: { auto & Slime = static_cast(a_Mob); @@ -958,7 +971,6 @@ void cProtocol_1_10_0::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_ case mtIronGolem: case mtMooshroom: case mtSilverfish: - case mtSkeleton: case mtSnowGolem: case mtStray: case mtSpider: -- cgit v1.2.3