Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
CCTWaterSurface Class Reference
Inheritance diagram for CCTWaterSurface:
CCTBase

Protected Member Functions

void CCTWaterSurface (float maximal_target_distance=UAMaxDistances.DEFAULT, string surfaceType="")
override bool Can (PlayerBase player, ActionTarget target)
override bool CanContinue (PlayerBase player, ActionTarget target)

Protected Attributes

const int HEIGHT_DIFF_LIMIT_METERS = 1.0
ref array< stringm_AllowedSurfaceList
 DEPRECATED.
float m_MaximalActionDistanceSq
string m_SurfaceType

Detailed Description

Definition at line 1 of file cctwatersurface.c.

Constructor & Destructor Documentation

◆ CCTWaterSurface()

void CCTWaterSurface ( float maximal_target_distance = UAMaxDistances.DEFAULT,
string surfaceType = "" )
inlineprotected

Definition at line 9 of file cctwatersurface.c.

References m_AllowedSurfaceList, m_MaximalActionDistanceSq, and m_SurfaceType.

Member Function Documentation

◆ Can()

override bool Can ( PlayerBase player,
ActionTarget target )
inlineprotected

use hit position from ActionTarget otherwise player's position

special handling for sea

Definition at line 18 of file cctwatersurface.c.

References Math::AbsFloat(), ActionTarget, Surface::AllowedWaterSurface(), vector::DistanceSq(), g_Game, HEIGHT_DIFF_LIMIT_METERS, m_AllowedSurfaceList, and m_MaximalActionDistanceSq.

◆ CanContinue()

override bool CanContinue ( PlayerBase player,
ActionTarget target )
inlineprotected

Definition at line 51 of file cctwatersurface.c.

References ActionTarget.

Field Documentation

◆ HEIGHT_DIFF_LIMIT_METERS

const int HEIGHT_DIFF_LIMIT_METERS = 1.0
protected

Definition at line 3 of file cctwatersurface.c.

Referenced by Can().

◆ m_AllowedSurfaceList

ref array<string> m_AllowedSurfaceList
protected

DEPRECATED.

Definition at line 7 of file cctwatersurface.c.

Referenced by CCTWaterSurface(), and Can().

◆ m_MaximalActionDistanceSq

float m_MaximalActionDistanceSq
protected

Definition at line 5 of file cctwatersurface.c.

Referenced by CCTWaterSurface(), and Can().

◆ m_SurfaceType

string m_SurfaceType
protected

Definition at line 6 of file cctwatersurface.c.

Referenced by CCTWaterSurface().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/4_world/classes/useractionscomponent/targetconditionscomponents/cctwatersurface.c