Jump to content

[patch][6561] Corpses


Guest thenecromancer
 Share

Recommended Posts

Revision 6541

This patch makes corpses looking yet more like players

Hide helm/cloak option is applied to corpse

Corpse guild field is filled, so guild tabards have correct graphics

Index: game/Player.cpp
===================================================================
--- game/Player.cpp        (revision 6541)
+++ game/Player.cpp        (working copy)
@@ -3700,9 +3700,15 @@
        uint32 flags = 0x04;
        if(InBattleGround())
                flags |= 0x20;                                                                            // to be able to remove insignia
+
+        if(HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_HELM))
+                flags |= 0x08;
+        if(HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_CLOAK))
+                flags |= 0x10;
+
        corpse->SetUInt32Value( CORPSE_FIELD_FLAGS, flags );
-
        corpse->SetUInt32Value( CORPSE_FIELD_DISPLAY_ID, GetNativeDisplayId() );
+        corpse->SetUInt32Value( CORPSE_FIELD_GUILD, GetGuildId() );

        uint32 iDisplayID;
        uint16 iIventoryType;

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use