DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ BoatScript()

void BoatScript::BoatScript ( )
inlineprotected

См. определение в файле BoatScript.c строка 89

90 {
91#ifdef DIAG_DEVELOPER
92 _boat = this;
93#endif
94
95 SetEventMask(EntityEvent.POSTSIMULATE);
96 SetEventMask(EntityEvent.FRAME);
97
100
101 RegisterNetSyncVariableBool("m_PlaySoundEngineStopNoFuel");
102 RegisterNetSyncVariableBool("m_PlaySoundPushBoat");
103 RegisterNetSyncVariableBoolSignal("m_PlaySoundImpactLight");
104 RegisterNetSyncVariableBoolSignal("m_PlaySoundImpactHeavy");
105
106 if (g_Game.IsServer())
107 {
109
110 m_DecayTimer = new Timer( CALL_CATEGORY_SYSTEM );
111 m_DecayTimer.Run(DECAY_TICK_FREQUENCY, this, "DecayHealthTick", NULL, true);
112 }
113
114 if (g_Game.IsHeadlessOrDedicatedServer())
115 return;
116
117 m_SoundImpactHeavy = "boat_01_hit_light_SoundSet";
118 m_SoundImpactLight = "boat_01_hit_heavy_SoundSet";
119 m_SoundPushBoat = "boat_01_push_SoundSet";
120 m_SoundWaterSplash = "boat_01_splash_SoundSet";
121 m_SoundEngineStart = "boat_01_engine_start_SoundSet";
122 m_SoundEngineStop = "boat_01_engine_stop_SoundSet";
123 m_SoundEngineStartNoFuel = "boat_01_engine_start_no_fuel_SoundSet";
124 m_SoundEngineStopNoFuel = "boat_01_engine_stop_no_fuel_SoundSet";
125
126 if (g_Game.IsHeadlessOrDedicatedServer())
127 return;
128
130 m_WaterEffects[EBoatEffects.PTC_BACK] = new EffectBoatWaterBack();
133
134 if (MemoryPointExists("ptcFxFront"))
135 m_WaterEffects[EBoatEffects.PTC_FRONT].AttachTo(this, GetMemoryPointPos("ptcFxFront"));
136
137 if (MemoryPointExists("ptcFxBack"))
138 m_WaterEffects[EBoatEffects.PTC_BACK].AttachTo(this, GetMemoryPointPos("ptcFxBack"));
139
140 if (MemoryPointExists("ptcFxSide1"))
141 m_WaterEffects[EBoatEffects.PTC_SIDE_L].AttachTo(this, GetMemoryPointPos("ptcFxSide1"));
142
143 if (MemoryPointExists("ptcFxSide2"))
144 m_WaterEffects[EBoatEffects.PTC_SIDE_R].AttachTo(this, GetMemoryPointPos("ptcFxSide2"));
145 }
EBoatEffects
Определения BoatScript.c:2
void EffectBoatWaterFront()
Определения BoatWaterEffects.c:14
void EffectBoatWaterSide()
Определения BoatWaterEffects.c:203
DayZGame g_Game
Определения DayZGame.c:4074
ref EffectBoatWaterBase m_WaterEffects[4]
Определения BoatScript.c:61
string m_SoundEngineStopNoFuel
Определения BoatScript.c:79
float m_HeatComfortOverride
Определения BoatScript.c:87
string m_SoundPushBoat
Определения BoatScript.c:74
ref Timer m_DecayTimer
Определения BoatScript.c:57
string m_SoundImpactHeavy
Определения BoatScript.c:73
string m_SoundWaterSplash
Определения BoatScript.c:75
string m_SoundImpactLight
Определения BoatScript.c:72
string m_SoundEngineStart
Определения BoatScript.c:76
bool m_PlaySoundImpactLight
Определения BoatScript.c:66
const float DECAY_TICK_FREQUENCY
Определения BoatScript.c:45
bool m_PlaySoundImpactHeavy
Определения BoatScript.c:67
string m_SoundEngineStop
Определения BoatScript.c:77
string m_SoundEngineStartNoFuel
Определения BoatScript.c:78
EntityEvent
Entity events for event-mask, or throwing event from code.
Определения EnEntity.c:45
const int CALL_CATEGORY_SYSTEM
Определения 3_Game/DayZ/tools/tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, DECAY_TICK_FREQUENCY, EffectBoatWaterFront(), EffectBoatWaterSide(), g_Game, m_DecayTimer, m_HeatComfortOverride, m_PlaySoundImpactHeavy, m_PlaySoundImpactLight, m_SoundEngineStart, m_SoundEngineStartNoFuel, m_SoundEngineStop, m_SoundEngineStopNoFuel, m_SoundImpactHeavy, m_SoundImpactLight, m_SoundPushBoat, m_SoundWaterSplash и m_WaterEffects.