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

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

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

class  UndergroundTriggerCarrierBase
 

Функции

void Init (JsonUndergroundAreaTriggerData data)
 
bool CanAddObjectAsInsider (Object object)
 
override void EOnInit (IEntity other, int extra)
 
void OnEnterClientEvent (TriggerInsider insider)
 
void OnLeaveClientEvent (TriggerInsider insider)
 

Переменные

class UndergroundTriggerCarrier extends UndergroundTriggerCarrierBase UNDEFINED
 
class UndergroundTriggerCarrier extends UndergroundTriggerCarrierBase TRANSITIONING
 
class UndergroundTriggerCarrier extends UndergroundTriggerCarrierBase OUTER
 
class UndergroundTriggerCarrier extends UndergroundTriggerCarrierBase m_Data
 
EUndergroundTriggerType m_Type
 
float m_Accommodation
 
float m_InterpolationSpeed
 

Функции

◆ CanAddObjectAsInsider()

bool CanAddObjectAsInsider ( Object object)
protected
119 {
120 if (!super.CanAddObjectAsInsider(object))
121 {
122 return false;
123 }
124
125 PlayerBase player = PlayerBase.Cast(object);
126 return player.IsControlledPlayer();
127 }
Definition EntityAI.c:95
Definition PlayerBaseClient.c:2

◆ EOnInit()

override void EOnInit ( IEntity other,
int extra )
protected
131 {
132 //disable parent behaviour
133 }

◆ Init()

88 {
89 m_Data = data;
90 //Print("Spawning trigger " + this + "at pos: " + GetPosition());
91 vector extMax = data.GetSize() * 0.5;
94 m_Accommodation = data.EyeAccommodation;
95 m_InterpolationSpeed = data.InterpolationSpeed;
96
97 if (data.Breadcrumbs && data.Breadcrumbs.Count() > 0) //TODO: simpler check
98 {
99 if (data.Breadcrumbs.Count() > 32)
100 {
101 ErrorEx("max 'Breadcrumb' count is 32, found: " + data.Breadcrumbs.Count());
102 }
103 m_Type = EUndergroundTriggerType.TRANSITIONING;
104 }
105 else
106 {
107 if (m_Accommodation == 1)
108 {
110 }
111 else
112 {
114 }
115 }
116 }
void SetExtents(vector mins, vector maxs)
Definition AreaDamageManager.c:233
EUndergroundTriggerType m_Type
Definition UndergroundTrigger.c:83
class UndergroundTriggerCarrier extends UndergroundTriggerCarrierBase m_Data
float m_Accommodation
Definition UndergroundTrigger.c:84
float m_InterpolationSpeed
Definition UndergroundTrigger.c:85
Definition EnConvert.c:106
enum ShapeType ErrorEx

Перекрестные ссылки ErrorEx, m_Accommodation, m_Data, m_InterpolationSpeed, m_Type и SetExtents().

◆ OnEnterClientEvent()

void OnEnterClientEvent ( TriggerInsider insider)
protected
154 {
155 //Print("OnEnterClientEvent " + this);
156 //return;
157 PlayerBase player = PlayerBase.Cast(insider.GetObject());
158 if (player)
159 {
160 UndergroundHandlerClient handler = player.GetUndergroundHandler();
161 if (handler)
162 {
163 handler.OnTriggerEnter(this);
164 }
165 }
166 }
Object GetObject()
Definition Trigger.c:28

Перекрестные ссылки TriggerInsider::GetObject().

◆ OnLeaveClientEvent()

void OnLeaveClientEvent ( TriggerInsider insider)
protected
169 {
170 //Print("OnLeaveClientEvent " + this);
171 //return;
172 PlayerBase player = PlayerBase.Cast(insider.GetObject());
173 if (player)
174 {
175 UndergroundHandlerClient handler = player.GetUndergroundHandler();
176 if (handler)
177 {
178 handler.OnTriggerLeave(this);
179 }
180 }
181 }

Перекрестные ссылки TriggerInsider::GetObject().

Переменные

◆ m_Accommodation

float m_Accommodation

Используется в Init().

◆ m_Data

class UndergroundTriggerCarrier extends UndergroundTriggerCarrierBase m_Data

◆ m_InterpolationSpeed

float m_InterpolationSpeed

Используется в Init().

◆ m_Type

◆ OUTER

class UndergroundTriggerCarrier extends UndergroundTriggerCarrierBase OUTER

◆ TRANSITIONING

class UndergroundTriggerCarrier extends UndergroundTriggerCarrierBase TRANSITIONING

◆ UNDEFINED

class UndergroundTriggerCarrier extends UndergroundTriggerCarrierBase UNDEFINED