Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
land_underground_waterreservoir.c File Reference

Go to the source code of this file.

Data Structures

class  WaterLevelSettings
 
class  WaterLevelSnapshot
 
class  Land_Underground_WaterReservoir_Water
 

Functions

void PressureLevelSettings (int pPressureLevel, float pDuration)
 
void Land_Underground_WaterReservoir ()
 
void ~Land_Underground_WaterReservoir ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override void OnVariablesSynchronized ()
 
override void SetActions ()
 
override bool HasTurnableValveBehavior ()
 
protected void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system) More...
 
protected void LateInit ()
 
protected void ConfigureValvesAndGaugesCourse ()
 
override bool IsValveTurnable (int pValveIndex)
 
protected bool IsAnyValveActive ()
 
protected bool IsValveActive (int pValveIndex)
 
override int GetTurnableValveIndex (int pComponentIndex)
 
void OnValveManipulationStart (int pValveIndex)
 
void OnValveManipulationEnd (int pValveIndex)
 
void OnValveManipulationCanceled (int pValveIndex)
 
array< vectorGetValveAligningPointsWS (int pValveIndex)
 
protected void SetLastActiveValve (int pValveIndex)
 
protected void SetWaterLevelHeight (float pHeight)
 
protected void RegisterValve (string pCompName, int pIndex)
 
protected void TranslateMemoryPointsToWaterLevels ()
 
protected float WaterLevelToHeight (int pWaterLevel)
 
protected int HeightToWaterLevel (float pHeight)
 
protected float PressureLevelToValue (int pPressureLevel)
 
protected WaterLevelSettings PreviousWaterLevelStageSettings (int pValveIndex)
 
protected WaterLevelSettings ActualWaterLevelStageSettings (int pValveIndex)
 
protected void AdvanceToNextWaterLevelStageSettings (int pValveIndex)
 
protected PressureLevelSettings PreviousPressureLevelStageSettings (int pValveIndex, bool pDeanimationRequest=false)
 
protected PressureLevelSettings ActualPressureLevelStageSettings (int pValveIndex, bool pDeanimationRequest=false)
 
protected void AdvanceToNextPressureLevelStageSettings (int pValveIndex)
 
protected void SetDefaultPressureLevelStageSettings (int pValveIndex)
 
protected void AnimateValve (int pValveIndex, float pPhase)
 
protected void SetValvePressureLevelGauge (int pValveIndex, float pValue)
 
protected float GetValvePressureLevelGauge (int pValveIndex)
 
protected bool IsValvePressureLevelGaugeAtBase (int pValveIndex)
 
protected float AdjustTime (float originalTime)
 
protected vector GetMemoryPointPosition (string pMemoryPoint)
 
protected void HandleSoundEffects ()
 
protected void PlayValveManipulationSound ()
 
protected void HandleSoundEffectsPipeCreaking ()
 
protected void HandleSoundEffectsPipeSprinkling ()
 
protected void HandleSoundEffectsUnderwaterPipeSounds ()
 
protected void HandleSoundEffectsWaterLevelMovementSounds ()
 
protected void CleanSoundEffects ()
 
protected void PlayPipeCreakingSoundOnLocation ()
 
protected void HandleVisualEffects ()
 
protected void CleanVisualEffects ()
 
protected void ResetState ()
 
protected void SyncValveVariables ()
 
protected int PackArrayOfBoolStatesIntoBits (array< bool > pStates)
 
protected array< boolUnpackBitsToArrayOfBoolStates (int pPackedBits, int pArrayLength)
 

Variables

class WaterLevelSettings PressureLevel
 
float Duration
 
class WaterLevelSnapshot OBJECT_NAME_WATER_PLANE = "Land_Underground_WaterReservoir_Water"
 
const protected int WL_MIN = 0
 
const protected int WL_ABOVE_PIPES = 1
 
const protected int WL_AVERAGE = 2
 
const protected int WL_MAX = 3
 
const protected int PL_MIN = 0
 
const protected int PL_AVERAGE = 1
 
const protected int PL_MAX = 2
 
const protected int VALVES_COUNT = 2
 
const protected int VALVE_INDEX_DRAIN = 0
 
const protected int VALVE_INDEX_FILL = 1
 
const protected int PIPES_BROKEN_COUNT = 2
 
const protected int PIPE_INDEX_BROKEN1 = 0
 
const protected int PIPE_INDEX_BROKEN2 = 1
 main broken pipe More...
 
const protected string ANIM_PHASE_VALVE_GAUGE_DRAIN = "ValveGauge1"
 tighter broken pipe More...
 
const protected string ANIM_PHASE_VALVE_GAUGE_FILL = "ValveGauge2"
 
const protected string ANIM_PHASE_VALVE_DRAIN = "Valve1"
 
const protected string ANIM_PHASE_VALVE_FILL = "Valve2"
 
const protected string VALVE_NAME_DRAIN = "valve1"
 
const protected string VALVE_NAME_FILL = "valve2"
 
const protected string PIPE_NAME_BROKEN1 = "pipe_broken_1"
 
const protected string PIPE_NAME_BROKEN2 = "pipe_broken_2"
 
const protected string PIPE_NAME_LEAKING_DRAIN = "pipe_leaking_1"
 
const protected string PIPE_NAME_LEAKING_FILL = "pipe_leaking_2"
 
const protected string SOUND_NAME_PIPE_CREAKING = "WaterObjectUndergroundPipeCreaking_SoundSet"
 
const protected string SOUND_NAME_VALVE_MANIPULATION = "WaterObjectUndergroundValve_SoundSet"
 
const protected string SOUND_NAME_PIPE_SPRINKLING_START = "WaterObjectUndergroundPipeSprinkling_Start_SoundSet"
 
const protected string SOUND_NAME_PIPE_SPRINKLING_END = "WaterObjectUndergroundPipeSprinkling_End_SoundSet"
 
const protected string SOUND_NAME_PIPE_SPRINKLING_LOOP1 = "WaterObjectUndergroundPipeSprinkling_Loop1_SoundSet"
 
const protected string SOUND_NAME_PIPE_SPRINKLING_LOOP2 = "WaterObjectUndergroundPipeSprinkling_Loop2_SoundSet"
 
const protected string SOUND_NAME_UPIPE_SPRINKLING_START = "WaterObjectUndergroundUnderwaterPipe_Start_SoundSet"
 
const protected string SOUND_NAME_UPIPE_SPRINKLING_END = "WaterObjectUndergroundUnderwaterPipe_End_SoundSet"
 
const protected string SOUND_NAME_UPIPE_SPRINKLING_LOOP = "WaterObjectUndergroundUnderwaterPipe_Loop_SoundSet"
 
const protected string SOUND_NAME_WATER_FILL_LOOP = "WaterObjectUndergroundUnderwaterFill_Loop_SoundSet"
 
const protected string SOUND_NAME_WATER_DRAIN_LOOP = "WaterObjectUndergroundUnderwaterEmpty_Loop_SoundSet"
 
const protected int PARTICLE_DRAIN_PIPE_MAX_PRESSURE = ParticleList.WATER_SPILLING
 
const protected int PARTICLE_FILL_PIPE_MAX_PRESSURE = ParticleList.WATER_SPILLING
 
const protected int PARTICLE_FILL_PIPE_JET = ParticleList.WATER_JET
 
const protected int PARTICLE_FILL_PIPE_JET_WEAK = ParticleList.WATER_JET_WEAK
 
protected ref array< ref WaterLevelSettingsm_DrainValveWaterStageSettings
 valve/pipe stages for water and pressure levels More...
 
protected ref array< ref PressureLevelSettingsm_DrainValvePressureStageSettings
 
protected ref array< ref PressureLevelSettingsm_DrainValvePressureDeanimationSettings
 
protected ref array< ref WaterLevelSettingsm_FillValveWaterStageSettings
 for deanimation purposes More...
 
protected ref array< ref PressureLevelSettingsm_FillValvePressureStageSettings
 
protected ref array< ref PressureLevelSettingsm_FillValvePressureDeanimationSettings
 
protected ref WaterLevelSnapshot m_WaterLevelSnapshot
 for deanimation purposes More...
 
protected int m_DrainValveWaterLevelStageIndex
 pointing to specific stage for each valve/pipe More...
 
protected int m_DrainValvePressureLevelStageIndex
 
protected int m_FillValveWaterLevelStageIndex
 
protected int m_FillValvePressureLevelStageIndex
 
const protected int WATER_LEVELS_COUNT = 4
 
const protected string WATER_LEVELS [WATER_LEVELS_COUNT]
 
protected int m_ValveStatesPacked
 
protected int m_ValveStatesPackedPrev
 
protected int m_ValveManipulatedIndex
 
protected int m_ValveManipulatedIndexPrev
 
protected ref array< stringm_ValveNames
 
protected ref array< boolm_ValveStates
 
protected ref map< string, vectorm_WaterLevelsAvailable
 
protected int m_WaterLevelActual
 
protected int m_WaterLevelPrev
 
protected ref array< boolm_PressureAnimationRequests
 
protected ref array< boolm_PressureDeanimationRequests
 
protected ref array< floatm_WaterLevelTimesAccumulated
 
protected ref array< floatm_PressureTimesAccumulated
 
protected int m_LastActiveValve
 
protected Object m_SpawnedWaterObject
 
protected vector m_WaterLevelDefault
 
protected float m_WaterLevelHeightActual
 
protected bool m_ValveManipulationSoundRequested
 VFX/SFX. More...
 
protected ref EffectSound m_ValveManipulationSound
 
protected ref array< EffectSoundm_PipeSounds
 
protected bool m_PipeCreakingSoundRequested
 
protected ref EffectSound m_PipeCreakingSounds
 
protected bool m_PipeUnderwaterSoundRunning protected ref EffectSound m_PipeUnderwaterSound
 
protected ref EffectSound m_WaterLevelMovementSound
 
const protected int PIPE_CREAKING_MIN_TIME_DELAY_MS = 10000
 
const protected int PIPE_CREAKING_MAX_TIME_DELAY_MS = 15000
 
const protected int PIPE_CREAKING_SOUND_LOCATIONS_COUNT = 4
 
const protected string PIPE_CREAKING_SOUND_LOCATIONS [PIPE_CREAKING_SOUND_LOCATIONS_COUNT]
 
protected ref ParticleSourceArray m_ValveParticles
 
protected ref ParticleSourceArray m_PipeBrokenParticles
 

Function Documentation

◆ ActualPressureLevelStageSettings()

protected PressureLevelSettings ActualPressureLevelStageSettings ( int  pValveIndex,
bool  pDeanimationRequest = false 
)

Definition at line 776 of file land_underground_waterreservoir.c.

◆ ActualWaterLevelStageSettings()

protected WaterLevelSettings ActualWaterLevelStageSettings ( int  pValveIndex)

Definition at line 689 of file land_underground_waterreservoir.c.

◆ AdjustTime()

protected float AdjustTime ( float  originalTime)

Definition at line 901 of file land_underground_waterreservoir.c.

◆ AdvanceToNextPressureLevelStageSettings()

protected void AdvanceToNextPressureLevelStageSettings ( int  pValveIndex)

Definition at line 805 of file land_underground_waterreservoir.c.

◆ AdvanceToNextWaterLevelStageSettings()

protected void AdvanceToNextWaterLevelStageSettings ( int  pValveIndex)

Definition at line 706 of file land_underground_waterreservoir.c.

◆ AnimateValve()

protected void AnimateValve ( int  pValveIndex,
float  pPhase 
)

Definition at line 845 of file land_underground_waterreservoir.c.

◆ CleanSoundEffects()

protected void CleanSoundEffects ( )

Definition at line 1084 of file land_underground_waterreservoir.c.

◆ CleanVisualEffects()

protected void CleanVisualEffects ( )

Definition at line 1175 of file land_underground_waterreservoir.c.

◆ ConfigureValvesAndGaugesCourse()

protected void ConfigureValvesAndGaugesCourse ( )

drain - water level

drain - pressure

for deanimation purposes only while valves activation overllaps

fill - water level

fill - pressure

for deanimation purposes only while valves activation overllaps

Definition at line 410 of file land_underground_waterreservoir.c.

◆ EOnPostSimulate()

override void EOnPostSimulate ( IEntity  other,
float  timeSlice 
)

In case where one of the valves is already running

  • snapshot values; stop animation of that valve and continue with newly requested

will force that valve to start deanimation of gauge

water level course and animation

stay on the same level

pressure course and animation

stay on the same level

end of deanimation - overlapped activation of valves

Definition at line 166 of file land_underground_waterreservoir.c.

◆ GetMemoryPointPosition()

protected vector GetMemoryPointPosition ( string  pMemoryPoint)

Definition at line 914 of file land_underground_waterreservoir.c.

◆ GetTurnableValveIndex()

override int GetTurnableValveIndex ( int  pComponentIndex)

Definition at line 468 of file land_underground_waterreservoir.c.

◆ GetValveAligningPointsWS()

array<vector> GetValveAligningPointsWS ( int  pValveIndex)

for the animation aligning returns data in order: start point; direction point

Definition at line 532 of file land_underground_waterreservoir.c.

◆ GetValvePressureLevelGauge()

protected float GetValvePressureLevelGauge ( int  pValveIndex)

Definition at line 871 of file land_underground_waterreservoir.c.

◆ HandleSoundEffects()

protected void HandleSoundEffects ( )

Definition at line 931 of file land_underground_waterreservoir.c.

◆ HandleSoundEffectsPipeCreaking()

protected void HandleSoundEffectsPipeCreaking ( )

Definition at line 952 of file land_underground_waterreservoir.c.

◆ HandleSoundEffectsPipeSprinkling()

protected void HandleSoundEffectsPipeSprinkling ( )

Definition at line 973 of file land_underground_waterreservoir.c.

◆ HandleSoundEffectsUnderwaterPipeSounds()

protected void HandleSoundEffectsUnderwaterPipeSounds ( )

strong water jet sound only when fill valve activated

Definition at line 1029 of file land_underground_waterreservoir.c.

◆ HandleSoundEffectsWaterLevelMovementSounds()

protected void HandleSoundEffectsWaterLevelMovementSounds ( )

Definition at line 1059 of file land_underground_waterreservoir.c.

◆ HandleVisualEffects()

protected void HandleVisualEffects ( )

strong jet stream particle only when fill valve activated

we don't need the weak jet stream

weak jet stream

Definition at line 1097 of file land_underground_waterreservoir.c.

◆ HasTurnableValveBehavior()

override bool HasTurnableValveBehavior ( )

Definition at line 328 of file land_underground_waterreservoir.c.

◆ HeightToWaterLevel()

protected int HeightToWaterLevel ( float  pHeight)

Definition at line 618 of file land_underground_waterreservoir.c.

◆ Init()

protected void Init ( )

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

pre-init arrays

Definition at line 333 of file land_underground_waterreservoir.c.

◆ IsAnyValveActive()

protected bool IsAnyValveActive ( )

Definition at line 450 of file land_underground_waterreservoir.c.

◆ IsValveActive()

protected bool IsValveActive ( int  pValveIndex)

Definition at line 463 of file land_underground_waterreservoir.c.

◆ IsValvePressureLevelGaugeAtBase()

protected bool IsValvePressureLevelGaugeAtBase ( int  pValveIndex)

Definition at line 886 of file land_underground_waterreservoir.c.

◆ IsValveTurnable()

override bool IsValveTurnable ( int  pValveIndex)

Definition at line 445 of file land_underground_waterreservoir.c.

◆ Land_Underground_WaterReservoir()

void Land_Underground_WaterReservoir ( )

Definition at line 153 of file land_underground_waterreservoir.c.

◆ LateInit()

protected void LateInit ( )

Definition at line 388 of file land_underground_waterreservoir.c.

◆ OnValveManipulationCanceled()

void OnValveManipulationCanceled ( int  pValveIndex)

Definition at line 520 of file land_underground_waterreservoir.c.

◆ OnValveManipulationEnd()

void OnValveManipulationEnd ( int  pValveIndex)

Definition at line 492 of file land_underground_waterreservoir.c.

◆ OnValveManipulationStart()

void OnValveManipulationStart ( int  pValveIndex)

Definition at line 482 of file land_underground_waterreservoir.c.

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )

Definition at line 308 of file land_underground_waterreservoir.c.

◆ PackArrayOfBoolStatesIntoBits()

protected int PackArrayOfBoolStatesIntoBits ( array< bool pStates)

Definition at line 1234 of file land_underground_waterreservoir.c.

◆ PlayPipeCreakingSoundOnLocation()

protected void PlayPipeCreakingSoundOnLocation ( )

Definition at line 1090 of file land_underground_waterreservoir.c.

◆ PlayValveManipulationSound()

protected void PlayValveManipulationSound ( )

Definition at line 939 of file land_underground_waterreservoir.c.

◆ PressureLevelSettings()

void PressureLevelSettings ( int  pPressureLevel,
float  pDuration 
)

Definition at line 18 of file land_underground_waterreservoir.c.

◆ PressureLevelToValue()

protected float PressureLevelToValue ( int  pPressureLevel)

Definition at line 640 of file land_underground_waterreservoir.c.

◆ PreviousPressureLevelStageSettings()

protected PressureLevelSettings PreviousPressureLevelStageSettings ( int  pValveIndex,
bool  pDeanimationRequest = false 
)

Definition at line 733 of file land_underground_waterreservoir.c.

◆ PreviousWaterLevelStageSettings()

protected WaterLevelSettings PreviousWaterLevelStageSettings ( int  pValveIndex)

Definition at line 655 of file land_underground_waterreservoir.c.

◆ RegisterValve()

protected void RegisterValve ( string  pCompName,
int  pIndex 
)

Definition at line 575 of file land_underground_waterreservoir.c.

◆ ResetState()

protected void ResetState ( )

Definition at line 1198 of file land_underground_waterreservoir.c.

◆ SetActions()

override void SetActions ( )

Definition at line 321 of file land_underground_waterreservoir.c.

◆ SetDefaultPressureLevelStageSettings()

protected void SetDefaultPressureLevelStageSettings ( int  pValveIndex)

Definition at line 832 of file land_underground_waterreservoir.c.

◆ SetLastActiveValve()

protected void SetLastActiveValve ( int  pValveIndex)

Definition at line 555 of file land_underground_waterreservoir.c.

◆ SetValvePressureLevelGauge()

protected void SetValvePressureLevelGauge ( int  pValveIndex,
float  pValue 
)

Definition at line 858 of file land_underground_waterreservoir.c.

◆ SetWaterLevelHeight()

protected void SetWaterLevelHeight ( float  pHeight)

Definition at line 560 of file land_underground_waterreservoir.c.

◆ SyncValveVariables()

protected void SyncValveVariables ( )

Definition at line 1221 of file land_underground_waterreservoir.c.

◆ TranslateMemoryPointsToWaterLevels()

protected void TranslateMemoryPointsToWaterLevels ( )

Definition at line 586 of file land_underground_waterreservoir.c.

◆ UnpackBitsToArrayOfBoolStates()

protected array<bool> UnpackBitsToArrayOfBoolStates ( int  pPackedBits,
int  pArrayLength 
)

Definition at line 1249 of file land_underground_waterreservoir.c.

◆ WaterLevelToHeight()

protected float WaterLevelToHeight ( int  pWaterLevel)

Definition at line 601 of file land_underground_waterreservoir.c.

◆ ~Land_Underground_WaterReservoir()

Variable Documentation

◆ ANIM_PHASE_VALVE_DRAIN

const protected string ANIM_PHASE_VALVE_DRAIN = "Valve1"

Definition at line 54 of file land_underground_waterreservoir.c.

◆ ANIM_PHASE_VALVE_FILL

const protected string ANIM_PHASE_VALVE_FILL = "Valve2"

Definition at line 55 of file land_underground_waterreservoir.c.

◆ ANIM_PHASE_VALVE_GAUGE_DRAIN

const protected string ANIM_PHASE_VALVE_GAUGE_DRAIN = "ValveGauge1"

tighter broken pipe

Definition at line 52 of file land_underground_waterreservoir.c.

◆ ANIM_PHASE_VALVE_GAUGE_FILL

const protected string ANIM_PHASE_VALVE_GAUGE_FILL = "ValveGauge2"

Definition at line 53 of file land_underground_waterreservoir.c.

◆ Duration

float Duration

Definition at line 16 of file land_underground_waterreservoir.c.

◆ m_DrainValvePressureDeanimationSettings

protected ref array<ref PressureLevelSettings> m_DrainValvePressureDeanimationSettings

Definition at line 83 of file land_underground_waterreservoir.c.

◆ m_DrainValvePressureLevelStageIndex

protected int m_DrainValvePressureLevelStageIndex

Definition at line 91 of file land_underground_waterreservoir.c.

◆ m_DrainValvePressureStageSettings

protected ref array<ref PressureLevelSettings> m_DrainValvePressureStageSettings

Definition at line 82 of file land_underground_waterreservoir.c.

◆ m_DrainValveWaterLevelStageIndex

protected int m_DrainValveWaterLevelStageIndex

pointing to specific stage for each valve/pipe

Definition at line 90 of file land_underground_waterreservoir.c.

◆ m_DrainValveWaterStageSettings

protected ref array<ref WaterLevelSettings> m_DrainValveWaterStageSettings

valve/pipe stages for water and pressure levels

Definition at line 81 of file land_underground_waterreservoir.c.

◆ m_FillValvePressureDeanimationSettings

protected ref array<ref PressureLevelSettings> m_FillValvePressureDeanimationSettings

Definition at line 86 of file land_underground_waterreservoir.c.

◆ m_FillValvePressureLevelStageIndex

protected int m_FillValvePressureLevelStageIndex

Definition at line 93 of file land_underground_waterreservoir.c.

◆ m_FillValvePressureStageSettings

protected ref array<ref PressureLevelSettings> m_FillValvePressureStageSettings

Definition at line 85 of file land_underground_waterreservoir.c.

◆ m_FillValveWaterLevelStageIndex

protected int m_FillValveWaterLevelStageIndex

Definition at line 92 of file land_underground_waterreservoir.c.

◆ m_FillValveWaterStageSettings

protected ref array<ref WaterLevelSettings> m_FillValveWaterStageSettings

for deanimation purposes

Definition at line 84 of file land_underground_waterreservoir.c.

◆ m_LastActiveValve

protected int m_LastActiveValve

Definition at line 121 of file land_underground_waterreservoir.c.

◆ m_PipeBrokenParticles

protected ref ParticleSourceArray m_PipeBrokenParticles

Definition at line 151 of file land_underground_waterreservoir.c.

◆ m_PipeCreakingSoundRequested

protected bool m_PipeCreakingSoundRequested

Definition at line 132 of file land_underground_waterreservoir.c.

◆ m_PipeCreakingSounds

protected ref EffectSound m_PipeCreakingSounds

Definition at line 133 of file land_underground_waterreservoir.c.

◆ m_PipeSounds

protected ref array<EffectSound> m_PipeSounds

Definition at line 130 of file land_underground_waterreservoir.c.

◆ m_PipeUnderwaterSound

protected bool m_PipeUnderwaterSoundRunning protected ref EffectSound m_PipeUnderwaterSound

Definition at line 136 of file land_underground_waterreservoir.c.

◆ m_PressureAnimationRequests

protected ref array<bool> m_PressureAnimationRequests

Definition at line 117 of file land_underground_waterreservoir.c.

◆ m_PressureDeanimationRequests

protected ref array<bool> m_PressureDeanimationRequests

Definition at line 118 of file land_underground_waterreservoir.c.

◆ m_PressureTimesAccumulated

protected ref array<float> m_PressureTimesAccumulated

Definition at line 120 of file land_underground_waterreservoir.c.

◆ m_SpawnedWaterObject

protected Object m_SpawnedWaterObject

Definition at line 123 of file land_underground_waterreservoir.c.

◆ m_ValveManipulatedIndex

protected int m_ValveManipulatedIndex

Definition at line 110 of file land_underground_waterreservoir.c.

◆ m_ValveManipulatedIndexPrev

protected int m_ValveManipulatedIndexPrev

Definition at line 111 of file land_underground_waterreservoir.c.

◆ m_ValveManipulationSound

protected ref EffectSound m_ValveManipulationSound

Definition at line 129 of file land_underground_waterreservoir.c.

◆ m_ValveManipulationSoundRequested

protected bool m_ValveManipulationSoundRequested

VFX/SFX.

Definition at line 128 of file land_underground_waterreservoir.c.

◆ m_ValveNames

protected ref array<string> m_ValveNames

Definition at line 112 of file land_underground_waterreservoir.c.

◆ m_ValveParticles

protected ref ParticleSourceArray m_ValveParticles

Definition at line 150 of file land_underground_waterreservoir.c.

◆ m_ValveStates

protected ref array<bool> m_ValveStates

Definition at line 113 of file land_underground_waterreservoir.c.

◆ m_ValveStatesPacked

protected int m_ValveStatesPacked

Definition at line 108 of file land_underground_waterreservoir.c.

◆ m_ValveStatesPackedPrev

protected int m_ValveStatesPackedPrev

Definition at line 109 of file land_underground_waterreservoir.c.

◆ m_WaterLevelActual

protected int m_WaterLevelActual

Definition at line 115 of file land_underground_waterreservoir.c.

◆ m_WaterLevelDefault

protected vector m_WaterLevelDefault

Definition at line 124 of file land_underground_waterreservoir.c.

◆ m_WaterLevelHeightActual

protected float m_WaterLevelHeightActual

Definition at line 125 of file land_underground_waterreservoir.c.

◆ m_WaterLevelMovementSound

protected ref EffectSound m_WaterLevelMovementSound

Definition at line 138 of file land_underground_waterreservoir.c.

◆ m_WaterLevelPrev

protected int m_WaterLevelPrev

Definition at line 116 of file land_underground_waterreservoir.c.

◆ m_WaterLevelsAvailable

protected ref map<string, vector> m_WaterLevelsAvailable

Definition at line 114 of file land_underground_waterreservoir.c.

◆ m_WaterLevelSnapshot

protected ref WaterLevelSnapshot m_WaterLevelSnapshot

for deanimation purposes

Definition at line 87 of file land_underground_waterreservoir.c.

◆ m_WaterLevelTimesAccumulated

protected ref array<float> m_WaterLevelTimesAccumulated

Definition at line 119 of file land_underground_waterreservoir.c.

◆ OBJECT_NAME_WATER_PLANE

class WaterLevelSnapshot OBJECT_NAME_WATER_PLANE = "Land_Underground_WaterReservoir_Water"

◆ PARTICLE_DRAIN_PIPE_MAX_PRESSURE

const protected int PARTICLE_DRAIN_PIPE_MAX_PRESSURE = ParticleList.WATER_SPILLING

Definition at line 75 of file land_underground_waterreservoir.c.

◆ PARTICLE_FILL_PIPE_JET

const protected int PARTICLE_FILL_PIPE_JET = ParticleList.WATER_JET

Definition at line 77 of file land_underground_waterreservoir.c.

◆ PARTICLE_FILL_PIPE_JET_WEAK

const protected int PARTICLE_FILL_PIPE_JET_WEAK = ParticleList.WATER_JET_WEAK

Definition at line 78 of file land_underground_waterreservoir.c.

◆ PARTICLE_FILL_PIPE_MAX_PRESSURE

const protected int PARTICLE_FILL_PIPE_MAX_PRESSURE = ParticleList.WATER_SPILLING

Definition at line 76 of file land_underground_waterreservoir.c.

◆ PIPE_CREAKING_MAX_TIME_DELAY_MS

const protected int PIPE_CREAKING_MAX_TIME_DELAY_MS = 15000

Definition at line 141 of file land_underground_waterreservoir.c.

◆ PIPE_CREAKING_MIN_TIME_DELAY_MS

const protected int PIPE_CREAKING_MIN_TIME_DELAY_MS = 10000

Definition at line 140 of file land_underground_waterreservoir.c.

◆ PIPE_CREAKING_SOUND_LOCATIONS

const protected string PIPE_CREAKING_SOUND_LOCATIONS[PIPE_CREAKING_SOUND_LOCATIONS_COUNT]
Initial value:
= {
"pipe_creaking_sound_pos_1",
"pipe_creaking_sound_pos_2",
"pipe_creaking_sound_pos_3",
"pipe_creaking_sound_pos_4"
}

Definition at line 143 of file land_underground_waterreservoir.c.

◆ PIPE_CREAKING_SOUND_LOCATIONS_COUNT

const protected int PIPE_CREAKING_SOUND_LOCATIONS_COUNT = 4

Definition at line 142 of file land_underground_waterreservoir.c.

◆ PIPE_INDEX_BROKEN1

const protected int PIPE_INDEX_BROKEN1 = 0

Definition at line 49 of file land_underground_waterreservoir.c.

◆ PIPE_INDEX_BROKEN2

const protected int PIPE_INDEX_BROKEN2 = 1

main broken pipe

Definition at line 50 of file land_underground_waterreservoir.c.

◆ PIPE_NAME_BROKEN1

const protected string PIPE_NAME_BROKEN1 = "pipe_broken_1"

Definition at line 58 of file land_underground_waterreservoir.c.

◆ PIPE_NAME_BROKEN2

const protected string PIPE_NAME_BROKEN2 = "pipe_broken_2"

Definition at line 59 of file land_underground_waterreservoir.c.

◆ PIPE_NAME_LEAKING_DRAIN

const protected string PIPE_NAME_LEAKING_DRAIN = "pipe_leaking_1"

Definition at line 60 of file land_underground_waterreservoir.c.

◆ PIPE_NAME_LEAKING_FILL

const protected string PIPE_NAME_LEAKING_FILL = "pipe_leaking_2"

Definition at line 61 of file land_underground_waterreservoir.c.

◆ PIPES_BROKEN_COUNT

const protected int PIPES_BROKEN_COUNT = 2

Definition at line 48 of file land_underground_waterreservoir.c.

◆ PL_AVERAGE

const protected int PL_AVERAGE = 1

Definition at line 41 of file land_underground_waterreservoir.c.

◆ PL_MAX

const protected int PL_MAX = 2

Definition at line 42 of file land_underground_waterreservoir.c.

◆ PL_MIN

const protected int PL_MIN = 0

Definition at line 40 of file land_underground_waterreservoir.c.

◆ PressureLevel

class WaterLevelSettings PressureLevel

◆ SOUND_NAME_PIPE_CREAKING

const protected string SOUND_NAME_PIPE_CREAKING = "WaterObjectUndergroundPipeCreaking_SoundSet"

Definition at line 63 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_PIPE_SPRINKLING_END

const protected string SOUND_NAME_PIPE_SPRINKLING_END = "WaterObjectUndergroundPipeSprinkling_End_SoundSet"

Definition at line 66 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_PIPE_SPRINKLING_LOOP1

const protected string SOUND_NAME_PIPE_SPRINKLING_LOOP1 = "WaterObjectUndergroundPipeSprinkling_Loop1_SoundSet"

Definition at line 67 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_PIPE_SPRINKLING_LOOP2

const protected string SOUND_NAME_PIPE_SPRINKLING_LOOP2 = "WaterObjectUndergroundPipeSprinkling_Loop2_SoundSet"

Definition at line 68 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_PIPE_SPRINKLING_START

const protected string SOUND_NAME_PIPE_SPRINKLING_START = "WaterObjectUndergroundPipeSprinkling_Start_SoundSet"

Definition at line 65 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_UPIPE_SPRINKLING_END

const protected string SOUND_NAME_UPIPE_SPRINKLING_END = "WaterObjectUndergroundUnderwaterPipe_End_SoundSet"

Definition at line 70 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_UPIPE_SPRINKLING_LOOP

const protected string SOUND_NAME_UPIPE_SPRINKLING_LOOP = "WaterObjectUndergroundUnderwaterPipe_Loop_SoundSet"

Definition at line 71 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_UPIPE_SPRINKLING_START

const protected string SOUND_NAME_UPIPE_SPRINKLING_START = "WaterObjectUndergroundUnderwaterPipe_Start_SoundSet"

Definition at line 69 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_VALVE_MANIPULATION

const protected string SOUND_NAME_VALVE_MANIPULATION = "WaterObjectUndergroundValve_SoundSet"

Definition at line 64 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_WATER_DRAIN_LOOP

const protected string SOUND_NAME_WATER_DRAIN_LOOP = "WaterObjectUndergroundUnderwaterEmpty_Loop_SoundSet"

Definition at line 73 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_WATER_FILL_LOOP

const protected string SOUND_NAME_WATER_FILL_LOOP = "WaterObjectUndergroundUnderwaterFill_Loop_SoundSet"

Definition at line 72 of file land_underground_waterreservoir.c.

◆ VALVE_INDEX_DRAIN

const protected int VALVE_INDEX_DRAIN = 0

Definition at line 45 of file land_underground_waterreservoir.c.

◆ VALVE_INDEX_FILL

const protected int VALVE_INDEX_FILL = 1

Definition at line 46 of file land_underground_waterreservoir.c.

◆ VALVE_NAME_DRAIN

const protected string VALVE_NAME_DRAIN = "valve1"

Definition at line 56 of file land_underground_waterreservoir.c.

◆ VALVE_NAME_FILL

const protected string VALVE_NAME_FILL = "valve2"

Definition at line 57 of file land_underground_waterreservoir.c.

◆ VALVES_COUNT

const protected int VALVES_COUNT = 2

Definition at line 44 of file land_underground_waterreservoir.c.

◆ WATER_LEVELS

const protected string WATER_LEVELS[WATER_LEVELS_COUNT]
Initial value:
= {
WATER_LEVEL_MAX,
WATER_LEVEL_AVERAGE,
WATER_LEVEL_ABOVE_PIPES,
WATER_LEVEL_MIN
}

Definition at line 101 of file land_underground_waterreservoir.c.

◆ WATER_LEVELS_COUNT

const protected int WATER_LEVELS_COUNT = 4

Definition at line 100 of file land_underground_waterreservoir.c.

◆ WL_ABOVE_PIPES

const protected int WL_ABOVE_PIPES = 1

Definition at line 36 of file land_underground_waterreservoir.c.

◆ WL_AVERAGE

const protected int WL_AVERAGE = 2

Definition at line 37 of file land_underground_waterreservoir.c.

◆ WL_MAX

const protected int WL_MAX = 3

Definition at line 38 of file land_underground_waterreservoir.c.

◆ WL_MIN

const protected int WL_MIN = 0

Definition at line 35 of file land_underground_waterreservoir.c.