Added scriptable move triggers for AIPlayers. Fixes an issue where AIPlayers were setting move trigger states from invalid memory. Enables the use of player poses and actions.

This commit is contained in:
GuyAllard 2014-12-04 16:21:57 +01:00
parent 7097ce6466
commit bc230be8a2
2 changed files with 99 additions and 3 deletions

View file

@ -58,6 +58,9 @@ private:
Point3F mAimOffset;
// move triggers
bool mMoveTriggers[MaxTriggerKeys];
// Utility Methods
void throwCallback( const char *name );
@ -91,6 +94,10 @@ public:
void setMoveDestination( const Point3F &location, bool slowdown );
Point3F getMoveDestination() const { return mMoveDestination; }
void stopMove();
void setMoveTrigger( U32 slot, const bool isSet = true );
bool getMoveTrigger( U32 slot ) const;
void clearMoveTriggers();
};
#endif