17 static ref set<Land_Underground_Panel>
m_Panels;
40 RegisterNetSyncVariableBool(
"m_PanelWasUsed");
69 m_PanelWasUsed =
true;
74 ErrorEx(
"Can't find the instance of entrance the panel is linkined to");
82 m_Entrances =
new set<Land_Underground_EntranceBase>();
98 ErrorEx(
"Attempted to unregistered non-registered entrance");
107 m_Panels =
new set<Land_Underground_Panel>;
123 ErrorEx(
"Attempted to unregistered non-registered panel");
147 float closestDst =
float.MAX;
154 if (dist < closestDst)
167 if (color == ELEDColors.RED)
266 m_PanelWasUsed =
false;
274 case EUndegroundDoorType.MAIN:
303 case EUndegroundDoorType.SMALL:
331 protected void UpdateLED(
string selection,
string color)
333 int selectionIdx = GetHiddenSelectionIndex(selection);
334 SetObjectTexture(selectionIdx, color);
346 PlaySoundSet(
m_ActivationSound,
"UndergroundDoor_PanelActivation_SoundSet", 0, 0 );
override void OnVariablesSynchronized()
class EconomyOutputStrings OFF
const string SELECTION_NAME_LED_RED
static void UnregisterPanel(Land_Underground_Panel panel)
void ~Land_Underground_Panel()
static void RegisterEntrance(Land_Underground_EntranceBase entrance)
const string COLOR_LED_OFF
static void RegisterPanel(Land_Underground_Panel panel)
void Land_Underground_Panel()
void OnPanelUsedSynchronized()
EUndegroundDoorType GetLinkedDoorType()
void OnDoorStateChangedClient(EUndegroundEntranceState newState, EUndegroundEntranceState prevState)
const string SELECTION_NAME_LED_GREEN
const string COLOR_LED_GREEN
static ref set< Land_Underground_Panel > m_Panels
void SetBlinkingTimer(bool enable)
bool m_PanelWasUsed bool m_PanelWasUsedPrev
enum ELEDState m_Entrances
void UpdateLED(string selection, string color)
ELEDState m_LedStateGreen
EffectSound m_ActivationSound
Land_Underground_EntranceBase m_LinkedDoor
Land_Underground_EntranceBase GetClosestDoor()
static void UnregisterEntrance(Land_Underground_EntranceBase entrance)
void SetLEDState(ELEDColors color, ELEDState state)
Land_Underground_EntranceBase GetLinkedDoor()
const string COLOR_LED_RED
ref Timer m_FlipFlopTimer
override ScriptCallQueue GetCallQueue(int call_category)
proto native bool RegisterNetworkStaticObject(Object object)
Static objects cannot be replicated by default (there are too many objects on the map)....
Wrapper class for managing sound through SEffectManager.
bool CanManipulate(Param param=null)
EUndegroundDoorType m_DoorType
void Manipulate(Param param=null)
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition