Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
BaseBuildingBase Class Reference

Protected Member Functions

void ~TerritoryFlag ()
void AddRefresherTime01 (float fraction)
override void AfterStoreLoad ()
override void AfterStoreLoad ()
void AnimateFlag (float delta)
void AnimateFlagEx (float delta, PlayerBase player=null)
override bool CanBeRepairedToPristine ()
override bool CanBeRepairedToPristine ()
bool CanCloseFence ()
override bool CanDisplayAttachmentCategory (string category_name)
override bool CanDisplayAttachmentCategory (string category_name)
override bool CanDisplayAttachmentSlot (int slot_id)
bool CanOpenFence ()
override bool CanPutIntoHands (EntityAI parent)
override bool CanPutIntoHands (EntityAI parent)
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
override bool CanUseConstructionBuild ()
void CheckFenceClosed ()
void CheckFenceOpened ()
int CheckGateState ()
void CheckLoadedVariables (int max_duration)
void CloseFence ()
override void CreateAreaDamage (string slot_name, float rotation_angle=0)
override void EEItemDetached (EntityAI item, string slot_name)
void Fence ()
bool GateAttachmentConditions (int slotId)
void GateAttachmentsSanityCheck ()
BarbedWire GetBarbedWire1 ()
BarbedWire GetBarbedWire2 ()
CamoNet GetCamoNet ()
CombinationLock GetCombinationLock ()
override string GetConstructionKitType ()
override string GetConstructionKitType ()
int GetGateState ()
override vector GetKitSpawnPosition ()
override vector GetKitSpawnPosition ()
override int GetMeleeTargetType ()
override int GetMeleeTargetType ()
float GetRefresherTime01 ()
void HandleDropAttachment (ItemBase item)
void HandleRefreshers ()
 Saves positions of active lifetime refreshers to MissionGameplay / MissionServer.
bool HasFullyConstructedGate ()
bool HasHinges ()
override bool HasProperDistance (string selection, PlayerBase player)
override bool HasProperDistance (string selection, PlayerBase player)
void InitRefresherData ()
void InsertRefresherPosition ()
override bool IsFacingCamera (string selection)
override bool IsFacingCamera (string selection)
override bool IsFacingPlayer (PlayerBase player, string selection)
override bool IsFacingPlayer (PlayerBase player, string selection)
bool IsLocked ()
override bool IsOpened ()
override bool IsPlayerInside (PlayerBase player, string selection)
override bool IsPlayerInside (PlayerBase player, string selection)
void LogAnimateFlag (float newPhase, notnull PlayerBase player)
override bool NameOverride (out string output)
override void OnCEUpdate ()
override void OnDebugSpawn ()
override void OnDebugSpawn ()
override array< stringOnDebugSpawnBuildExcludes ()
 Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.
override void OnPartBuiltServer (notnull Man player, string part_name, int action_id)
override void OnPartBuiltServer (notnull Man player, string part_name, int action_id)
override void OnPartDestroyedServer (Man player, string part_name, int action_id, bool destroyed_by_connected_part=false)
override void OnPartDestroyedServer (Man player, string part_name, int action_id, bool destroyed_by_connected_part=false)
override void OnPartDismantledServer (notnull Man player, string part_name, int action_id)
override void OnPartDismantledServer (notnull Man player, string part_name, int action_id)
override bool OnStoreLoad (ParamsReadContext ctx, int version)
override bool OnStoreLoad (ParamsReadContext ctx, int version)
override void OnStoreSave (ParamsWriteContext ctx)
override void OnStoreSave (ParamsWriteContext ctx)
override void OnVariablesSynchronized ()
override void OnVariablesSynchronized ()
void OpenFence ()
override void PostAreaDamageActions ()
void RemoveRefresherPosition (int idx=-2)
override void SetActions ()
override void SetActions ()
void SetGateState (int state)
void SetOpenedState (bool state)
void SetRefresherActive (bool state)
void SetRefreshTimer01 (float fraction)
void SoundGateCloseEnd ()
void SoundGateCloseStart ()
void SoundGateOpenStart ()
void TerritoryFlag ()
override bool TranslateSlotFromSelection (string selection_name, out int slot_id)
void UpdateBarbedWireAreaDamagePos (float rotation_angle=0, bool to_delete=false)

Protected Attributes

int m_FlagRefresherFrequency = GameConstants.REFRESHER_FREQUENCY_DEFAULT
int m_FlagRefresherMaxDuration = GameConstants.REFRESHER_MAX_DURATION_DEFAULT
int m_GateState = 0
bool m_IsOpened = false
bool m_IsOpenedClient = false
EffectSound m_SoundGate_End
EffectSound m_SoundGate_Start
bool m_ToDiscard = false

Private Member Functions

override void AfterStoreLoad ()
override bool CanBeRepairedToPristine ()
override bool CanBeRepairedToPristine ()
override bool CanDisplayAttachmentCategory (string category_name)
override bool CanDisplayAttachmentSlot (int slot_id)
override bool CanPutIntoHands (EntityAI parent)
override bool CanPutIntoHands (EntityAI parent)
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
override bool CanUseHandConstruction ()
override bool CheckLevelVerticalDistance (float max_dist, string selection, PlayerBase player)
override bool CheckMemoryPointVerticalDistance (float max_dist, string selection, PlayerBase player)
override bool CheckSlotVerticalDistance (int slot_id, PlayerBase player)
override string GetConstructionKitType ()
override string GetConstructionKitType ()
override vector GetKitSpawnPosition ()
override int GetMeleeTargetType ()
override int GetMeleeTargetType ()
override bool HasProperDistance (string selection, PlayerBase player)
override bool HasProperDistance (string selection, PlayerBase player)
override bool IsFacingCamera (string selection)
override bool IsFacingCamera (string selection)
override bool IsFacingPlayer (PlayerBase player, string selection)
override bool IsPlayerInside (PlayerBase player, string selection)
override bool IsPlayerInside (PlayerBase player, string selection)
override bool MustBeBuiltFromOutside ()
override void OnDebugSpawn ()
override array< stringOnDebugSpawnBuildExcludes ()
 Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.
override void OnPartBuiltServer (notnull Man player, string part_name, int action_id)
override void OnPartBuiltServer (notnull Man player, string part_name, int action_id)
override void OnPartDestroyedServer (Man player, string part_name, int action_id, bool destroyed_by_connected_part=false)
override void OnPartDismantledServer (notnull Man player, string part_name, int action_id)
override bool PerformRoofCheckForBase (string partName, PlayerBase player, out bool result)
override void SetActions ()
override void SetActions ()
void ShelterSite ()
override void UpdateVisuals ()
void Watchtower ()

Private Attributes

 ATTACHMENT_BARBED_WIRE = BarbedWire
 ATTACHMENT_CAMONET = CamoNet
 ATTACHMENT_COMBINATION_LOCK = CombinationLock
const string ATTACHMENT_SLOT_COMBINATION_LOCK = "Att_CombinationLock"
 ATTACHMENT_WOODEN_LOG = WoodenLog
string ATTSLOT_BARBEDWIRE_DOWN = "Wall_Barbedwire_1"
string ATTSLOT_BARBEDWIRE_UP = "Wall_Barbedwire_2"
string ATTSLOT_CAMONET = "Wall_Camonet"
const float GATE_ROTATION_ANGLE_DEG = 100
const float GATE_ROTATION_TIME_APPROX = 2000
const int GATE_STATE_FULL = 2
const int GATE_STATE_NONE = 0
const int GATE_STATE_PARTIAL = 1
bool m_RefresherActive
bool m_RefresherActiveLocal
bool m_RefresherInitialized
int m_RefresherTimeRemaining
int m_RefreshTimeCounter
const float MAX_ACTION_DETECTION_ANGLE_RAD = 1.3
const float MAX_ACTION_DETECTION_DISTANCE = 2.0
const float MAX_FLOOR_VERTICAL_DISTANCE = 0.5
const float MIN_ACTION_DETECTION_ANGLE_RAD = 0.35
const string SOUND_GATE_CLOSE_END = "DoorWoodTowerClose_end_SoundSet"
const string SOUND_GATE_CLOSE_START = "DoorWoodTowerClose_start_SoundSet"
const string SOUND_GATE_OPEN_START = "DoorWoodTowerOpen_SoundSet"

Static Private Attributes

static const string BASE_ROOF_NAME = "_roof"
static const string BASE_VIEW_NAME = "level_"
static const string BASE_WALL_NAME = "_wall_"
static const int MAX_WATCHTOWER_FLOORS = 3
static const int MAX_WATCHTOWER_WALLS = 3

Detailed Description

Definition at line 1 of file fence.c.

Constructor & Destructor Documentation

◆ ~TerritoryFlag()

void ~TerritoryFlag ( )
inlineprotected

Definition at line 29 of file totem.c.

References RemoveRefresherPosition().

Member Function Documentation

◆ AddRefresherTime01()

void AddRefresherTime01 ( float fraction)
inlineprotected

◆ AfterStoreLoad() [1/3]

◆ AfterStoreLoad() [2/3]

override void AfterStoreLoad ( )
inlineprotected

Definition at line 145 of file totem.c.

References GetCEApi(), InitRefresherData(), m_RefresherInitialized, and UpdateVisuals().

◆ AfterStoreLoad() [3/3]

override void AfterStoreLoad ( )
inlineprivate

Definition at line 399 of file watchtower.c.

References UpdateVisuals().

◆ AnimateFlag()

void AnimateFlag ( float delta)
inlineprotected

Definition at line 526 of file totem.c.

References AnimateFlagEx().

Referenced by EEItemDetached(), OnCEUpdate(), OnDebugSpawn(), and OnStoreLoad().

◆ AnimateFlagEx()

void AnimateFlagEx ( float delta,
PlayerBase player = null )
inlineprotected

Definition at line 506 of file totem.c.

References Math::Clamp(), InventorySlots::GetSlotIdFromString(), LogAnimateFlag(), and Math::Round().

Referenced by AnimateFlag().

◆ CanBeRepairedToPristine() [1/4]

override bool CanBeRepairedToPristine ( )
inlineprotected

Definition at line 421 of file fence.c.

◆ CanBeRepairedToPristine() [2/4]

override bool CanBeRepairedToPristine ( )
inlineprivate

Definition at line 78 of file sheltersite.c.

◆ CanBeRepairedToPristine() [3/4]

override bool CanBeRepairedToPristine ( )
inlineprotected

Definition at line 368 of file totem.c.

◆ CanBeRepairedToPristine() [4/4]

override bool CanBeRepairedToPristine ( )
inlineprivate

Definition at line 128 of file watchtower.c.

◆ CanCloseFence()

bool CanCloseFence ( )
inlineprotected

Definition at line 437 of file fence.c.

References HasHinges(), and IsOpened().

◆ CanDisplayAttachmentCategory() [1/3]

override bool CanDisplayAttachmentCategory ( string category_name)
inlineprotected

Definition at line 197 of file fence.c.

References HasBase().

◆ CanDisplayAttachmentCategory() [2/3]

override bool CanDisplayAttachmentCategory ( string category_name)
inlineprotected

Definition at line 85 of file totem.c.

References GetConstruction(), HasBase(), and IsPartConstructed().

◆ CanDisplayAttachmentCategory() [3/3]

override bool CanDisplayAttachmentCategory ( string category_name)
inlineprivate

◆ CanDisplayAttachmentSlot() [1/2]

override bool CanDisplayAttachmentSlot ( int slot_id)
inlineprotected

◆ CanDisplayAttachmentSlot() [2/2]

override bool CanDisplayAttachmentSlot ( int slot_id)
inlineprivate

◆ CanOpenFence()

bool CanOpenFence ( )
inlineprotected

Definition at line 427 of file fence.c.

References HasHinges(), IsLocked(), and IsOpened().

◆ CanPutIntoHands() [1/4]

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected

Definition at line 406 of file fence.c.

References HasBase().

◆ CanPutIntoHands() [2/4]

override bool CanPutIntoHands ( EntityAI parent)
inlineprivate

Definition at line 73 of file sheltersite.c.

◆ CanPutIntoHands() [3/4]

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected

Definition at line 363 of file totem.c.

◆ CanPutIntoHands() [4/4]

override bool CanPutIntoHands ( EntityAI parent)
inlineprivate

Definition at line 123 of file watchtower.c.

◆ CanReceiveAttachment() [1/3]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected

◆ CanReceiveAttachment() [2/3]

◆ CanReceiveAttachment() [3/3]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprivate

◆ CanUseConstructionBuild()

override bool CanUseConstructionBuild ( )
inlineprotected

◆ CanUseHandConstruction()

override bool CanUseHandConstruction ( )
inlineprivate

Definition at line 83 of file sheltersite.c.

◆ CheckFenceClosed()

void CheckFenceClosed ( )
inlineprotected

◆ CheckFenceOpened()

void CheckFenceOpened ( )
inlineprotected

◆ CheckGateState()

◆ CheckLevelVerticalDistance()

override bool CheckLevelVerticalDistance ( float max_dist,
string selection,
PlayerBase player )
inlineprivate

Definition at line 383 of file watchtower.c.

References CheckMemoryPointVerticalDistance(), and string::Contains().

Referenced by IsPlayerInside().

◆ CheckLoadedVariables()

void CheckLoadedVariables ( int max_duration)
inlineprotected

Definition at line 573 of file totem.c.

References m_FlagRefresherMaxDuration, and m_RefresherTimeRemaining.

Referenced by OnStoreLoad().

◆ CheckMemoryPointVerticalDistance()

override bool CheckMemoryPointVerticalDistance ( float max_dist,
string selection,
PlayerBase player )
inlineprivate

◆ CheckSlotVerticalDistance()

◆ CloseFence()

◆ CreateAreaDamage()

override void CreateAreaDamage ( string slot_name,
float rotation_angle = 0 )
inlineprotected

Definition at line 558 of file fence.c.

References IsOpened().

◆ EEItemDetached()

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected

Definition at line 279 of file totem.c.

References AnimateFlag(), g_Game, and SetRefreshTimer01().

◆ Fence()

void Fence ( )
inlineprotected

Definition at line 36 of file fence.c.

◆ GateAttachmentConditions()

◆ GateAttachmentsSanityCheck()

void GateAttachmentsSanityCheck ( )
inlineprotected

◆ GetBarbedWire1()

BarbedWire GetBarbedWire1 ( )
inlineprotected

◆ GetBarbedWire2()

BarbedWire GetBarbedWire2 ( )
inlineprotected

◆ GetCamoNet()

CamoNet GetCamoNet ( )
inlineprotected

Definition at line 143 of file fence.c.

Referenced by GateAttachmentsSanityCheck(), and OnPartDestroyedServer().

◆ GetCombinationLock()

CombinationLock GetCombinationLock ( )
inlineprotected

◆ GetConstructionKitType() [1/4]

override string GetConstructionKitType ( )
inlineprotected

Definition at line 45 of file fence.c.

◆ GetConstructionKitType() [2/4]

override string GetConstructionKitType ( )
inlineprivate

Definition at line 10 of file sheltersite.c.

◆ GetConstructionKitType() [3/4]

override string GetConstructionKitType ( )
inlineprotected

Definition at line 50 of file totem.c.

◆ GetConstructionKitType() [4/4]

override string GetConstructionKitType ( )
inlineprivate

Definition at line 21 of file watchtower.c.

◆ GetGateState()

int GetGateState ( )
inlineprotected

Definition at line 72 of file fence.c.

References m_GateState.

Referenced by GateAttachmentConditions().

◆ GetKitSpawnPosition() [1/3]

override vector GetKitSpawnPosition ( )
inlineprotected

Definition at line 162 of file fence.c.

References GetPosition().

Referenced by ItemBase::CreateConstructionKit().

◆ GetKitSpawnPosition() [2/3]

override vector GetKitSpawnPosition ( )
inlineprivate

Definition at line 21 of file sheltersite.c.

References GetPosition().

◆ GetKitSpawnPosition() [3/3]

override vector GetKitSpawnPosition ( )
inlineprotected

Definition at line 72 of file totem.c.

References GetPosition().

◆ GetMeleeTargetType() [1/4]

override int GetMeleeTargetType ( )
inlineprotected

Definition at line 50 of file fence.c.

◆ GetMeleeTargetType() [2/4]

override int GetMeleeTargetType ( )
inlineprivate

Definition at line 15 of file sheltersite.c.

◆ GetMeleeTargetType() [3/4]

override int GetMeleeTargetType ( )
inlineprotected

Definition at line 55 of file totem.c.

◆ GetMeleeTargetType() [4/4]

override int GetMeleeTargetType ( )
inlineprivate

Definition at line 26 of file watchtower.c.

◆ GetRefresherTime01()

float GetRefresherTime01 ( )
inlineprotected

Definition at line 568 of file totem.c.

References m_FlagRefresherMaxDuration, and m_RefresherTimeRemaining.

Referenced by OnCEUpdate(), and OnStoreLoad().

◆ HandleDropAttachment()

void HandleDropAttachment ( ItemBase item)
inlineprotected

Definition at line 770 of file fence.c.

References Class::CastTo().

Referenced by GateAttachmentsSanityCheck(), and OnPartDestroyedServer().

◆ HandleRefreshers()

void HandleRefreshers ( )
inlineprotected

Saves positions of active lifetime refreshers to MissionGameplay / MissionServer.

Definition at line 179 of file totem.c.

References g_Game, GetPosition(), InsertRefresherPosition(), m_RefresherActive, mission, and RemoveRefresherPosition().

Referenced by OnVariablesSynchronized(), and SetRefresherActive().

◆ HasFullyConstructedGate()

bool HasFullyConstructedGate ( )
inlineprotected

Definition at line 61 of file fence.c.

References GATE_STATE_FULL, and m_GateState.

Referenced by CanDisplayAttachmentSlot(), and CanReceiveAttachment().

◆ HasHinges()

bool HasHinges ( )
inlineprotected

Definition at line 56 of file fence.c.

References GATE_STATE_NONE, and m_GateState.

Referenced by CanCloseFence(), and CanOpenFence().

◆ HasProperDistance() [1/4]

override bool HasProperDistance ( string selection,
PlayerBase player )
inlineprotected

Definition at line 703 of file fence.c.

References vector::Distance(), and MAX_ACTION_DETECTION_DISTANCE.

Referenced by ActionRepairPart::RepairCondition().

◆ HasProperDistance() [2/4]

override bool HasProperDistance ( string selection,
PlayerBase player )
inlineprivate

Definition at line 150 of file sheltersite.c.

References vector::Distance(), and MAX_ACTION_DETECTION_DISTANCE.

◆ HasProperDistance() [3/4]

override bool HasProperDistance ( string selection,
PlayerBase player )
inlineprotected

Definition at line 468 of file totem.c.

References vector::Distance(), and MAX_ACTION_DETECTION_DISTANCE.

◆ HasProperDistance() [4/4]

override bool HasProperDistance ( string selection,
PlayerBase player )
inlineprivate

Definition at line 546 of file watchtower.c.

References vector::Distance(), and MAX_ACTION_DETECTION_DISTANCE.

◆ InitRefresherData()

void InitRefresherData ( )
inlineprotected

◆ InsertRefresherPosition()

void InsertRefresherPosition ( )
inlineprotected

Definition at line 211 of file totem.c.

References g_Game, GetPosition(), and mission.

Referenced by HandleRefreshers().

◆ IsFacingCamera() [1/4]

◆ IsFacingCamera() [2/4]

override bool IsFacingCamera ( string selection)
inlineprivate

◆ IsFacingCamera() [3/4]

override bool IsFacingCamera ( string selection)
inlineprotected

◆ IsFacingCamera() [4/4]

override bool IsFacingCamera ( string selection)
inlineprivate

Definition at line 478 of file watchtower.c.

References vector::Dot(), g_Game, GetPosition(), vector::Length(), and vector::Normalize().

◆ IsFacingPlayer() [1/3]

override bool IsFacingPlayer ( PlayerBase player,
string selection )
inlineprotected

◆ IsFacingPlayer() [2/3]

override bool IsFacingPlayer ( PlayerBase player,
string selection )
inlineprotected

◆ IsFacingPlayer() [3/3]

override bool IsFacingPlayer ( PlayerBase player,
string selection )
inlineprivate

◆ IsLocked()

bool IsLocked ( )
inlineprotected

Definition at line 115 of file fence.c.

References GetCombinationLock().

Referenced by CanOpenFence(), and OnPartDismantledServer().

◆ IsOpened()

◆ IsPlayerInside() [1/4]

◆ IsPlayerInside() [2/4]

override bool IsPlayerInside ( PlayerBase player,
string selection )
inlineprivate

◆ IsPlayerInside() [3/4]

override bool IsPlayerInside ( PlayerBase player,
string selection )
inlineprotected

◆ IsPlayerInside() [4/4]

override bool IsPlayerInside ( PlayerBase player,
string selection )
inlineprivate

◆ LogAnimateFlag()

void LogAnimateFlag ( float newPhase,
notnull PlayerBase player )
inlineprotected

Definition at line 531 of file totem.c.

References GetPlugin().

Referenced by AnimateFlagEx().

◆ MustBeBuiltFromOutside()

override bool MustBeBuiltFromOutside ( )
inlineprivate

Definition at line 88 of file sheltersite.c.

Referenced by BuildCondition().

◆ NameOverride()

override bool NameOverride ( out string output)
inlineprotected

Definition at line 126 of file fence.c.

References GATE_STATE_NONE, and m_GateState.

◆ OnCEUpdate()

◆ OnDebugSpawn() [1/3]

override void OnDebugSpawn ( )
inlineprotected

Definition at line 892 of file fence.c.

◆ OnDebugSpawn() [2/3]

override void OnDebugSpawn ( )
inlineprotected

Definition at line 597 of file totem.c.

References AddRefresherTime01(), and AnimateFlag().

◆ OnDebugSpawn() [3/3]

override void OnDebugSpawn ( )
inlineprivate

Definition at line 599 of file watchtower.c.

References MAX_WATCHTOWER_FLOORS, and MAX_WATCHTOWER_WALLS.

◆ OnDebugSpawnBuildExcludes() [1/2]

override array< string > OnDebugSpawnBuildExcludes ( )
inlineprotected

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

Definition at line 854 of file fence.c.

References DiagMenu::GetBool().

Referenced by ItemBase::FullyBuild().

◆ OnDebugSpawnBuildExcludes() [2/2]

override array< string > OnDebugSpawnBuildExcludes ( )
inlineprivate

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

Definition at line 576 of file watchtower.c.

References DiagMenu::GetBool().

◆ OnPartBuiltServer() [1/4]

override void OnPartBuiltServer ( notnull Man player,
string part_name,
int action_id )
inlineprotected

Definition at line 297 of file fence.c.

References CheckGateState(), GetConstruction(), SetGateState(), and UpdateVisuals().

Referenced by ItemBase::FullyBuild().

◆ OnPartBuiltServer() [2/4]

override void OnPartBuiltServer ( notnull Man player,
string part_name,
int action_id )
inlineprivate

Definition at line 36 of file sheltersite.c.

References GetConstruction(), and GetPlugin().

◆ OnPartBuiltServer() [3/4]

override void OnPartBuiltServer ( notnull Man player,
string part_name,
int action_id )
inlineprotected

Definition at line 250 of file totem.c.

References UpdateVisuals().

◆ OnPartBuiltServer() [4/4]

override void OnPartBuiltServer ( notnull Man player,
string part_name,
int action_id )
inlineprivate

Definition at line 406 of file watchtower.c.

References UpdateVisuals().

◆ OnPartDestroyedServer() [1/3]

override void OnPartDestroyedServer ( Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part = false )
inlineprotected

◆ OnPartDestroyedServer() [2/3]

override void OnPartDestroyedServer ( Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part = false )
inlineprotected

Definition at line 270 of file totem.c.

References UpdateVisuals().

◆ OnPartDestroyedServer() [3/3]

override void OnPartDestroyedServer ( Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part = false )
inlineprivate

Definition at line 420 of file watchtower.c.

References UpdateVisuals().

◆ OnPartDismantledServer() [1/3]

override void OnPartDismantledServer ( notnull Man player,
string part_name,
int action_id )
inlineprotected

◆ OnPartDismantledServer() [2/3]

override void OnPartDismantledServer ( notnull Man player,
string part_name,
int action_id )
inlineprotected

Definition at line 260 of file totem.c.

References GetConstruction(), and UpdateVisuals().

◆ OnPartDismantledServer() [3/3]

override void OnPartDismantledServer ( notnull Man player,
string part_name,
int action_id )
inlineprivate

Definition at line 413 of file watchtower.c.

References UpdateVisuals().

◆ OnStoreLoad() [1/2]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

◆ OnStoreLoad() [2/2]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

◆ OnStoreSave() [1/2]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

◆ OnStoreSave() [2/2]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

◆ OnVariablesSynchronized() [1/2]

override void OnVariablesSynchronized ( )
inlineprotected

Definition at line 276 of file fence.c.

References CloseFence(), m_IsOpened, m_IsOpenedClient, and OpenFence().

◆ OnVariablesSynchronized() [2/2]

override void OnVariablesSynchronized ( )
inlineprotected

Definition at line 237 of file totem.c.

References HandleRefreshers(), m_RefresherActive, and m_RefresherActiveLocal.

◆ OpenFence()

◆ PerformRoofCheckForBase()

override bool PerformRoofCheckForBase ( string partName,
PlayerBase player,
out bool result )
inlineprivate

◆ PostAreaDamageActions()

override void PostAreaDamageActions ( )
inlineprotected

Definition at line 603 of file fence.c.

◆ RemoveRefresherPosition()

void RemoveRefresherPosition ( int idx = -2)
inlineprotected

Definition at line 217 of file totem.c.

References g_Game, GetPosition(), and mission.

Referenced by ~TerritoryFlag(), and HandleRefreshers().

◆ SetActions() [1/4]

override void SetActions ( )
inlineprotected

Definition at line 825 of file fence.c.

References ActionFoldBaseBuildingObject(), ActionPlaceObject(), and AddAction().

◆ SetActions() [2/4]

override void SetActions ( )
inlineprivate

Definition at line 165 of file sheltersite.c.

References ActionFoldBaseBuildingObject(), ActionPlaceObject(), and AddAction().

◆ SetActions() [3/4]

override void SetActions ( )
inlineprotected

Definition at line 489 of file totem.c.

References ActionFoldBaseBuildingObject(), and AddAction().

◆ SetActions() [4/4]

override void SetActions ( )
inlineprivate

Definition at line 561 of file watchtower.c.

References ActionFoldBaseBuildingObject(), ActionPlaceObject(), and AddAction().

◆ SetGateState()

void SetGateState ( int state)
inlineprotected

Definition at line 66 of file fence.c.

References m_GateState.

Referenced by AfterStoreLoad(), OnPartBuiltServer(), OnPartDestroyedServer(), and OnPartDismantledServer().

◆ SetOpenedState()

void SetOpenedState ( bool state)
inlineprotected

Definition at line 105 of file fence.c.

References m_IsOpened.

Referenced by CloseFence(), and OpenFence().

◆ SetRefresherActive()

void SetRefresherActive ( bool state)
inlineprotected

◆ SetRefreshTimer01()

void SetRefreshTimer01 ( float fraction)
inlineprotected

Definition at line 547 of file totem.c.

References Math::Clamp(), m_FlagRefresherMaxDuration, m_RefresherTimeRemaining, and Math::Round().

Referenced by EEItemDetached().

◆ ShelterSite()

void ShelterSite ( )
inlineprivate

Definition at line 6 of file sheltersite.c.

◆ SoundGateCloseEnd()

void SoundGateCloseEnd ( )
inlineprotected

Definition at line 744 of file fence.c.

References g_Game, m_SoundGate_End, and SOUND_GATE_CLOSE_END.

Referenced by CheckFenceClosed().

◆ SoundGateCloseStart()

void SoundGateCloseStart ( )
inlineprotected

Definition at line 735 of file fence.c.

References g_Game, m_SoundGate_Start, and SOUND_GATE_CLOSE_START.

Referenced by CloseFence().

◆ SoundGateOpenStart()

void SoundGateOpenStart ( )
inlineprotected

Definition at line 726 of file fence.c.

References g_Game, m_SoundGate_Start, and SOUND_GATE_OPEN_START.

Referenced by OpenFence().

◆ TerritoryFlag()

◆ TranslateSlotFromSelection()

override bool TranslateSlotFromSelection ( string selection_name,
out int slot_id )
inlineprotected

Definition at line 815 of file fence.c.

References InventorySlots::GetSlotIdFromString().

◆ UpdateBarbedWireAreaDamagePos()

void UpdateBarbedWireAreaDamagePos ( float rotation_angle = 0,
bool to_delete = false )
inlineprotected

◆ UpdateVisuals()

◆ Watchtower()

void Watchtower ( )
inlineprivate

Definition at line 17 of file watchtower.c.

Field Documentation

◆ ATTACHMENT_BARBED_WIRE

ATTACHMENT_BARBED_WIRE = BarbedWire
private

Definition at line 3 of file watchtower.c.

◆ ATTACHMENT_CAMONET

ATTACHMENT_CAMONET = CamoNet
private

Definition at line 4 of file watchtower.c.

◆ ATTACHMENT_COMBINATION_LOCK

ATTACHMENT_COMBINATION_LOCK = CombinationLock
private

Definition at line 20 of file fence.c.

Referenced by CanReceiveAttachment().

◆ ATTACHMENT_SLOT_COMBINATION_LOCK

const string ATTACHMENT_SLOT_COMBINATION_LOCK = "Att_CombinationLock"
private

Definition at line 7 of file fence.c.

Referenced by GetCombinationLock(), and OnPartDismantledServer().

◆ ATTACHMENT_WOODEN_LOG

ATTACHMENT_WOODEN_LOG = WoodenLog
private

Definition at line 19 of file fence.c.

Referenced by CanReceiveAttachment().

◆ ATTSLOT_BARBEDWIRE_DOWN

string ATTSLOT_BARBEDWIRE_DOWN = "Wall_Barbedwire_1"
private

Definition at line 23 of file fence.c.

Referenced by GateAttachmentConditions().

◆ ATTSLOT_BARBEDWIRE_UP

string ATTSLOT_BARBEDWIRE_UP = "Wall_Barbedwire_2"
private

Definition at line 24 of file fence.c.

Referenced by GateAttachmentConditions().

◆ ATTSLOT_CAMONET

string ATTSLOT_CAMONET = "Wall_Camonet"
private

Definition at line 22 of file fence.c.

Referenced by GateAttachmentConditions().

◆ BASE_ROOF_NAME

const string BASE_ROOF_NAME = "_roof"
staticprivate

Definition at line 13 of file watchtower.c.

Referenced by UpdateVisuals().

◆ BASE_VIEW_NAME

const string BASE_VIEW_NAME = "level_"
staticprivate

Definition at line 11 of file watchtower.c.

Referenced by UpdateVisuals().

◆ BASE_WALL_NAME

const string BASE_WALL_NAME = "_wall_"
staticprivate

Definition at line 12 of file watchtower.c.

Referenced by UpdateVisuals().

◆ GATE_ROTATION_ANGLE_DEG

const float GATE_ROTATION_ANGLE_DEG = 100
private

Definition at line 13 of file fence.c.

Referenced by CheckFenceOpened(), and OpenFence().

◆ GATE_ROTATION_TIME_APPROX

const float GATE_ROTATION_TIME_APPROX = 2000
private

Definition at line 14 of file fence.c.

Referenced by CloseFence(), and OpenFence().

◆ GATE_STATE_FULL

const int GATE_STATE_FULL = 2
private

Definition at line 5 of file fence.c.

Referenced by CheckGateState(), and HasFullyConstructedGate().

◆ GATE_STATE_NONE

const int GATE_STATE_NONE = 0
private

Definition at line 3 of file fence.c.

Referenced by CheckGateState(), HasHinges(), NameOverride(), and OnStoreLoad().

◆ GATE_STATE_PARTIAL

const int GATE_STATE_PARTIAL = 1
private

Definition at line 4 of file fence.c.

Referenced by CheckGateState(), and GateAttachmentConditions().

◆ m_FlagRefresherFrequency

int m_FlagRefresherFrequency = GameConstants.REFRESHER_FREQUENCY_DEFAULT
protected

Definition at line 12 of file totem.c.

Referenced by InitRefresherData(), and OnCEUpdate().

◆ m_FlagRefresherMaxDuration

◆ m_GateState

int m_GateState = 0
protected

◆ m_IsOpened

bool m_IsOpened = false
protected

Definition at line 29 of file fence.c.

Referenced by IsOpened(), OnStoreLoad(), OnStoreSave(), OnVariablesSynchronized(), and SetOpenedState().

◆ m_IsOpenedClient

bool m_IsOpenedClient = false
protected

Definition at line 30 of file fence.c.

Referenced by OnVariablesSynchronized().

◆ m_RefresherActive

bool m_RefresherActive
private

◆ m_RefresherActiveLocal

bool m_RefresherActiveLocal
private

Definition at line 7 of file totem.c.

Referenced by OnVariablesSynchronized(), and TerritoryFlag().

◆ m_RefresherInitialized

bool m_RefresherInitialized
private

Definition at line 8 of file totem.c.

Referenced by AfterStoreLoad(), InitRefresherData(), and TerritoryFlag().

◆ m_RefresherTimeRemaining

int m_RefresherTimeRemaining
private

◆ m_RefreshTimeCounter

int m_RefreshTimeCounter
private

Definition at line 10 of file totem.c.

Referenced by OnCEUpdate(), OnStoreLoad(), and OnStoreSave().

◆ m_SoundGate_End

EffectSound m_SoundGate_End
protected

Definition at line 34 of file fence.c.

Referenced by SoundGateCloseEnd().

◆ m_SoundGate_Start

EffectSound m_SoundGate_Start
protected

Definition at line 33 of file fence.c.

Referenced by SoundGateCloseStart(), and SoundGateOpenStart().

◆ m_ToDiscard

bool m_ToDiscard = false
protected

Definition at line 28 of file fence.c.

Referenced by OnStoreLoad().

◆ MAX_ACTION_DETECTION_ANGLE_RAD

const float MAX_ACTION_DETECTION_ANGLE_RAD = 1.3
private

Definition at line 16 of file fence.c.

Referenced by IsFacingCamera(), and IsFacingPlayer().

◆ MAX_ACTION_DETECTION_DISTANCE

const float MAX_ACTION_DETECTION_DISTANCE = 2.0
private

Definition at line 17 of file fence.c.

Referenced by HasProperDistance().

◆ MAX_FLOOR_VERTICAL_DISTANCE

const float MAX_FLOOR_VERTICAL_DISTANCE = 0.5
private

◆ MAX_WATCHTOWER_FLOORS

const int MAX_WATCHTOWER_FLOORS = 3
staticprivate

Definition at line 14 of file watchtower.c.

Referenced by OnDebugSpawn(), and UpdateVisuals().

◆ MAX_WATCHTOWER_WALLS

const int MAX_WATCHTOWER_WALLS = 3
staticprivate

Definition at line 15 of file watchtower.c.

Referenced by OnDebugSpawn(), and UpdateVisuals().

◆ MIN_ACTION_DETECTION_ANGLE_RAD

const float MIN_ACTION_DETECTION_ANGLE_RAD = 0.35
private

Definition at line 8 of file watchtower.c.

Referenced by IsFacingPlayer().

◆ SOUND_GATE_CLOSE_END

const string SOUND_GATE_CLOSE_END = "DoorWoodTowerClose_end_SoundSet"
private

Definition at line 10 of file fence.c.

Referenced by SoundGateCloseEnd().

◆ SOUND_GATE_CLOSE_START

const string SOUND_GATE_CLOSE_START = "DoorWoodTowerClose_start_SoundSet"
private

Definition at line 9 of file fence.c.

Referenced by SoundGateCloseStart().

◆ SOUND_GATE_OPEN_START

const string SOUND_GATE_OPEN_START = "DoorWoodTowerOpen_SoundSet"
private

Definition at line 8 of file fence.c.

Referenced by SoundGateOpenStart().


The documentation for this class was generated from the following files:
  • F:/Games/Dayz/scripts/4_world/entities/itembase/basebuildingbase/fence.c
  • F:/Games/Dayz/scripts/4_world/entities/itembase/basebuildingbase/sheltersite.c
  • F:/Games/Dayz/scripts/4_world/entities/itembase/basebuildingbase/totem.c
  • F:/Games/Dayz/scripts/4_world/entities/itembase/basebuildingbase/watchtower.c