9 g_Game.RegisterNetworkStaticObject(
this);
13 for (
int i = 0; i < GetDoorCount(); ++i)
22 if (!super.CanDoorBeOpened(doorIndex, checkIfLocked))
28 return IsDoorClosed(8);
30 return IsDoorClosed(7);
38 if (IsPressureDoor(doorIndex))
39 return IsDoorOpen(doorIndex) && !IsDoorOpening(doorIndex);
41 return super.CanDoorBeClosed(doorIndex);
49 if (IsPressureDoor(params.param1))
59 RemoveDoorTimer(params.param1);
64 super.OnSpawnByObjectSpawner(item);
66 if (item.customString ==
string.Empty)
70 if (jsonData && jsonData.Triggers)
72 foreach (
int index,
auto triggerData : jsonData.Triggers)
74 if (triggerData.CustomSpawn)
78 item.customString.Split(
";", customStringData);
80 foreach (
string entry : customStringData)
83 entry.Split(
"=", optionValuePair);
84 if (optionValuePair[0] ==
"undergroundTriggerTag")
86 if (optionValuePair[1] == triggerData.Tag)
95 private void AutoCloseDoor(
int doorIndex)
98 RemoveDoorTimer(doorIndex);
101 private void RemoveDoorTimer(
int doorIndex)
107 private bool IsPressureDoor(
int doorIndex)
Param1< int > DoorStartParams
const float DOOR_AUTOCLOSE_TIME
override void OnSpawnByObjectSpawner(ITEM_SpawnerObject item)
override bool CanDoorBeClosed(int doorIndex)
override void OnDoorOpenStart(DoorStartParams params)
override bool CanDoorBeOpened(int doorIndex, bool checkIfLocked=false)
ref map< int, ref Timer > m_AutoCloseTimers
override void DeferredInit()
override void OnDoorCloseStart(DoorStartParams params)
array< string > TStringArray