elevated mAicontroller to shapebase

aiwheeleedveiclecontrollerdata resolvespeed now only touches throttle
objects assigned aicontrollers now reflect that by thier objecttype
basic flocking
This commit is contained in:
AzaezelX 2025-04-19 04:25:36 -05:00
parent d36cf31707
commit 3210325f3f
15 changed files with 352 additions and 185 deletions

View file

@ -88,6 +88,8 @@ class ShapeBase;
class SFXSource;
class SFXTrack;
class SFXProfile;
struct AIController;
struct AIControllerData;
typedef void* Light;
@ -555,6 +557,7 @@ public:
U32 cubeDescId;
ReflectorDesc *reflectorDesc;
AIControllerData* mAIControllData;
/// @name Destruction
///
/// Everyone likes to blow things up!
@ -1754,6 +1757,11 @@ public:
/// Returns true if this object is controlling by something
bool isControlled() { return(mIsControlled); }
AIController* mAIController;
bool setAIController(SimObjectId controller);
AIController* getAIController() { return mAIController; };
virtual bool getAIMove(Move* move);
/// Returns true if this object is being used as a camera in first person
bool isFirstPerson() const;