Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
mapnavigationbehaviour.c File Reference

Go to the source code of this file.

Enumerations

enum  EMapNavigationType { BASIC = 0 , COMPASS = 1 , GPS = 2 , ALL = 4 }

Functions

EMapNavigationType GetNavigationType ()
vector GetPositionRandomized ()
vector GetPositionReal ()
static bool IsOutOfMap (EntityAI pEntity)
void MapNavigationBehaviour (PlayerBase pPlayer, EMapNavigationType pNavigationType=EMapNavigationType.BASIC)
void OnItemInPlayerPossession (EntityAI item)
void OnItemNotInPlayerPossession (EntityAI item)
static array< intOrderedAltitudeNumbersPosition (EntityAI pEntity)
static array< intOrderedPositionNumbersFromGridCoords (EntityAI pEntity)
float RandomizedDeviation ()
void RandomizePosition ()
void SetNavigationType (EMapNavigationType pType)
void UnsetNavigationType (EMapNavigationType pType)

Variables

static const int DISPLAY_ALT_MAX_CHARS_COUNT = 4
static const int DISPLAY_GRID_POS_MAX_CHARS_COUNT = 3
static const string GRID_SIZE_CFG_PATH = "CfgWorlds %1 Grid Zoom1 stepX"
ref array< EntityAIm_CompassInPossessionArr
ref array< EntityAIm_GPSInPossessionArr
EMapNavigationType m_NavigationType
PlayerBase m_Player
int m_RandomPositionDeviationX
int m_RandomPositionDeviationZ
const int RANDOM_DEVIATION_MAX = 15
enum EMapNavigationType RANDOM_DEVIATION_MIN = 4

Enumeration Type Documentation

◆ EMapNavigationType

Enumerator
BASIC 
COMPASS 
GPS 
ALL 

Definition at line 1 of file mapnavigationbehaviour.c.

Function Documentation

◆ GetNavigationType()

EMapNavigationType GetNavigationType ( )
protected

Definition at line 46 of file mapnavigationbehaviour.c.

References m_NavigationType.

◆ GetPositionRandomized()

vector GetPositionRandomized ( )
protected

◆ GetPositionReal()

vector GetPositionReal ( )
protected

Definition at line 120 of file mapnavigationbehaviour.c.

◆ IsOutOfMap()

bool IsOutOfMap ( EntityAI pEntity)
staticprotected

Definition at line 180 of file mapnavigationbehaviour.c.

References g_Game.

Referenced by OrderedPositionNumbersFromGridCoords().

◆ MapNavigationBehaviour()

◆ OnItemInPlayerPossession()

void OnItemInPlayerPossession ( EntityAI item)
protected

◆ OnItemNotInPlayerPossession()

void OnItemNotInPlayerPossession ( EntityAI item)
protected

◆ OrderedAltitudeNumbersPosition()

array< int > OrderedAltitudeNumbersPosition ( EntityAI pEntity)
staticprotected

◆ OrderedPositionNumbersFromGridCoords()

array< int > OrderedPositionNumbersFromGridCoords ( EntityAI pEntity)
staticprotected

◆ RandomizedDeviation()

float RandomizedDeviation ( )
protected

◆ RandomizePosition()

void RandomizePosition ( )
protected

◆ SetNavigationType()

void SetNavigationType ( EMapNavigationType pType)
protected

Definition at line 36 of file mapnavigationbehaviour.c.

References m_NavigationType.

Referenced by OnItemInPlayerPossession().

◆ UnsetNavigationType()

void UnsetNavigationType ( EMapNavigationType pType)
protected

Definition at line 41 of file mapnavigationbehaviour.c.

References m_NavigationType.

Referenced by OnItemNotInPlayerPossession().

Variable Documentation

◆ DISPLAY_ALT_MAX_CHARS_COUNT

const int DISPLAY_ALT_MAX_CHARS_COUNT = 4
static

Definition at line 15 of file mapnavigationbehaviour.c.

Referenced by OrderedAltitudeNumbersPosition().

◆ DISPLAY_GRID_POS_MAX_CHARS_COUNT

const int DISPLAY_GRID_POS_MAX_CHARS_COUNT = 3
static

Definition at line 14 of file mapnavigationbehaviour.c.

Referenced by OrderedPositionNumbersFromGridCoords().

◆ GRID_SIZE_CFG_PATH

const string GRID_SIZE_CFG_PATH = "CfgWorlds %1 Grid Zoom1 stepX"
staticprotected

Definition at line 17 of file mapnavigationbehaviour.c.

Referenced by OrderedPositionNumbersFromGridCoords().

◆ m_CompassInPossessionArr

ref array<EntityAI> m_CompassInPossessionArr
protected

◆ m_GPSInPossessionArr

ref array<EntityAI> m_GPSInPossessionArr
protected

◆ m_NavigationType

EMapNavigationType m_NavigationType
protected

◆ m_Player

PlayerBase m_Player
protected

Definition at line 22 of file mapnavigationbehaviour.c.

◆ m_RandomPositionDeviationX

int m_RandomPositionDeviationX
protected

Definition at line 19 of file mapnavigationbehaviour.c.

Referenced by GetPositionRandomized(), and RandomizePosition().

◆ m_RandomPositionDeviationZ

int m_RandomPositionDeviationZ
protected

Definition at line 20 of file mapnavigationbehaviour.c.

Referenced by GetPositionRandomized(), and RandomizePosition().

◆ RANDOM_DEVIATION_MAX

const int RANDOM_DEVIATION_MAX = 15

Definition at line 12 of file mapnavigationbehaviour.c.

Referenced by RandomizedDeviation().

◆ RANDOM_DEVIATION_MIN

enum EMapNavigationType RANDOM_DEVIATION_MIN = 4

Referenced by RandomizedDeviation().