eqemu-server/zone/water_map_v2.h
Michael Cook (mackal) 6a7ea65dd0 Ask water map if we're in a zoneline to prevent false positives
I don't think this should open up any chance to exploit
Trying to use a ZL to go somewhere else is still detected etc

This should really cut down on false positives and we really can't
see real cheater from all the noise this creates
2016-08-05 01:07:12 -04:00

31 lines
795 B
C++

#ifndef EQEMU_WATER_MAP_V2_H
#define EQEMU_WATER_MAP_V2_H
#include "water_map.h"
#include "oriented_bounding_box.h"
#include <vector>
#include <utility>
class WaterMapV2 : public WaterMap
{
public:
WaterMapV2();
~WaterMapV2();
virtual WaterRegionType ReturnRegionType(const glm::vec3& location) const;
virtual bool InWater(const glm::vec3& location) const;
virtual bool InVWater(const glm::vec3& location) const;
virtual bool InLava(const glm::vec3& location) const;
virtual bool InLiquid(const glm::vec3& location) const;
virtual bool InPvP(const glm::vec3& location) const;
virtual bool InZoneLine(const glm::vec3& location) const;
protected:
virtual bool Load(FILE *fp);
std::vector<std::pair<WaterRegionType, OrientedBoundingBox>> regions;
friend class WaterMap;
};
#endif