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

◆ Init()

void Init ( )
protected

single position related to each particular attachment group

single position related to each particular attachment group

pre-init arrays

Temporary hotfix for EOnPostSimulate/EOnFrame methods not beeing called on static objects

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

345 {
360
363
367
371
373 int i = 0;
374 for (i = 0; i < VALVES_COUNT; ++i)
375 {
376 m_ValveNames.Insert("none");
377 m_ValveStates.Insert(false);
378 m_PressureAnimationRequests.Insert(false);
379 m_PressureDeanimationRequests.Insert(false);
382 m_PipeSounds.Insert(null);
383 m_ValveParticles.Insert(null);
384 }
385
386 for (i = 0; i < PIPES_BROKEN_COUNT; ++i)
387 {
388 m_PipeBrokenParticles.Insert(null);
389 }
390
391 RegisterNetSyncVariableInt("m_ValveStatesPacked", 0);
392 RegisterNetSyncVariableInt("m_ValveManipulatedIndex", -1, VALVES_COUNT - 1);
393 RegisterNetSyncVariableInt("m_WaterLevelActual", WL_MIN, WL_MAX);
394 RegisterNetSyncVariableInt("m_WaterLevelPrev", WL_MIN, WL_MAX);
395
396 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(LateInit, 250);
397
399 m_TempHotfixTimer = new Timer();
400 m_TempHotfixTimer.Run(TEMP_HOTIX_TIMESLICE, this, "EOnPostSimulate", null, true);
401 }
DayZGame g_Game
Определения DayZGame.c:4074
ref ParticleSourceArray m_PipeBrokenParticles
int m_WaterLevelActual
ref array< ref PressureLevelSettings > m_DrainValvePressureDeanimationSettings
ref ParticleSourceArray m_ValveParticles
ref map< string, vector > m_WaterLevelsAvailable
int m_ValveManipulatedIndexPrev
ref array< ref PressureLevelSettings > m_FillValvePressureStageSettings
ref array< ref PressureLevelSettings > m_FillValvePressureDeanimationSettings
ref Timer m_TempHotfixTimer
ref array< ref WaterLevelSettings > m_DrainValveWaterStageSettings
valve/pipe stages for water and pressure levels
ref array< ref WaterLevelSettings > m_FillValveWaterStageSettings
for deanimation purposes
ref array< bool > m_PressureDeanimationRequests
const int VALVES_COUNT
ref array< ref PressureLevelSettings > m_DrainValvePressureStageSettings
const int WL_MAX
ref array< bool > m_ValveStates
ref array< string > m_ValveNames
const int WL_MIN
ref array< float > m_PressureTimesAccumulated
ref array< EffectSound > m_PipeSounds
ref WaterLevelSnapshot m_WaterLevelSnapshot
for deanimation purposes
const int PIPES_BROKEN_COUNT
const int WL_AVERAGE
ref array< float > m_WaterLevelTimesAccumulated
int m_ValveManipulatedIndex
int m_WaterLevelPrev
ref array< bool > m_PressureAnimationRequests
int m_LastActiveValve
const float TEMP_HOTIX_TIMESLICE
void LateInit()
Определения OutdoorThermometer.c:95
array< ParticleSource > ParticleSourceArray
Определения ParticleSource.c:107
Определения DayZPlayerImplement.c:39
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Определения Transport.c:70
const int INDEX_NOT_FOUND
Определения gameplay.c:13
const int CALL_CATEGORY_SYSTEM
Определения 3_Game/DayZ/tools/tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, g_Game, INDEX_NOT_FOUND, LateInit(), m_DrainValvePressureDeanimationSettings, m_DrainValvePressureStageSettings, m_DrainValveWaterStageSettings, m_FillValvePressureDeanimationSettings, m_FillValvePressureStageSettings, m_FillValveWaterStageSettings, m_LastActiveValve, m_PipeBrokenParticles, m_PipeSounds, m_PressureAnimationRequests, m_PressureDeanimationRequests, m_PressureTimesAccumulated, m_TempHotfixTimer, m_ValveManipulatedIndex, m_ValveManipulatedIndexPrev, m_ValveNames, m_ValveParticles, m_ValveStates, m_WaterLevelActual, m_WaterLevelPrev, m_WaterLevelsAvailable, m_WaterLevelSnapshot, m_WaterLevelTimesAccumulated, PIPES_BROKEN_COUNT, TEMP_HOTIX_TIMESLICE, VALVES_COUNT, WL_AVERAGE, WL_MAX и WL_MIN.