DIFF

class Land_WarheadStorage_MainSource

Land_WarheadStorage_Main House BuildingBase Building EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 2

Constants 18

protected const float DOOR_AUTOCLOSE_TIME = 12

how long before the outer door auto-close after being opened

Referenced by OnDoorOpenStart()
protected const int SOURCES_COUNT = 4

storage lights, side vents, lamps

Referenced by OnPowerOnClient()
protected const string WARHEAD_BUNKER_TRIGGER = "UndergroundBunkerTrigger"
protected const string ALARM_POS_MEMPOINT = "underground"
protected const string VENT_MAIN_POS_MEMPOINT = "Ventilation_main"
protected const string VENT_POS_MEMPOINT = "Ventilation"
Referenced by OnPowerOnClient()
protected const string ALARM_DOOR_OPEN_SOUND = "UndergroundDoor_Alarm_Start_SoundSet"
Referenced by OnDoorOpenStart()
protected const string ALARM_DOOR_OPEN_LOOP_SOUND = "UndergroundDoor_Alarm_Loop_SoundSet"
protected const string ALARM_DOOR_CLOSE_SOUND = "UndergroundDoor_Alarm_End_SoundSet"
Referenced by OnDoorCloseFinish()
protected const string VENTILATION_SOUND = "Bunker_Ventilation_SoundSet"
Referenced by OnPowerOnClient()
protected const string LAMPS_SOUND = "Bunker_Lamp_Hum_SoundSet"
Referenced by OnPowerOnClient()
protected const string ELECTRICITY_ON_SOUND = "Bunker_bunker_electricity_on_SoundSet"
Referenced by OnPowerOnClient()
protected const string ELECTRICITY_OFF_SOUND = "Bunker_bunker_electricity_off_SoundSet"
Referenced by OnPowerOffClient()
protected const string LAMP_SELECTION = "GlassLamp"
protected const string MAIN_DOOR_SELECTION1 = "maindoor1_outer"
protected const string MAIN_DOOR_SELECTION2 = "maindoor2_outer"
protected const string COLOR_LAMP_OFF = "DZ\\structures_sakhal\\military\\storage\\data\\Warhead_Storage_Lamp_Glass_int.rvmat"
protected const string COLOR_LAMP_ON = "DZ\\structures_sakhal\\military\\storage\\data\\Warhead_Storage_Lamp_Glass_e_int.rvmat"

Members 8

protected bool m_HasPowerPrev
protected bool m_IsLowEnergy
protected WarheadStorageLight m_StorageDoorLights[4]
protected EffectSound m_SoundDoorLoop[4]
protected ref array<EffectSound> m_PoweredSoundEffects = new array<EffectSound>()
protected ref map<int, ref Timer> m_AutoCloseTimers
protected bool m_HasPower
protected bool m_LeverStatesBits

Methods 26

void SetLowEnergyStateServer(bool state)
bool IsLowEnergy()
References m_IsLowEnergy
override void OnDoorOpenFinish(DoorFinishParams params)
protected void RemoveDoorTimer(int doorIndex)
void AutoCloseDoor(int doorIndex)
Referenced by DeferredInit()
protected int GetStorageLightIndexByDoor(int doorIndex)
protected int GetDoorIndexByLeverIndex(int LeverIndex)
override bool CanDoorBeOpened(int doorIndex, bool checkIfLocked = false)
override bool CanDoorBeLocked(int doorIndex)
protected int GetBunkerEffectIndexByDoor(int doorIndex)
protected bool IsStorageDoor(int doorIndex)
override bool CanDoorBeClosed(int doorIndex)
override string GetDebugText()
override void OnVariablesSynchronized()