diff --git a/src/map/packets/entity_update.cpp b/src/map/packets/entity_update.cpp index 107f0ab31ef..31767e4417d 100644 --- a/src/map/packets/entity_update.cpp +++ b/src/map/packets/entity_update.cpp @@ -132,6 +132,9 @@ void CEntityUpdatePacket::updateWith(CBaseEntity* PEntity, ENTITYUPDATE type, ui ref(0x28) |= 0x40; } + // Other flag options for 0x29: + // 0x08: Sword and Shield (Belligerency etc.) + // 0x20: Two heads butting on red background ref(0x29) = static_cast(PEntity->allegiance); ref(0x2B) = PEntity->namevis; } @@ -167,6 +170,10 @@ void CEntityUpdatePacket::updateWith(CBaseEntity* PEntity, ENTITYUPDATE type, ui ref(0x28) |= PMob->StatusEffectContainer->HasStatusEffect(EFFECT_TERROR) ? 0x10 : 0x00; ref(0x28) |= PMob->health.hp > 0 && PMob->animation == ANIMATION_DEATH ? 0x08 : 0; ref(0x28) |= PMob->status == STATUS_TYPE::NORMAL && PMob->objtype == TYPE_MOB ? 0x40 : 0; // Make the entity triggerable if a mob and normal status + + // Other flag options for 0x29: + // 0x08: Sword and Shield (Belligerency etc.) + // 0x20: Two heads butting on red background ref(0x29) = static_cast(PEntity->allegiance); ref(0x2B) = PEntity->namevis; }