DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс GeyserTrigger
+ Граф наследования:GeyserTrigger:

Защищенные члены

void GeyserTrigger ()
 
override void EEInit ()
 
override void EEDelete (EntityAI parent)
 
override void OnEnterServerEvent (TriggerInsider insider)
 
override void OnLeaveServerEvent (TriggerInsider insider)
 
override void OnEnterClientEvent (TriggerInsider insider)
 
override void OnLeaveClientEvent (TriggerInsider insider)
 
override void OnVariablesSynchronized ()
 
void UpdateGeyserState ()
 
void RandomizeMouthPos ()
 
vector GetAdjustedPosition (float height=0)
 
void StopEffects ()
 
void AddGeyserState (EGeyserState state)
 
void RemoveGeyserState (EGeyserState state)
 
EGeyserState GetGeyserState ()
 
bool IsSubmerged ()
 

Защищенные данные

bool m_bIsDormant
 
bool m_bIsErupting
 
bool m_bIsEruptingTall
 
float m_AdjustedX
 
float m_AdjustedY
 
vector m_DefaultPosition
 
EGeyserState m_GeyserState = EGeyserState.DORMANT
 
ParticleSource m_GeyserParticle
 
ParticleSource m_GeyserTallParticle
 
EffectSound m_SoundBubbling
 
EffectSound m_SoundEruption
 
EffectSound m_SoundEruptionSecondary
 

Закрытые данные

const float MOUTH_ADJUST_RADIUS = 0.2
 
const string SOUND_BUBBLING = "Boiling_Done_SoundSet"
 
const string SOUND_ERUPTION = "pour_Water_Pot_SoundSet"
 
const string SOUND_ERUPTION_TALL = "pour_Water_WatterBottle_SoundSet"
 

Дополнительные унаследованные члены

- Закрытые члены унаследованные от EffectTrigger
void OnStayClientEvent (TriggerInsider insider, float deltaTime)
 
override void OnEnterServerEvent (TriggerInsider insider)
 
override void OnEnterClientEvent (TriggerInsider insider)
 
override void OnLeaveServerEvent (TriggerInsider insider)
 
override void OnLeaveClientEvent (TriggerInsider insider)
 
override bool ShouldRemoveInsider (TriggerInsider insider)
 
- Закрытые статические члены унаследованные от EffectTrigger
static void TriggerEffect (EntityAI insider, typename triggerType)
 

Подробное описание

Конструктор(ы)

◆ GeyserTrigger()

void GeyserTrigger ( )
inlineprotected
23 {
24 RegisterNetSyncVariableInt("m_GeyserState", 0, 32);
25 }

Методы

◆ AddGeyserState()

void AddGeyserState ( EGeyserState state)
inlineprotected
179 {
181 SetSynchDirty();
182 }
EGeyserState m_GeyserState
Definition GeyserTrigger.c:14
Definition EntityAI.c:95

Перекрестные ссылки m_GeyserState.

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

◆ EEDelete()

override void EEDelete ( EntityAI parent)
inlineprotected
42 {
44
45 super.EEDelete(parent);
46 }
void StopEffects()
Definition GeyserTrigger.c:155

Перекрестные ссылки StopEffects().

◆ EEInit()

override void EEInit ( )
inlineprotected
28 {
29 super.EEInit();
30
33
34 m_bIsDormant = false;
35 m_bIsErupting = false;
36 m_bIsEruptingTall = false;
37
39 }
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
bool m_bIsDormant
Definition GeyserTrigger.c:8
bool m_bIsEruptingTall
Definition GeyserTrigger.c:10
vector m_DefaultPosition
Definition GeyserTrigger.c:13
void RandomizeMouthPos()
Definition GeyserTrigger.c:135
bool m_bIsErupting
Definition GeyserTrigger.c:9
proto native CGame GetGame()

Перекрестные ссылки GetGame(), GetPosition, m_bIsDormant, m_bIsErupting, m_bIsEruptingTall, m_DefaultPosition и RandomizeMouthPos().

◆ GetAdjustedPosition()

vector GetAdjustedPosition ( float height = 0)
inlineprotected
142 {
144 pos[1] = pos[1] + height;
145
146 if (IsSubmerged())
147 {
148 pos[0] = m_AdjustedX;
149 pos[2] = m_AdjustedY;
150 }
151
152 return pos;
153 }
float m_AdjustedX
Definition GeyserTrigger.c:11
float m_AdjustedY
Definition GeyserTrigger.c:12
bool IsSubmerged()
Definition GeyserTrigger.c:196
Definition EnConvert.c:106

Перекрестные ссылки IsSubmerged(), m_AdjustedX, m_AdjustedY и m_DefaultPosition.

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

◆ GetGeyserState()

EGeyserState GetGeyserState ( )
inlineprotected
191 {
192 return m_GeyserState;
193 }

Перекрестные ссылки m_GeyserState.

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

◆ IsSubmerged()

bool IsSubmerged ( )
inlineprotected
197 {
198 return true;
199 }

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

◆ OnEnterClientEvent()

override void OnEnterClientEvent ( TriggerInsider insider)
inlineprotected
66 {
67 super.OnEnterClientEvent(insider);
68 }

◆ OnEnterServerEvent()

override void OnEnterServerEvent ( TriggerInsider insider)
inlineprotected
49 {
50 super.OnEnterServerEvent(insider);
51
52 if (insider && (m_GeyserState & EGeyserState.ERUPTING_PRIMARY))
53 {
54 EntityAI entity = EntityAI.Cast(insider.GetObject());
55 if (entity)
56 entity.ProcessDirectDamage(DamageType.CUSTOM, this, "", "HeatDamage", "0 0 0", 1000);
57 }
58 }
DamageType
exposed from C++ (do not change)
Definition DamageSystem.c:11
EGeyserState
Definition GeyserArea.c:2
Definition Building.c:6
Object GetObject()
Definition Trigger.c:28

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

◆ OnLeaveClientEvent()

override void OnLeaveClientEvent ( TriggerInsider insider)
inlineprotected
71 {
72 super.OnLeaveClientEvent(insider);
73 }

◆ OnLeaveServerEvent()

override void OnLeaveServerEvent ( TriggerInsider insider)
inlineprotected
61 {
62 super.OnLeaveServerEvent(insider);
63 }

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
inlineprotected
76 {
77 super.OnVariablesSynchronized();
78
80 }
void UpdateGeyserState()
Definition GeyserTrigger.c:83

Перекрестные ссылки UpdateGeyserState().

◆ RandomizeMouthPos()

void RandomizeMouthPos ( )
inlineprotected
136 {
139 }
const float MOUTH_ADJUST_RADIUS
Definition GeyserTrigger.c:3
Definition EnMath.c:7
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].

Перекрестные ссылки m_AdjustedX, m_AdjustedY, m_DefaultPosition, MOUTH_ADJUST_RADIUS и Math::RandomFloat().

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

◆ RemoveGeyserState()

void RemoveGeyserState ( EGeyserState state)
inlineprotected
185 {
187 SetSynchDirty();
188 }

Перекрестные ссылки m_GeyserState.

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

◆ StopEffects()

void StopEffects ( )
inlineprotected
156 {
157 if (m_bIsDormant)
158 {
160 m_bIsDormant = false;
161 }
162
163 if (m_bIsErupting)
164 {
167 m_bIsErupting = false;
168 }
169
171 {
174 m_bIsEruptingTall = false;
175 }
176 }
override void Stop()
Stops sound.
Definition EffectSound.c:244
EffectSound m_SoundEruptionSecondary
Definition GeyserTrigger.c:20
ParticleSource m_GeyserTallParticle
Definition GeyserTrigger.c:17
EffectSound m_SoundBubbling
Definition GeyserTrigger.c:18
ParticleSource m_GeyserParticle
Definition GeyserTrigger.c:16
EffectSound m_SoundEruption
Definition GeyserTrigger.c:19
override bool StopParticle(int flags=0)
Method to tell the particle to stop playing.
Definition ParticleSource.c:372

Перекрестные ссылки m_bIsDormant, m_bIsErupting, m_bIsEruptingTall, m_GeyserParticle, m_GeyserTallParticle, m_SoundBubbling, m_SoundEruption, m_SoundEruptionSecondary, EffectSound::Stop() и ParticleSource::StopParticle().

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

◆ UpdateGeyserState()

void UpdateGeyserState ( )
inlineprotected
84 {
85 if (m_GeyserState == EGeyserState.DORMANT && !m_bIsDormant)
86 {
87 if (IsSubmerged())
88 {
91 }
92
93 m_bIsDormant = true;
94 }
95 else if (m_GeyserState != EGeyserState.DORMANT && m_bIsDormant)
96 {
98 m_bIsDormant = false;
99 }
100
101 if ((m_GeyserState & EGeyserState.ERUPTING_PRIMARY) && !m_bIsErupting)
102 {
105
107
108 m_bIsErupting = true;
109 }
110 else if (((m_GeyserState & EGeyserState.ERUPTING_PRIMARY) == 0) && m_bIsErupting)
111 {
114 m_bIsErupting = false;
115 }
116
117 if ((m_GeyserState & EGeyserState.ERUPTING_SECONDARY) && !m_bIsEruptingTall)
118 {
121
123
124 m_bIsEruptingTall = true;
125 }
126 else if (((m_GeyserState & EGeyserState.ERUPTING_SECONDARY) == 0) && m_bIsEruptingTall)
127 {
130 m_bIsEruptingTall = false;
131 }
132 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition ParticleManager.c:84
const string SOUND_ERUPTION
Definition GeyserTrigger.c:5
const string SOUND_BUBBLING
Definition GeyserTrigger.c:4
const string SOUND_ERUPTION_TALL
Definition GeyserTrigger.c:6
vector GetAdjustedPosition(float height=0)
Definition GeyserTrigger.c:141
Definition ParticleList.c:12
static const int GEYSER_STRONG
Definition ParticleList.c:336
static const int GEYSER_NORMAL
Definition ParticleList.c:335
Manager class for managing Effect (EffectParticle, EffectSound)
Definition EffectManager.c:6
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Definition EffectManager.c:169

Перекрестные ссылки GetAdjustedPosition(), ParticleList::GEYSER_NORMAL, ParticleList::GEYSER_STRONG, IsSubmerged(), m_bIsDormant, m_bIsErupting, m_bIsEruptingTall, m_GeyserParticle, m_GeyserState, m_GeyserTallParticle, m_SoundBubbling, m_SoundEruption, m_SoundEruptionSecondary, ParticleManager(), SEffectManager::PlaySound(), RandomizeMouthPos(), SOUND_BUBBLING, SOUND_ERUPTION, SOUND_ERUPTION_TALL, EffectSound::Stop() и ParticleSource::StopParticle().

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

Поля

◆ m_AdjustedX

float m_AdjustedX
protected

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

◆ m_AdjustedY

float m_AdjustedY
protected

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

◆ m_bIsDormant

bool m_bIsDormant
protected

Используется в EEInit(), StopEffects() и UpdateGeyserState().

◆ m_bIsErupting

bool m_bIsErupting
protected

Используется в EEInit(), StopEffects() и UpdateGeyserState().

◆ m_bIsEruptingTall

bool m_bIsEruptingTall
protected

Используется в EEInit(), StopEffects() и UpdateGeyserState().

◆ m_DefaultPosition

vector m_DefaultPosition
protected

Используется в EEInit(), GetAdjustedPosition() и RandomizeMouthPos().

◆ m_GeyserParticle

ParticleSource m_GeyserParticle
protected

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

◆ m_GeyserState

◆ m_GeyserTallParticle

ParticleSource m_GeyserTallParticle
protected

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

◆ m_SoundBubbling

EffectSound m_SoundBubbling
protected

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

◆ m_SoundEruption

EffectSound m_SoundEruption
protected

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

◆ m_SoundEruptionSecondary

EffectSound m_SoundEruptionSecondary
protected

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

◆ MOUTH_ADJUST_RADIUS

const float MOUTH_ADJUST_RADIUS = 0.2
private

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

◆ SOUND_BUBBLING

const string SOUND_BUBBLING = "Boiling_Done_SoundSet"
private

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

◆ SOUND_ERUPTION

const string SOUND_ERUPTION = "pour_Water_Pot_SoundSet"
private

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

◆ SOUND_ERUPTION_TALL

const string SOUND_ERUPTION_TALL = "pour_Water_WatterBottle_SoundSet"
private

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


Объявления и описания членов класса находятся в файле: