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/Creature.h

    r168 r174  
    396396{ 
    397397    CreatureAI *i_AI; 
     398    CreatureAI *i_AI_possessed; 
    398399 
    399400    public: 
     
    456457 
    457458        bool AIM_Initialize(); 
     459        void InitPossessedAI(); 
     460        void DeletePossessedAI(); 
    458461 
    459462        void AI_SendMoveToPacket(float x, float y, float z, uint32 time, uint32 MovementFlags, uint8 type); 
    460         CreatureAI* AI() { return i_AI; } 
     463        CreatureAI* AI() { return isPossessed() && i_AI_possessed ? i_AI_possessed : i_AI; } 
    461464 
    462465        uint32 GetShieldBlockValue() const                  //dunno mob block value