Show
Ignore:
Timestamp:
11/19/08 13:43:15 (17 years ago)
Author:
yumileroy
Message:

[svn] Implemented player on player and player on creature possession:
* Implemented packet and vision forwarding through possessed units
* Added new OnPossess? script call alerting scripts on when possession is applied/removed
* Moved fall damage and fall under map calculations into the Player class
* Added new PossessedAI that is applied only while possession on creature is active
* Implemented summon possessed spell effect
* Fixed Eyes of the Beast

Original author: gvcoman
Date: 2008-11-05 20:51:05-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Player.h

    r136 r174  
    906906        void setActive(bool) {} 
    907907 
     908        void SetViewport(uint64 guid, bool movable); 
     909        void Possess(Unit *target); 
     910        void RemovePossess(bool attack = true);  
     911 
    908912        bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options = 0); 
    909913 
     
    14221426        PlayerSpellMap const& GetSpellMap() const { return m_spells; } 
    14231427        PlayerSpellMap      & GetSpellMap()       { return m_spells; } 
     1428        ActionButtonList const& GetActionButtonList() const { return m_actionButtons; } 
    14241429 
    14251430        void AddSpellMod(SpellModifier* mod, bool apply); 
     
    16201625        void UpdateUnderwaterState( Map * m, float x, float y, float z ); 
    16211626 
    1622         void SendMessageToSet(WorldPacket *data, bool self);// overwrite Object::SendMessageToSet 
    1623         void SendMessageToSetInRange(WorldPacket *data, float fist, bool self); 
     1627        void SendMessageToSet(WorldPacket *data, bool self, bool to_possessor = true);// overwrite Object::SendMessageToSet 
     1628        void SendMessageToSetInRange(WorldPacket *data, float fist, bool self, bool to_possessor = true); 
    16241629                                                            // overwrite Object::SendMessageToSetInRange 
    1625         void SendMessageToSetInRange(WorldPacket *data, float dist, bool self, bool own_team_only); 
     1630        void SendMessageToSetInRange(WorldPacket *data, float dist, bool self, bool own_team_only, bool to_possessor); 
    16261631 
    16271632        static void DeleteFromDB(uint64 playerguid, uint32 accountId, bool updateRealmChars = true); 
     
    19491954 
    19501955        void HandleDrowning(); 
     1956        void HandleFallDamage(MovementInfo& movementInfo); 
     1957        void HandleFallUnderMap(); 
    19511958 
    19521959        void SetClientControl(Unit* target, uint8 allowMove);