class Fence
Fence › BaseBuildingBase › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
Constants 18
const int GATE_STATE_NONE = 0const int GATE_STATE_PARTIAL = 1const int GATE_STATE_FULL = 2const 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
const string ATTACHMENT_SLOT_CAMONET = "Wall_Camonet"const string ATTACHMENT_SLOT_BARBEDWIRE_DOWN = "Wall_Barbedwire_1"const string ATTACHMENT_SLOT_BARBEDWIRE_UP = "Wall_Barbedwire_2"const string ATTACHMENT_SLOT_COMBINATION_LOCK = "Att_CombinationLock"const string ATTACHMENT_SLOT_CODE_LOCK = "Att_CodeLock"const string MEM_POINT_SPAWN = "kit_spawn_position"Referenced by GetKitSpawnPosition()
const string ATT_CATEGORY_ATTACHMENTS = "Attachments"Referenced by CanDisplayAttachmentCategory()
const string ATT_CATEGORY_MATERIAL = "Material"Referenced by CanDisplayAttachmentCategory()
Members 9
typename ATTACHMENT_WOODEN_LOG = WoodenLogReferenced by CanReceiveAttachment()
typename ATTACHMENT_COMBINATION_LOCK = CombinationLockReferenced by CanReceiveAttachment()
typename ATTACHMENT_CODE_LOCK = DigitalCodeLockReferenced by CanReceiveAttachment()
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 56
override bool IsActionTargetVisible()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
bool IsLocked()References GetCodeLock(), GetCombinationLock(), DigitalCodeLock.IsLocked()
Show 1 more
, CombinationLock.IsLocked()Referenced by ActionDestroyCombinationLock.ActionCondition(), CanOpenFence(), and OnPartDismantledServer()
CombinationLock GetCombinationLock()DigitalCodeLock GetCodeLock()Referenced by CanDisplayAttachmentSlot(), CanReceiveAttachment(), IsLocked()
Show 2 more
, OnPartDestroyedServer(), and OnPartDismantledServer()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 2 more
, Object.ModelToWorld(), and MEM_POINT_SPAWNReferences EntityAI.CanDisplayAttachmentCategory(), BaseBuildingBase.HasBase(), ATT_CATEGORY_ATTACHMENTS
Show 1 more
, ATT_CATEGORY_MATERIALoverride 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_IsOpenedClientReferences CheckGateState(), BaseBuildingBase.OnPartBuiltServer(), SetGateState()
Show 1 more
, BaseBuildingBase.UpdateVisuals()override void OnPartDestroyedServer(Man player, string part_name, int action_id, bool destroyed_by_connected_part = false)References CheckGateState(), CloseFence(), GetBarbedWire1()
Show 12 more
, GetBarbedWire2(), GetCamoNet(), GetCodeLock(), GetCombinationLock(), BaseBuildingBase.GetConstruction(), ConstructionBase.GetConstructionPart(), HandleDropAttachment(), ConstructionPart.IsGate(), IsOpened(), BaseBuildingBase.OnPartDestroyedServer(), SetGateState(), and BaseBuildingBase.UpdateVisuals()References ItemBase.CanReceiveAttachment(), Class.Cast(), GateAttachmentConditions()
Show 14 more
, GetCodeLock(), GetCombinationLock(), PlayerBase.GetConstructionActionData(), CGame.GetPlayer(), BaseBuildingBase.HasBase(), HasFullyConstructedGate(), CGame.IsDedicatedServer(), Class.IsInherited(), IsOpened(), ConstructionActionData.SetActionInitiator(), Class.Type(), ATTACHMENT_CODE_LOCK, 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()References ScriptCallQueue.CallLater(), DayZGame.GetCallQueue(), CGame.IsHeadlessOrDedicatedServer()
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()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.IsHeadlessOrDedicatedServer(), Object.PlaySoundSet(), m_SoundGate_Start
Show 1 more
, SOUND_GATE_OPEN_STARTReferenced by OpenFence()
protected void SoundGateCloseStart()References CGame.IsHeadlessOrDedicatedServer(), Object.PlaySoundSet(), m_SoundGate_Start
Show 1 more
, SOUND_GATE_CLOSE_STARTReferenced by CloseFence()
protected void SoundGateCloseEnd()References CGame.IsHeadlessOrDedicatedServer(), Object.PlaySoundSet(), m_SoundGate_End
Show 1 more
, SOUND_GATE_CLOSE_ENDReferenced by CheckFenceClosed()
void GateAttachmentsSanityCheck()void HandleDropAttachment(ItemBase item)References InventorySlots.GetSlotIdFromString()
override void SetActions()override bool DestroyOnFall()Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare
override void OnDebugSpawn()References Class.Cast(), GameInventory.CreateInInventory(), EntityAI.GetInventory()