class FenceSource
Fence › BaseBuildingBase › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
All members, including inherited
Constructors 1
void Fence()Constants 11
const int GATE_STATE_NONE = 0const int GATE_STATE_PARTIAL = 1const int GATE_STATE_FULL = 2const string ATTACHMENT_SLOT_COMBINATION_LOCK = "Att_CombinationLock"const string SOUND_GATE_OPEN_START = "DoorWoodTowerOpen_SoundSet"Referenced by SoundGateOpenStart()
const string SOUND_GATE_CLOSE_START = "DoorWoodTowerClose_start_SoundSet"Referenced by SoundGateCloseStart()
const string SOUND_GATE_CLOSE_END = "DoorWoodTowerClose_end_SoundSet"Referenced by SoundGateCloseEnd()
const float GATE_ROTATION_ANGLE_DEG = 100const float MAX_ACTION_DETECTION_ANGLE_RAD = 1.31.3 RAD = ~75 DEG
Members 11
typename ATTACHMENT_WOODEN_LOG = WoodenLogReferenced by CanReceiveAttachment()
typename ATTACHMENT_COMBINATION_LOCK = CombinationLockReferenced by CanReceiveAttachment()
string ATTSLOT_CAMONET = "Wall_Camonet"Referenced by GateAttachmentConditions()
string ATTSLOT_BARBEDWIRE_DOWN = "Wall_Barbedwire_1"Referenced by GateAttachmentConditions()
string ATTSLOT_BARBEDWIRE_UP = "Wall_Barbedwire_2"Referenced by GateAttachmentConditions()
protected bool m_IsOpened = falseReferenced by IsOpened(), OnStoreLoad(), OnStoreSave()
Show 2 more
, OnVariablesSynchronized(), and SetOpenedState()protected bool m_IsOpenedClient = falseReferenced by OnVariablesSynchronized()
protected int m_GateState = 0Referenced by GetGateState(), HasFullyConstructedGate(), HasHinges()
Show 4 more
, NameOverride(), OnStoreLoad(), OnStoreSave(), and SetGateState()protected EffectSound m_SoundGate_Startprotected EffectSound m_SoundGate_EndReferenced by SoundGateCloseEnd()
Methods 52
override string GetConstructionKitType()override int GetMeleeTargetType()bool HasHinges()bool HasFullyConstructedGate()void SetGateState(int state)Referenced by AfterStoreLoad(), OnPartBuiltServer(), OnPartDestroyedServer()
Show 1 more
, OnPartDismantledServer()int CheckGateState()Referenced by AfterStoreLoad(), OnPartBuiltServer(), OnPartDestroyedServer()
Show 1 more
, OnPartDismantledServer()override bool IsOpened()References m_IsOpened
Referenced by AfterStoreLoad(), CanCloseFence(), CanOpenFence()
Show 4 more
, CanReceiveAttachment(), CanUseConstructionBuild(), CreateAreaDamage(), and OnPartDestroyedServer()bool IsLocked()Referenced by ActionDestroyCombinationLock.ActionCondition(), CanOpenFence(), and OnPartDismantledServer()
CombinationLock GetCombinationLock()Referenced by ActionDestroyCombinationLock.OnFinishProgressServer(), GateAttachmentsSanityCheck(), IsLocked()
Show 1 more
, OnPartDestroyedServer()CamoNet GetCamoNet()BarbedWire GetBarbedWire1()Referenced by GateAttachmentsSanityCheck(), OnPartDestroyedServer(), and UpdateBarbedWireAreaDamagePos()
BarbedWire GetBarbedWire2()Referenced by GateAttachmentsSanityCheck(), OnPartDestroyedServer(), and UpdateBarbedWireAreaDamagePos()
override vector GetKitSpawnPosition()References Object.GetMemoryPointPos(), Object.GetPosition(), Object.MemoryPointExists()
Show 1 more
, Object.ModelToWorld()Referenced by CombinationLock.UnlockServer()
References BaseBuildingBase.HasBase()
override void OnStoreSave(ParamsWriteContext ctx)References bsbDebugPrint(), LogManager.IsBaseBuildingLogEnable(), BaseBuildingBase.OnStoreSave()
Show 3 more
, Serializer.Write(), m_GateState, and m_IsOpenedoverride bool OnStoreLoad(ParamsReadContext ctx, int version)References bsbDebugPrint(), LogManager.IsBaseBuildingLogEnable(), BaseBuildingBase.OnStoreLoad()
Show 5 more
, Serializer.Read(), GATE_STATE_NONE, m_GateState, m_IsOpened, and m_ToDiscardoverride void AfterStoreLoad()override void OnVariablesSynchronized()References CloseFence(), BaseBuildingBase.OnVariablesSynchronized(), OpenFence()
Show 2 more
, m_IsOpened, and m_IsOpenedClientoverride void OnPartDestroyedServer(Man player, string part_name, int action_id, bool destroyed_by_connected_part = false)References BaseBuildingBase.CanReceiveAttachment(), Class.Cast(), GateAttachmentConditions()
Show 11 more
, PlayerBase.GetConstructionActionData(), CGame.GetPlayer(), BaseBuildingBase.HasBase(), HasFullyConstructedGate(), CGame.IsDedicatedServer(), Class.IsInherited(), IsOpened(), ConstructionActionData.SetActionInitiator(), Class.Type(), ATTACHMENT_COMBINATION_LOCK, and ATTACHMENT_WOODEN_LOGoverride bool CanBeRepairedToPristine()bool CanOpenFence()Referenced by ActionOpenFence.ActionCondition()
bool CanCloseFence()Referenced by ActionCloseFence.ActionCondition()
void OpenFence()void CloseFence()Referenced by ActionCloseFence.OnStartServer(), OnPartDestroyedServer(), and OnVariablesSynchronized()
protected void CheckFenceOpened()References Entity.GetAnimationPhase(), DayZGame.GetCallQueue(), ScriptCallQueue.Remove()
Show 2 more
, UpdateBarbedWireAreaDamagePos(), and GATE_ROTATION_ANGLE_DEGprotected void CheckFenceClosed()References Entity.GetAnimationPhase(), DayZGame.GetCallQueue(), CGame.IsDedicatedServer()
Show 3 more
, ScriptCallQueue.Remove(), SoundGateCloseEnd(), and UpdateBarbedWireAreaDamagePos()override void PostAreaDamageActions()override bool IsPlayerInside(PlayerBase player, string selection)override bool IsFacingPlayer(PlayerBase player, string selection)References Math.Acos(), CGame.GetCurrentCameraDirection(), Object.GetDirection()
Show 4 more
, vector.Length(), vector.Normalize(), vector.Normalize(), and MAX_ACTION_DETECTION_ANGLE_RADoverride bool HasProperDistance(string selection, PlayerBase player)References vector.Distance(), Object.GetMemoryPointPos(), Object.GetPosition()
Show 3 more
, Object.MemoryPointExists(), Object.ModelToWorld(), and MAX_ACTION_DETECTION_DISTANCEoverride bool CanUseConstructionBuild()References IsOpened()
protected void SoundGateOpenStart()References CGame.IsDedicatedServer(), Object.PlaySoundSet(), m_SoundGate_Start
Show 1 more
, SOUND_GATE_OPEN_STARTReferenced by OpenFence()
protected void SoundGateCloseStart()References CGame.IsDedicatedServer(), Object.PlaySoundSet(), m_SoundGate_Start
Show 1 more
, SOUND_GATE_CLOSE_STARTReferenced by CloseFence()
protected void SoundGateCloseEnd()References CGame.IsDedicatedServer(), Object.PlaySoundSet(), m_SoundGate_End
Show 1 more
, SOUND_GATE_CLOSE_ENDReferenced by CheckFenceClosed()
void GateAttachmentsSanityCheck()void HandleDropAttachment(ItemBase item)References Class.CastTo(), GameInventory.DropEntity(), EntityAI.GetInventory()
Show 2 more
, BarbedWire.SetMountedState(), and CombinationLock.UnlockServer()References InventorySlots.GetSlotIdFromString()
override void SetActions()Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare
override void OnDebugSpawn()References Class.Cast(), GameInventory.CreateInInventory(), EntityAI.GetInventory()