feat: hatchlings

tested that hatchlings now function
fixes #759

Update MovementAIComponent.cpp

Update MovementAIComponent.cpp

Update HatchlingPets.cpp
This commit is contained in:
David Markowitz
2026-06-20 03:07:43 -07:00
parent 7456d6b5c1
commit f2f02d0720
9 changed files with 151 additions and 7 deletions

View File

@@ -31,27 +31,27 @@ struct MovementAIInfo {
/**
* The radius that the entity can wander in
*/
float wanderRadius;
float wanderRadius{};
/**
* The speed at which the entity wanders
*/
float wanderSpeed;
float wanderSpeed{};
/**
* This is only used for the emotes
*/
float wanderChance;
float wanderChance{};
/**
* The min amount of delay before wandering
*/
float wanderDelayMin;
float wanderDelayMin{};
/**
* The max amount of delay before wandering
*/
float wanderDelayMax;
float wanderDelayMax{};
};
/**
@@ -214,6 +214,8 @@ public:
bool OnGetObjectReportInfo(GameMessages::GetObjectReportInfo& reportInfo);
bool HasPath() const { return m_Path != nullptr; }
void FollowTarget(const LWOOBJID target);
private:
/**
@@ -337,6 +339,8 @@ private:
// The number of waypoints that were on the path in the call to SetPath
uint32_t m_CurrentPathWaypointCount{ 0 };
LWOOBJID m_FollowedTarget{ LWOOBJID_EMPTY };
};
#endif // MOVEMENTAICOMPONENT_H