fix(Scripts/SunwellPlateau): Fix Darkness spawning midair (#21851)

This commit is contained in:
Andrew
2025-04-04 11:17:31 -03:00
committed by GitHub
parent ee724b0f38
commit 51f0495621
3 changed files with 31 additions and 0 deletions

View File

@@ -611,6 +611,10 @@ public:
[[nodiscard]] virtual float GetStationaryZ() const { return GetPositionZ(); }
[[nodiscard]] virtual float GetStationaryO() const { return GetOrientation(); }
[[nodiscard]] float GetMapWaterOrGroundLevel(Position pos, float* ground = nullptr) const
{
return GetMapWaterOrGroundLevel(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), ground);
};
[[nodiscard]] float GetMapWaterOrGroundLevel(float x, float y, float z, float* ground = nullptr) const;
[[nodiscard]] float GetMapHeight(float x, float y, float z, bool vmap = true, float distanceToSearch = 50.0f) const; // DEFAULT_HEIGHT_SEARCH in map.h