Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
CfgPlayerRestrictedAreaHandler Class Reference

Static Private Member Functions

static void DrawBoxesDebug (bool draw)
static void DrawPolygonLinesDebug (bool draw)
static PlayerRestrictedAreaInstance GetClosestArea (vector point)
static bool IsCylinderInAreaBox (notnull PlayerRestrictedAreaInstance area, vector point, float cylinderRadius=0.25, float cylinderHeight=1)
 default cylinder values sufficient for player detection
static bool IsInitialized ()
static bool IsPointInAreaPolygon (notnull PlayerRestrictedAreaInstance area, vector point)
static bool IsPointInPlayerRestrictedArea (vector point, out PlayerRestrictedAreaInstance hitArea)
static bool IsPointInPlayerRestrictedAreaClosest (vector point, out PlayerRestrictedAreaInstance hitArea)
static bool LoadData ()
static void OnRPC (ParamsReadContext ctx)
static void SyncDataSend (notnull PlayerIdentity identity)

Static Private Attributes

static ref CfgPlayerRestrictedAreaJsonData m_Data = new CfgPlayerRestrictedAreaJsonData()
ref array< Shapem_DbgShapesBoxes
ref array< Shapem_DbgShapesPolygonLines
static bool m_Initialized
static ref TStringArray m_PRAFiles = new TStringArray()

Detailed Description

Definition at line 1 of file cfgplayerrestrictedareahandler.c.

Member Function Documentation

◆ DrawBoxesDebug()

void DrawBoxesDebug ( bool draw)
inlinestaticprivate

◆ DrawPolygonLinesDebug()

void DrawPolygonLinesDebug ( bool draw)
inlinestaticprivate

◆ GetClosestArea()

◆ IsCylinderInAreaBox()

bool IsCylinderInAreaBox ( notnull PlayerRestrictedAreaInstance area,
vector point,
float cylinderRadius = 0.25,
float cylinderHeight = 1 )
inlinestaticprivate

default cylinder values sufficient for player detection

Definition at line 142 of file cfgplayerrestrictedareahandler.c.

References Math3D::IntersectCylinderOBB(), and Math3D::MatrixIdentity4().

Referenced by IsPointInPlayerRestrictedArea(), and IsPointInPlayerRestrictedAreaClosest().

◆ IsInitialized()

◆ IsPointInAreaPolygon()

bool IsPointInAreaPolygon ( notnull PlayerRestrictedAreaInstance area,
vector point )
inlinestaticprivate

◆ IsPointInPlayerRestrictedArea()

bool IsPointInPlayerRestrictedArea ( vector point,
out PlayerRestrictedAreaInstance hitArea )
inlinestaticprivate

◆ IsPointInPlayerRestrictedAreaClosest()

bool IsPointInPlayerRestrictedAreaClosest ( vector point,
out PlayerRestrictedAreaInstance hitArea )
inlinestaticprivate

◆ LoadData()

bool LoadData ( )
inlinestaticprivate

◆ OnRPC()

void OnRPC ( ParamsReadContext ctx)
inlinestaticprivate

Definition at line 70 of file cfgplayerrestrictedareahandler.c.

References ErrorEx, m_Data, m_Initialized, and Serializer::Read().

Referenced by CGame::OnRPC().

◆ SyncDataSend()

void SyncDataSend ( notnull PlayerIdentity identity)
inlinestaticprivate

Definition at line 65 of file cfgplayerrestrictedareahandler.c.

References g_Game, and m_Data.

Referenced by MissionBase::OnEvent().

Field Documentation

◆ m_Data

◆ m_DbgShapesBoxes

ref array<Shape> m_DbgShapesBoxes
staticprivate

Definition at line 179 of file cfgplayerrestrictedareahandler.c.

Referenced by DrawBoxesDebug().

◆ m_DbgShapesPolygonLines

ref array<Shape> m_DbgShapesPolygonLines
staticprivate

Definition at line 180 of file cfgplayerrestrictedareahandler.c.

Referenced by DrawPolygonLinesDebug().

◆ m_Initialized

bool m_Initialized
staticprivate

Definition at line 3 of file cfgplayerrestrictedareahandler.c.

Referenced by IsInitialized(), LoadData(), and OnRPC().

◆ m_PRAFiles

ref TStringArray m_PRAFiles = new TStringArray()
staticprivate

Definition at line 5 of file cfgplayerrestrictedareahandler.c.

Referenced by LoadData().


The documentation for this class was generated from the following file: