Movement overhead

This commit is contained in:
Yunfan Li
2024-04-11 19:17:42 +08:00
parent 3be922ce78
commit f2884d94e6
2 changed files with 82 additions and 8 deletions

View File

@@ -43,6 +43,7 @@ class MovementAction : public Action
void CreateWp(Player* wpOwner, float x, float y, float z, float o, uint32 entry, bool important = false);
private:
float SearchBestGroundZForPath(float x, float y, float z, bool generatePath, float range = 20.0f, bool normal_only = false, float step = 8.0f);
const Movement::PointsArray SearchForBestPath(float x, float y, float z, float &modified_z, int maxSearchCount = 5, bool normal_only = false, float step = 8.0f);
};
class FleeAction : public MovementAction