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

◆ Init()

void Init ( )
protected

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

pre-init arrays

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

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

343 {
358
361
365
369
371 int i = 0;
372 for (i = 0; i < VALVES_COUNT; ++i)
373 {
374 m_ValveNames.Insert("none");
375 m_ValveStates.Insert(false);
376 m_PressureAnimationRequests.Insert(false);
377 m_PressureDeanimationRequests.Insert(false);
380 m_PipeSounds.Insert(null);
381 m_ValveParticles.Insert(null);
382 }
383
384 for (i = 0; i < PIPES_BROKEN_COUNT; ++i)
385 {
386 m_PipeBrokenParticles.Insert(null);
387 }
388
389 RegisterNetSyncVariableInt("m_ValveStatesPacked", 0);
390 RegisterNetSyncVariableInt("m_ValveManipulatedIndex", -1, VALVES_COUNT - 1);
391 RegisterNetSyncVariableInt("m_WaterLevelActual", WL_MIN, WL_MAX);
392 RegisterNetSyncVariableInt("m_WaterLevelPrev", WL_MIN, WL_MAX);
393
394 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(LateInit, 250);
395
397 m_TempHotfixTimer = new Timer();
398 m_TempHotfixTimer.Run(TEMP_HOTIX_TIMESLICE, this, "EOnPostSimulate", null, true);
399 }
DayZGame g_Game
Определения DayZGame.c:3942
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:103
Определения DayZPlayerImplement.c:39
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Определения CachedEquipmentStorage.c:4
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.