DIFF

class FenceSource

Fence BaseBuildingBase ItemBase InventoryItem EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 1

Constants 11

const int GATE_STATE_NONE = 0
Referenced by CheckGateState(), HasHinges(), NameOverride()
Show 1 more, OnStoreLoad()
const int GATE_STATE_PARTIAL = 1
const int GATE_STATE_FULL = 2
const 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 = 100
Referenced by CheckFenceOpened(), and OpenFence()
const float GATE_ROTATION_TIME_APPROX = 2000

ms

Referenced by CloseFence(), and OpenFence()
const float MAX_ACTION_DETECTION_ANGLE_RAD = 1.3

1.3 RAD = ~75 DEG

const float MAX_ACTION_DETECTION_DISTANCE = 2.0

meters

Referenced by HasProperDistance()

Members 11

typename ATTACHMENT_WOODEN_LOG = WoodenLog
typename ATTACHMENT_COMBINATION_LOCK = CombinationLock
string ATTSLOT_CAMONET = "Wall_Camonet"
string ATTSLOT_BARBEDWIRE_DOWN = "Wall_Barbedwire_1"
string ATTSLOT_BARBEDWIRE_UP = "Wall_Barbedwire_2"
protected bool m_ToDiscard = false

for legacy OnStoreLoad handling

Referenced by OnStoreLoad()
protected bool m_IsOpened = false
protected bool m_IsOpenedClient = false
protected int m_GateState = 0
protected EffectSound m_SoundGate_Start
protected EffectSound m_SoundGate_End
Referenced by SoundGateCloseEnd()

Methods 52

override string GetConstructionKitType()
override int GetMeleeTargetType()
bool HasHinges()
Referenced by CanCloseFence(), and CanOpenFence()
bool HasFullyConstructedGate()
void SetGateState(int state)
int GetGateState()
References m_GateState
void SetOpenedState(bool state)
References m_IsOpened
Referenced by CloseFence(), and OpenFence()
override bool NameOverride(out string output)
override vector GetKitSpawnPosition()
override bool CanDisplayAttachmentCategory(string category_name)
override void OnVariablesSynchronized()
override void OnPartBuiltServer(notnull Man player, string part_name, int action_id)
override bool CanPutIntoHands(EntityAI parent)
override bool CanBeRepairedToPristine()
bool CanOpenFence()
bool CanCloseFence()
References HasHinges(), and IsOpened()
override void CreateAreaDamage(string slot_name, float rotation_angle = 0)
override void PostAreaDamageActions()
override bool CanUseConstructionBuild()
References IsOpened()
protected void SoundGateOpenStart()
Referenced by OpenFence()
protected void SoundGateCloseStart()
Referenced by CloseFence()
protected void SoundGateCloseEnd()
Referenced by CheckFenceClosed()
override bool TranslateSlotFromSelection(string selection_name, out int slot_id)
override void SetActions()
override array<string> OnDebugSpawnBuildExcludes()

Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare