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

◆ OnWorkStart()

override void OnWorkStart ( )
protected

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

176 {
178
179 if ( g_Game.IsServer() )
180 {
181 m_NoisePar = new NoiseParams();
182 m_NoisePar.LoadFromPath("cfgVehicles " + GetType() + " NoiseSmokeGrenade");
183 NoiseSystem noise = g_Game.GetNoiseSystem();
184 if ( noise )
185 {
186 noise.AddNoisePos( this, GetPosition(), m_NoisePar );
187 }
188 }
189
190 Param1<ESmokeGrenadeState> par = new Param1<ESmokeGrenadeState>(ESmokeGrenadeState.LOOP);
191 m_TimerSmokeLoop.Run(5.0, this, "SetSmokeGrenadeState", par);
192 }
eBleedingSourceType GetType()
ref NoiseParams m_NoisePar
Определения ActionOpenDoors.c:104
DayZGame g_Game
Определения DayZGame.c:4074
class NoiseSystem NoiseParams()
Определения Noise.c:18
void SetSmokeGrenadeState(ESmokeGrenadeState state)
Определения SmokeGrenadeBase.c:255
ESmokeGrenadeState
Определения SmokeGrenadeBase.c:2
ref Timer m_TimerSmokeLoop
Определения SmokeGrenadeBase.c:14
proto void AddNoisePos(EntityAI source_entity, vector pos, NoiseParams noise_params, float external_strenght_multiplier=1.0)
Определения Noise.c:2
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки NoiseSystem::AddNoisePos(), g_Game, GetPosition(), GetType(), m_NoisePar, m_TimerSmokeLoop, NoiseParams() и SetSmokeGrenadeState().