DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл CCTWaterSurface.c

См. исходные тексты.

Структуры данных

class  CCTWaterSurface
 

Функции

void CCTWaterSurfaceEx (float maximal_target_distance, int allowedLiquidSource)
 
override bool Can (PlayerBase player, ActionTarget target)
 
override bool CanContinue (PlayerBase player, ActionTarget target)
 

Переменные

CCTWaterSurface m_MaximalActionDistanceSq
 
int m_AllowedLiquidSource
 

Функции

◆ Can()

override bool Can ( PlayerBase player,
ActionTarget target )
protected
69 {
70 if (!target || (target && target.GetObject()))
71 return false;
72
73 vector hitPosition = target.GetCursorHitPos();
74 string surfaceType;
75 g_Game.SurfaceGetType3D(hitPosition[0], hitPosition[1], hitPosition[2], surfaceType);
76
77 float distSq = vector.DistanceSq(player.GetPosition(), hitPosition);
79 return false;
80
82 }
int m_AllowedLiquidSource
Definition CCTWaterSurface.c:60
CCTWaterSurface m_MaximalActionDistanceSq
DayZGame g_Game
Definition DayZGame.c:3815
Definition EntityAI.c:95
Definition Surface.c:2
static bool CheckLiquidSource(float pHeight, string pSurface, int allowedWaterSourceMask)
Definition Surface.c:54
Definition EnConvert.c:106
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.

Перекрестные ссылки Surface::CheckLiquidSource(), vector::DistanceSq(), g_Game, m_AllowedLiquidSource и m_MaximalActionDistanceSq.

◆ CanContinue()

override bool CanContinue ( PlayerBase player,
ActionTarget target )
protected
85 {
86 return true;
87 }

◆ CCTWaterSurfaceEx()

Переменные

◆ m_AllowedLiquidSource

int m_AllowedLiquidSource
protected

Используется в Can() и CCTWaterSurfaceEx().

◆ m_MaximalActionDistanceSq

CCTWaterSurface m_MaximalActionDistanceSq

Используется в Can() и CCTWaterSurfaceEx().