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

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

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

class  EffectBoatWaterBack
 
class  EffectBoatWaterBase
 

Перечисления

enum  EBoatSpeed {
  UNSET , SLOWEST , SLOW , MEDIUM ,
  FAST
}
 

Функции

void EffectBoatWaterFront ()
 
void UpdateSpeedState (Particle ptc, float speed)
 
override void Update ()
 
void EffectBoatWaterSide ()
 

Переменные

enum EBoatSpeed EMITORS_FAST = 9
 

Перечисления

◆ EBoatSpeed

Элементы перечислений
UNSET 
SLOWEST 
SLOW 
MEDIUM 
FAST 
2{
3 UNSET,
5 SLOW,
6 MEDIUM,
7 FAST
8}
@ MEDIUM
Definition BoatWaterEffects.c:6
@ SLOWEST
Definition BoatWaterEffects.c:4
@ SLOW
Definition BoatWaterEffects.c:5
@ UNSET
Definition BoatWaterEffects.c:3
@ FAST
Definition BoatWaterEffects.c:7

Функции

◆ EffectBoatWaterFront()

void EffectBoatWaterFront ( )
15 {
16 m_EmitorCount = 13;
17 m_SpeedSlow = 5;
18 m_SpeedMedium = 20;
19 m_SpeedFast = 40;
20
21 SetParticleState( ParticleList.BOAT_WATER_FRONT );
22 }
Definition ParticleList.c:12
static const int BOAT_WATER_FRONT
Definition ParticleList.c:274

Перекрестные ссылки ParticleList::BOAT_WATER_FRONT и EffectBoatWaterBase::SetParticleState().

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

◆ EffectBoatWaterSide()

void EffectBoatWaterSide ( )
protected
204 {
205 m_EmitorCount = 5;
206 m_SpeedSlow = 5;
207 m_SpeedMedium = 20;
208 m_SpeedFast = 40;
209
210 SetParticleState( ParticleList.BOAT_WATER_SIDE );
211 }
static const int BOAT_WATER_SIDE
Definition ParticleList.c:276

Перекрестные ссылки ParticleList::BOAT_WATER_SIDE и EffectBoatWaterBase::SetParticleState().

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

◆ UpdateSpeedState()

void UpdateSpeedState ( Particle ptc,
float speed )
protected
25 {
26 EBoatSpeed speedStatePast = m_SpeedState;
27
28 if (speed > m_SpeedFast)
29 m_SpeedState = EBoatSpeed.FAST;
30 else if (speed > m_SpeedMedium)
31 m_SpeedState = EBoatSpeed.MEDIUM;
32 else if (speed > m_SpeedSlow)
33 m_SpeedState = EBoatSpeed.SLOW;
34 else
35 m_SpeedState = EBoatSpeed.SLOWEST;
36
37 if (m_SpeedState == speedStatePast)
38 return;
39
40 for (int i = 0; i < m_EmitorCount; i++)
41 {
42 if (i == 5 || i == 6)
43 {
44 if (m_SpeedState <= EBoatSpeed.MEDIUM) // fast drops
45 EnableEmitor(ptc, i, false);
46 else
47 EnableEmitor(ptc, i, true);
48 }
49 else if (i == 9 || i == 10) // slow drops
50 {
51 if (m_SpeedState != EBoatSpeed.MEDIUM)
52 EnableEmitor(ptc, i, false);
53 else
54 EnableEmitor(ptc, i, true);
55 }
56 else if (i < 5 || i == 7 || i == 8) // rest of front ptc
57 {
58 if (m_SpeedState <= EBoatSpeed.SLOW)
59 EnableEmitor(ptc, i, false);
60 else
61 EnableEmitor(ptc, i, true);
62 }
63 }
64 }
EBoatSpeed
Definition BoatWaterEffects.c:2
Definition EntityAI.c:95

Перекрестные ссылки EffectBoatWaterBase::EnableEmitor(), EffectBoatWaterBase::m_EmitorCount и EffectBoatWaterBase::m_SpeedState.

Переменные

◆ EMITORS_FAST

EffectBoatWaterBack EMITORS_FAST = 9