Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CampaignMilitaryBaseComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_CampaignMilitaryBaseComponentClass
 
class  SCR_CampaignMilitaryBaseComponent
 

Typedefs

typedef func OnSpawnPointAssignedDelegate
 
typedef ScriptInvokerBase< OnSpawnPointAssignedDelegateOnSpawnPointAssignedInvoker
 

Enumerations

enum  SCR_ECampaignBaseType { BASE, RELAY }
 

Functions

SCR_CampaignMilitaryBaseComponentClass SCR_MilitaryBaseComponentClass OnSpawnPointAssignedDelegate (SCR_SpawnPoint spawnpoint)
 
ResourceName GetBuildingIconImageset ()
 
SCR_GraphLinesData GetGraphLinesData ()
 
float GetLineWidth ()
 
SCR_CampaignMilitaryBaseComponent SCR_MilitaryBaseComponent BaseContainerProps ()
 
bool IsControlPoint ()
 
bool CanBeHQ ()
 
bool DisableWhenUnusedAsHQ ()
 
WorldTimestamp GetRespawnTimestamp ()
 
void Initialize ()
 
void Disable ()
 
void OnInitialized ()
 
void ApplyHeaderSettings (notnull SCR_CampaignCustomBase settings)
 
override void OnServiceStateChanged (SCR_EServicePointStatus state, notnull SCR_ServicePointComponent serviceComponent)
 
void OnServiceBuilt (notnull SCR_ServicePointComponent service)
 
protected void SendHighestPriorityMessage (notnull SCR_CampaignFaction faction)
 
void OnServiceRemoved (notnull SCR_MilitaryBaseLogicComponent service)
 
void OnServiceBuilt_AfterInit (SCR_ServicePointComponent service)
 
void OnDisabled ()
 
bool IsInitialized ()
 
void SetAsHQ (bool isHQ)
 
protected void OnHQSet ()
 
bool IsHQ ()
 
bool CostSuppliesToSpawn ()
 
OnSpawnPointAssignedInvoker GetOnSpawnPointAssigned ()
 
float GetRadioRange ()
 
protected float GetRelayRadioRange (notnull BaseRadioComponent radio)
 
void UpdateBasesInRadioRange ()
 
bool CanReachByRadio (notnull SCR_CampaignMilitaryBaseComponent base)
 
bool CanReachByRadio (notnull SCR_CampaignMobileAssemblyStandaloneComponent mobileAssembly)
 
void SetHQRadioConverage (notnull SCR_Faction faction, SCR_ECampaignHQRadioComms coverage)
 
SCR_ECampaignHQRadioComms GetHQRadioCoverage (notnull Faction faction)
 
bool IsHQRadioTrafficPossible (Faction faction, SCR_ECampaignHQRadioComms direction=SCR_ECampaignHQRadioComms.RECEIVE)
 
protected void OnLocalPlayerFactionAssigned (Faction assignedFaction)
 
float GetBaseSpawnCostFactor ()
 
int GetBaseSpawnCost ()
 
protected void OnCaptureStart (SCR_Faction faction)
 
void RefreshTasks ()
 
void NotifyAboutEnemyAttack (notnull Faction attackingFaction)
 
void EndCapture ()
 Capturing has been terminated. More...
 
int GetReconfiguredByID ()
 
bool GetDisableWhenUnusedAsHQ ()
 
bool BeginCapture (SCR_CampaignFaction faction, int playerID=INVALID_PLAYER_INDEX)
 Capturing has begun. More...
 
protected void HandleSpawnPointFaction ()
 Changes the faction which can spawn on spawn point groups owned by this base. More...
 
SCR_SpawnPoint GetSpawnPoint ()
 
override void OnCapturingFactionChanged ()
 Event which is triggered when the capturing faction changes. More...
 
void FlashBaseIcon (float remainingTime=0, Faction faction=null, bool changeToDefault=false, bool infiniteTimer=false)
 
void OnHasSignalChanged ()
 
protected void OnSuppliesChanged ()
 
override protected void OnFactionChanged (FactionAffiliationComponent owner, Faction previousFaction, Faction faction)
 Event which is triggered when the owning faction changes. More...
 
void OnSpawnPointFactionAssigned (FactionKey faction)
 
void ChangeRadioSettings (notnull SCR_Faction faction)
 
void RegisterRemnants (notnull SCR_AmbientPatrolSpawnPointComponent remnants)
 
void SetDefendersGroup (SCR_AIGroup grp)
 
void RemoveGroup (SCR_AIGroup grp)
 
bool ContainsGroup (SCR_AIGroup grp)
 
override void SetCallsign (notnull SCR_Faction faction)
 
override void SetCallsignIndexAutomatic (int index)
 
protected void SupplyIncomeTimer (bool reset=false)
 
protected void AddRegularSupplyPackage (notnull Faction faction)
 Reinforcements timer has finished, send in reinforcements. More...
 
SCR_CampaignMilitaryBaseMapDescriptorComponent GetMapDescriptor ()
 
SCR_CampaignMapUIBase GetMapUI ()
 
bool GetIsEntityInMyRange (notnull IEntity entity)
 
float GetSupplies ()
 
float GetSuppliesMax ()
 
int GetSuppliesIncome ()
 
void RegisterHQRadio (notnull IEntity radio)
 
override void RegisterLogicComponent (notnull SCR_MilitaryBaseLogicComponent component)
 
void SetRadioChatterSignal (SCR_Faction faction)
 
IEntity GetHQRadio ()
 
void HideMapLocationLabel ()
 
SCR_ResourceComponent GetResourceComponent ()
 return ResourceComponent of base More...
 
void AddSupplies (int suppliesCount, bool replicate=true)
 
void SetSupplies (float suppliesCount)
 
void SetInitialSupplies (float suppliesCount)
 
void SetStartingSupplies (float suppliesCount)
 
void AlterSupplyIncomeTimer (float time)
 
int GetBasesInRange (SCR_ECampaignBaseType filter, notnull out array< SCR_CampaignMilitaryBaseComponent > basesInRange)
 Outs all bases in range that suit the filter. Filter = allowed types. More...
 
void SetFaction (SCR_CampaignFaction faction)
 
SCR_CampaignFaction GetCampaignFaction ()
 Returns the owning faction. More...
 
SCR_ECampaignBaseType GetType ()
 Returns type of this base. More...
 
string GetBaseName ()
 Returns the name of this base. More...
 
string GetBaseNameUpperCase ()
 Returns the upper-case name of this base. More...
 
bool IsBeingCaptured ()
 Returns whether this base is being captured. More...
 
void SetAttackingFaction (int enemyFaction)
 
void OnAttackingFactionChanged ()
 
void OnRespawnCooldownChanged ()
 
void UpdateRespawnCooldown ()
 
override void OnCallsignAssigned ()
 
void OnAllBasesInitialized ()
 
void RecalculateRadioRange ()
 
void OnRadioRangeChanged ()
 
void SetBaseUI (SCR_CampaignMapUIBase base)
 Called from SCR_MapCampaignUI when base UI elements are initialized. More...
 
void SendHQMessageBaseCaptured ()
 
protected void SpawnStartingVehicles ()
 
protected void DeleteStartingVehicles ()
 
protected void RemoveFortifications ()
 
void LoadState (notnull SCR_CampaignBaseStruct baseStruct)
 
void SpawnBuilding (ResourceName prefab, vector position, vector rotation, bool isMainTent=false)
 
void EvaluateDefenders ()
 Periodically add XP to players defending their base. More...
 
void StoreState (out SCR_CampaignBaseStruct baseStruct)
 
protected void ConnectToCampaignBasesSystem ()
 
protected void DisconnectFromCampaignBasesSystem ()
 
void Update (float timeSlice)
 
override void EOnInit (IEntity owner)
 
override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 
override void OnDelete (IEntity owner)
 
SCR_CampaignMilitaryBaseComponent SCR_MilitaryBaseComponent SCR_BaseContainerCustomTitleResourceName ("m_sBaseName", true)
 

Variables

ResourceName m_sBuildingIconImageset
 
protected ref SCR_GraphLinesData m_GraphLinesData
 
protected float m_fLineWidth
 
protected bool m_bIsControlPoint
 
protected bool m_bCanBeHQ
 
protected bool m_bDisableWhenUnusedAsHQ
 
protected bool m_bIsSupplyHub
 
protected string m_sBaseName
 
protected string m_sBaseNameUpper
 
protected string m_sMapLocationName
 
protected SCR_ECampaignBaseType m_eType
 
protected ref map< int, WorldTimestamp > m_mDefendersData = new map<int, WorldTimestamp>()
 
protected ref OnSpawnPointAssignedInvoker m_OnSpawnPointAssigned
 
protected ref array< SCR_CampaignMilitaryBaseComponentm_aBasesInRadioRange = {}
 
protected ref array< SCR_AmbientPatrolSpawnPointComponent > m_aRemnants = {}
 
protected ref array< IEntity > m_aStartingVehicles = {}
 
protected ref array< SCR_ERadioMsgm_aServiceBuiltMsgQueue = {}
 
protected float m_fStartingSupplies
 
protected float m_fSuppliesArrivalTime = float.MAX
 
protected float m_fNextFrameCheck
 
protected float m_fTimer
 
protected float m_fRadioRangeDefault
 
protected WorldTimestamp m_fLastEnemyContactTimestamp
 
protected bool m_bLocalPlayerPresent
 
protected SCR_CampaignMilitaryBaseMapDescriptorComponent m_MapDescriptor
 
protected SCR_SpawnPoint m_SpawnPoint
 
protected SCR_CampaignFaction m_CapturingFaction
 
protected SCR_CampaignFaction m_OwningFactionPrevious
 
protected BaseRadioComponent m_RadioComponent
 
protected IEntity m_HQRadio
 
protected IEntity m_HQTent
 
protected SCR_CampaignMapUIBase m_UIElement
 
protected SCR_TimedWaypoint m_SeekDestroyWP
 
protected ref array< SCR_AIGroupm_aDefendersGroups = {}
 
protected bool m_bIsHQ
 
protected bool m_bInitialized
 
protected int m_iSupplyRegenAmount
 
protected SCR_ECampaignHQRadioComms m_eRadioCoverageBLUFOR = SCR_ECampaignHQRadioComms.NONE
 
protected SCR_ECampaignHQRadioComms m_eRadioCoverageOPFOR = SCR_ECampaignHQRadioComms.NONE
 
protected int m_iCapturingFaction = INVALID_FACTION_INDEX
 
protected int m_iReconfiguredBy = INVALID_PLAYER_INDEX
 
protected float m_fRadioRange
 
protected WorldTimestamp m_fRespawnAvailableSince
 
protected int m_iAttackingFaction = -1
 
enum SCR_ECampaignBaseType UNKNOWN = 0
 
enum SCR_ECampaignBaseType EAST = 1
 
enum SCR_ECampaignBaseType WEST = 2
 

Typedef Documentation

◆ OnSpawnPointAssignedDelegate

◆ OnSpawnPointAssignedInvoker

Enumeration Type Documentation

◆ SCR_ECampaignBaseType

Enumerator
BASE 
RELAY 

Definition at line 2577 of file SCR_CampaignMilitaryBaseComponent.c.

Function Documentation

◆ AddRegularSupplyPackage()

protected void BaseContainerProps::AddRegularSupplyPackage ( notnull Faction  faction)

Reinforcements timer has finished, send in reinforcements.

Definition at line 1424 of file SCR_CampaignMilitaryBaseComponent.c.

◆ AddSupplies()

void BaseContainerProps::AddSupplies ( int  suppliesCount,
bool  replicate = true 
)

Add delivered supplies

Parameters
[in]suppliesCount
[in]replicate

Definition at line 1674 of file SCR_CampaignMilitaryBaseComponent.c.

◆ AlterSupplyIncomeTimer()

void BaseContainerProps::AlterSupplyIncomeTimer ( float  time)

Change reinforcements timer

Parameters
timeThis number is added to the timer

Definition at line 1758 of file SCR_CampaignMilitaryBaseComponent.c.

◆ ApplyHeaderSettings()

void BaseContainerProps::ApplyHeaderSettings ( notnull SCR_CampaignCustomBase  settings)
Parameters
[in]settings

Definition at line 313 of file SCR_CampaignMilitaryBaseComponent.c.

◆ BaseContainerProps()

SCR_CampaignMilitaryBaseComponent SCR_MilitaryBaseComponent BaseContainerProps ( )

◆ BeginCapture()

bool BaseContainerProps::BeginCapture ( SCR_CampaignFaction  faction,
int  playerID = INVALID_PLAYER_INDEX 
)

Capturing has begun.

Definition at line 959 of file SCR_CampaignMilitaryBaseComponent.c.

◆ CanBeHQ()

bool BaseContainerProps::CanBeHQ ( )
Returns

Definition at line 159 of file SCR_CampaignMilitaryBaseComponent.c.

◆ CanReachByRadio() [1/2]

bool BaseContainerProps::CanReachByRadio ( notnull SCR_CampaignMilitaryBaseComponent  base)
Parameters
[in]base
Returns

Definition at line 737 of file SCR_CampaignMilitaryBaseComponent.c.

◆ CanReachByRadio() [2/2]

bool BaseContainerProps::CanReachByRadio ( notnull SCR_CampaignMobileAssemblyStandaloneComponent  mobileAssembly)
Parameters
[in]mobileAssembly
Returns

Definition at line 746 of file SCR_CampaignMilitaryBaseComponent.c.

◆ ChangeRadioSettings()

void BaseContainerProps::ChangeRadioSettings ( notnull SCR_Faction  faction)
Parameters
[in]faction

Definition at line 1248 of file SCR_CampaignMilitaryBaseComponent.c.

◆ ConnectToCampaignBasesSystem()

protected void BaseContainerProps::ConnectToCampaignBasesSystem ( )

Definition at line 2400 of file SCR_CampaignMilitaryBaseComponent.c.

◆ ContainsGroup()

bool BaseContainerProps::ContainsGroup ( SCR_AIGroup  grp)
Returns

Definition at line 1334 of file SCR_CampaignMilitaryBaseComponent.c.

◆ CostSuppliesToSpawn()

bool BaseContainerProps::CostSuppliesToSpawn ( )
Returns
If it cost supplies to spawn on this base

Definition at line 658 of file SCR_CampaignMilitaryBaseComponent.c.

◆ DeleteStartingVehicles()

protected void BaseContainerProps::DeleteStartingVehicles ( )

Definition at line 2158 of file SCR_CampaignMilitaryBaseComponent.c.

◆ Disable()

void BaseContainerProps::Disable ( )

Definition at line 193 of file SCR_CampaignMilitaryBaseComponent.c.

◆ DisableWhenUnusedAsHQ()

bool BaseContainerProps::DisableWhenUnusedAsHQ ( )
Returns

Definition at line 167 of file SCR_CampaignMilitaryBaseComponent.c.

◆ DisconnectFromCampaignBasesSystem()

protected void BaseContainerProps::DisconnectFromCampaignBasesSystem ( )

Definition at line 2410 of file SCR_CampaignMilitaryBaseComponent.c.

◆ EndCapture()

void BaseContainerProps::EndCapture ( )

Capturing has been terminated.

Definition at line 928 of file SCR_CampaignMilitaryBaseComponent.c.

◆ EvaluateDefenders()

void BaseContainerProps::EvaluateDefenders ( )

Periodically add XP to players defending their base.

Definition at line 2305 of file SCR_CampaignMilitaryBaseComponent.c.

◆ FlashBaseIcon()

void BaseContainerProps::FlashBaseIcon ( float  remainingTime = 0,
Faction  faction = null,
bool  changeToDefault = false,
bool  infiniteTimer = false 
)

Definition at line 1078 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetBaseName()

string BaseContainerProps::GetBaseName ( )

Returns the name of this base.

Definition at line 1815 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetBaseNameUpperCase()

string BaseContainerProps::GetBaseNameUpperCase ( )

Returns the upper-case name of this base.

Definition at line 1822 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetBasesInRange()

int BaseContainerProps::GetBasesInRange ( SCR_ECampaignBaseType  filter,
notnull out array< SCR_CampaignMilitaryBaseComponent basesInRange 
)

Outs all bases in range that suit the filter. Filter = allowed types.

Definition at line 1765 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetBaseSpawnCost()

int BaseContainerProps::GetBaseSpawnCost ( )
Returns

Definition at line 865 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetBaseSpawnCostFactor()

float BaseContainerProps::GetBaseSpawnCostFactor ( )
Returns

Definition at line 855 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetBuildingIconImageset()

ResourceName GetBuildingIconImageset ( )
Returns

Definition at line 13 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetCampaignFaction()

SCR_CampaignFaction BaseContainerProps::GetCampaignFaction ( )

Returns the owning faction.

Definition at line 1801 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetDisableWhenUnusedAsHQ()

bool BaseContainerProps::GetDisableWhenUnusedAsHQ ( )
Returns

Definition at line 952 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetGraphLinesData()

SCR_GraphLinesData GetGraphLinesData ( )
Returns

Definition at line 20 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetHQRadio()

IEntity BaseContainerProps::GetHQRadio ( )
Returns

Definition at line 1633 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetHQRadioCoverage()

SCR_ECampaignHQRadioComms BaseContainerProps::GetHQRadioCoverage ( notnull Faction  faction)
Parameters
[in]faction
Returns

Definition at line 783 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetIsEntityInMyRange()

bool BaseContainerProps::GetIsEntityInMyRange ( notnull IEntity  entity)
Parameters
[in]entity
Returns

Definition at line 1522 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetLineWidth()

float GetLineWidth ( )
Returns

Definition at line 27 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetMapDescriptor()

SCR_CampaignMilitaryBaseMapDescriptorComponent BaseContainerProps::GetMapDescriptor ( )
Returns

Definition at line 1507 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetMapUI()

SCR_CampaignMapUIBase BaseContainerProps::GetMapUI ( )
Returns

Definition at line 1514 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetOnSpawnPointAssigned()

OnSpawnPointAssignedInvoker BaseContainerProps::GetOnSpawnPointAssigned ( )
Returns

Definition at line 665 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetRadioRange()

float BaseContainerProps::GetRadioRange ( )
Returns

Definition at line 675 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetReconfiguredByID()

int BaseContainerProps::GetReconfiguredByID ( )
Returns

Definition at line 945 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetRelayRadioRange()

protected float BaseContainerProps::GetRelayRadioRange ( notnull BaseRadioComponent  radio)

Definition at line 681 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetResourceComponent()

SCR_ResourceComponent BaseContainerProps::GetResourceComponent ( )

return ResourceComponent of base

Definition at line 1665 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetRespawnTimestamp()

WorldTimestamp BaseContainerProps::GetRespawnTimestamp ( )
Returns

Definition at line 174 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetSpawnPoint()

SCR_SpawnPoint BaseContainerProps::GetSpawnPoint ( )
Returns

Definition at line 1024 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetSupplies()

float BaseContainerProps::GetSupplies ( )
Returns

Definition at line 1529 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetSuppliesIncome()

int BaseContainerProps::GetSuppliesIncome ( )
Returns

Definition at line 1569 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetSuppliesMax()

float BaseContainerProps::GetSuppliesMax ( )
Returns

Definition at line 1549 of file SCR_CampaignMilitaryBaseComponent.c.

◆ GetType()

SCR_ECampaignBaseType BaseContainerProps::GetType ( )

Returns type of this base.

Definition at line 1808 of file SCR_CampaignMilitaryBaseComponent.c.

◆ HandleSpawnPointFaction()

protected void BaseContainerProps::HandleSpawnPointFaction ( )

Changes the faction which can spawn on spawn point groups owned by this base.

Definition at line 983 of file SCR_CampaignMilitaryBaseComponent.c.

◆ HideMapLocationLabel()

void BaseContainerProps::HideMapLocationLabel ( )

Definition at line 1640 of file SCR_CampaignMilitaryBaseComponent.c.

◆ Initialize()

void BaseContainerProps::Initialize ( )

Definition at line 181 of file SCR_CampaignMilitaryBaseComponent.c.

◆ IsBeingCaptured()

bool BaseContainerProps::IsBeingCaptured ( )

Returns whether this base is being captured.

Definition at line 1829 of file SCR_CampaignMilitaryBaseComponent.c.

◆ IsControlPoint()

bool BaseContainerProps::IsControlPoint ( )
Returns

Definition at line 151 of file SCR_CampaignMilitaryBaseComponent.c.

◆ IsHQ()

bool BaseContainerProps::IsHQ ( )
Returns

Definition at line 651 of file SCR_CampaignMilitaryBaseComponent.c.

◆ IsHQRadioTrafficPossible()

bool BaseContainerProps::IsHQRadioTrafficPossible ( Faction  faction,
SCR_ECampaignHQRadioComms  direction = SCR_ECampaignHQRadioComms.RECEIVE 
)
Parameters
[in]faction
[in]direction
Returns

Definition at line 803 of file SCR_CampaignMilitaryBaseComponent.c.

◆ IsInitialized()

bool BaseContainerProps::IsInitialized ( )
Returns

Definition at line 595 of file SCR_CampaignMilitaryBaseComponent.c.

◆ LoadState()

void BaseContainerProps::LoadState ( notnull SCR_CampaignBaseStruct  baseStruct)
Parameters
[in]baseStruct

Definition at line 2188 of file SCR_CampaignMilitaryBaseComponent.c.

◆ NotifyAboutEnemyAttack()

void BaseContainerProps::NotifyAboutEnemyAttack ( notnull Faction  attackingFaction)
Parameters
[in]attackingFaction

Definition at line 903 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnAllBasesInitialized()

void BaseContainerProps::OnAllBasesInitialized ( )

Definition at line 1930 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnAttackingFactionChanged()

void BaseContainerProps::OnAttackingFactionChanged ( )

Definition at line 1854 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnCallsignAssigned()

override void BaseContainerProps::OnCallsignAssigned ( )

Definition at line 1901 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnCaptureStart()

protected void BaseContainerProps::OnCaptureStart ( SCR_Faction  faction)

Definition at line 877 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnCapturingFactionChanged()

override void BaseContainerProps::OnCapturingFactionChanged ( )

Event which is triggered when the capturing faction changes.

Definition at line 1031 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnDisabled()

void BaseContainerProps::OnDisabled ( )

Definition at line 557 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnFactionChanged()

override protected void BaseContainerProps::OnFactionChanged ( FactionAffiliationComponent  owner,
Faction  previousFaction,
Faction  faction 
)

Event which is triggered when the owning faction changes.

Definition at line 1122 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnHasSignalChanged()

void BaseContainerProps::OnHasSignalChanged ( )

Definition at line 1093 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnHQSet()

protected void BaseContainerProps::OnHQSet ( )

Definition at line 627 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnInitialized()

void BaseContainerProps::OnInitialized ( )

Definition at line 218 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnLocalPlayerFactionAssigned()

protected void BaseContainerProps::OnLocalPlayerFactionAssigned ( Faction  assignedFaction)

Definition at line 845 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnRadioRangeChanged()

void BaseContainerProps::OnRadioRangeChanged ( )

Definition at line 2014 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnRespawnCooldownChanged()

void BaseContainerProps::OnRespawnCooldownChanged ( )

Definition at line 1870 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnServiceBuilt()

void BaseContainerProps::OnServiceBuilt ( notnull SCR_ServicePointComponent  service)
Parameters
[in]service

Definition at line 369 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnServiceBuilt_AfterInit()

void BaseContainerProps::OnServiceBuilt_AfterInit ( SCR_ServicePointComponent  service)
Parameters
[in]service

Definition at line 515 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnServiceRemoved()

void BaseContainerProps::OnServiceRemoved ( notnull SCR_MilitaryBaseLogicComponent  service)
Parameters
[in]service

Definition at line 489 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnServiceStateChanged()

override void BaseContainerProps::OnServiceStateChanged ( SCR_EServicePointStatus  state,
notnull SCR_ServicePointComponent  serviceComponent 
)

Definition at line 340 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnSpawnPointAssignedDelegate()

◆ OnSpawnPointFactionAssigned()

void BaseContainerProps::OnSpawnPointFactionAssigned ( FactionKey  faction)
Parameters
[in]faction

Definition at line 1239 of file SCR_CampaignMilitaryBaseComponent.c.

◆ OnSuppliesChanged()

protected void BaseContainerProps::OnSuppliesChanged ( )

Definition at line 1111 of file SCR_CampaignMilitaryBaseComponent.c.

◆ RecalculateRadioRange()

void BaseContainerProps::RecalculateRadioRange ( )

Definition at line 1961 of file SCR_CampaignMilitaryBaseComponent.c.

◆ RefreshTasks()

void BaseContainerProps::RefreshTasks ( )

Definition at line 889 of file SCR_CampaignMilitaryBaseComponent.c.

◆ RegisterHQRadio()

void BaseContainerProps::RegisterHQRadio ( notnull IEntity  radio)
Parameters
[in]radio

Definition at line 1577 of file SCR_CampaignMilitaryBaseComponent.c.

◆ RegisterLogicComponent()

override void BaseContainerProps::RegisterLogicComponent ( notnull SCR_MilitaryBaseLogicComponent  component)

Definition at line 1584 of file SCR_CampaignMilitaryBaseComponent.c.

◆ RegisterRemnants()

void BaseContainerProps::RegisterRemnants ( notnull SCR_AmbientPatrolSpawnPointComponent  remnants)
Parameters
[in]remnants

Definition at line 1272 of file SCR_CampaignMilitaryBaseComponent.c.

◆ RemoveFortifications()

protected void BaseContainerProps::RemoveFortifications ( )

Definition at line 2168 of file SCR_CampaignMilitaryBaseComponent.c.

◆ RemoveGroup()

void BaseContainerProps::RemoveGroup ( SCR_AIGroup  grp)
Returns

Definition at line 1327 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SCR_BaseContainerCustomTitleResourceName()

SCR_CampaignMilitaryBaseComponent SCR_MilitaryBaseComponent SCR_BaseContainerCustomTitleResourceName ( "m_sBaseName"  ,
true   
)
Returns

Definition at line 2522 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SendHighestPriorityMessage()

protected void BaseContainerProps::SendHighestPriorityMessage ( notnull SCR_CampaignFaction  faction)

Definition at line 470 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SendHQMessageBaseCaptured()

void BaseContainerProps::SendHQMessageBaseCaptured ( )

Definition at line 2059 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetAsHQ()

void BaseContainerProps::SetAsHQ ( bool  isHQ)
Parameters
[in]isHQ

Definition at line 602 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetAttackingFaction()

void BaseContainerProps::SetAttackingFaction ( int  enemyFaction)
Parameters
[in]enemyFaction

Definition at line 1841 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetBaseUI()

void BaseContainerProps::SetBaseUI ( SCR_CampaignMapUIBase  base)

Called from SCR_MapCampaignUI when base UI elements are initialized.

Definition at line 2052 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetCallsign()

override void BaseContainerProps::SetCallsign ( notnull SCR_Faction  faction)

Definition at line 1340 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetCallsignIndexAutomatic()

override void BaseContainerProps::SetCallsignIndexAutomatic ( int  index)

Definition at line 1377 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetDefendersGroup()

void BaseContainerProps::SetDefendersGroup ( SCR_AIGroup  grp)
Parameters
[in]grp

Definition at line 1315 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetFaction()

void BaseContainerProps::SetFaction ( SCR_CampaignFaction  faction)
Parameters
[in]faction

Definition at line 1788 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetHQRadioConverage()

void BaseContainerProps::SetHQRadioConverage ( notnull SCR_Faction  faction,
SCR_ECampaignHQRadioComms  coverage 
)
Parameters
[in]faction
[in]coverage

Definition at line 754 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetInitialSupplies()

void BaseContainerProps::SetInitialSupplies ( float  suppliesCount)
Parameters
[in]suppliesCount

Definition at line 1728 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetRadioChatterSignal()

void BaseContainerProps::SetRadioChatterSignal ( SCR_Faction  faction)
Parameters
[in]faction

Definition at line 1599 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetStartingSupplies()

void BaseContainerProps::SetStartingSupplies ( float  suppliesCount)
Parameters
[in]suppliesCount

Definition at line 1750 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SetSupplies()

void BaseContainerProps::SetSupplies ( float  suppliesCount)
Parameters
[in]suppliesCount

Definition at line 1708 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SpawnBuilding()

void BaseContainerProps::SpawnBuilding ( ResourceName  prefab,
vector  position,
vector  rotation,
bool  isMainTent = false 
)
Parameters
[in]prefab
[in]position
[in]rotation
[in]isMainTent

Definition at line 2251 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SpawnStartingVehicles()

protected void BaseContainerProps::SpawnStartingVehicles ( )

Definition at line 2108 of file SCR_CampaignMilitaryBaseComponent.c.

◆ StoreState()

void BaseContainerProps::StoreState ( out SCR_CampaignBaseStruct  baseStruct)
Parameters
[out]baseStruct

Definition at line 2390 of file SCR_CampaignMilitaryBaseComponent.c.

◆ SupplyIncomeTimer()

protected void BaseContainerProps::SupplyIncomeTimer ( bool  reset = false)

Handles the timer for reinforcements arrival at this base

Parameters
resetResets the current timer

Definition at line 1386 of file SCR_CampaignMilitaryBaseComponent.c.

◆ Update()

void BaseContainerProps::Update ( float  timeSlice)
Parameters
[in]timeSlice

Definition at line 2423 of file SCR_CampaignMilitaryBaseComponent.c.

◆ UpdateBasesInRadioRange()

void BaseContainerProps::UpdateBasesInRadioRange ( )

Definition at line 708 of file SCR_CampaignMilitaryBaseComponent.c.

◆ UpdateRespawnCooldown()

void BaseContainerProps::UpdateRespawnCooldown ( )

Definition at line 1886 of file SCR_CampaignMilitaryBaseComponent.c.

Variable Documentation

◆ EAST

enum SCR_ECampaignBaseType EAST = 1

◆ m_aBasesInRadioRange

protected ref array<SCR_CampaignMilitaryBaseComponent> m_aBasesInRadioRange = {}

Definition at line 86 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_aDefendersGroups

protected ref array<SCR_AIGroup> m_aDefendersGroups = {}

Definition at line 116 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_aRemnants

protected ref array<SCR_AmbientPatrolSpawnPointComponent> m_aRemnants = {}

Definition at line 87 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_aServiceBuiltMsgQueue

protected ref array<SCR_ERadioMsg> m_aServiceBuiltMsgQueue = {}

Definition at line 89 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_aStartingVehicles

protected ref array<IEntity> m_aStartingVehicles = {}

Definition at line 88 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_bCanBeHQ

protected bool m_bCanBeHQ

Definition at line 41 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_bDisableWhenUnusedAsHQ

protected bool m_bDisableWhenUnusedAsHQ

Definition at line 44 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_bInitialized

protected bool m_bInitialized

Definition at line 122 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_bIsControlPoint

protected bool m_bIsControlPoint

Definition at line 38 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_bIsHQ

protected bool m_bIsHQ

Definition at line 119 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_bIsSupplyHub

protected bool m_bIsSupplyHub

Definition at line 47 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_bLocalPlayerPresent

protected bool m_bLocalPlayerPresent

Definition at line 98 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_CapturingFaction

protected SCR_CampaignFaction m_CapturingFaction

Definition at line 104 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_eRadioCoverageBLUFOR

protected SCR_ECampaignHQRadioComms m_eRadioCoverageBLUFOR = SCR_ECampaignHQRadioComms.NONE

Definition at line 128 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_eRadioCoverageOPFOR

protected SCR_ECampaignHQRadioComms m_eRadioCoverageOPFOR = SCR_ECampaignHQRadioComms.NONE

Definition at line 131 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_eType

protected SCR_ECampaignBaseType m_eType

Definition at line 59 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_fLastEnemyContactTimestamp

protected WorldTimestamp m_fLastEnemyContactTimestamp

Definition at line 96 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_fLineWidth

protected float m_fLineWidth

Definition at line 9 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_fNextFrameCheck

protected float m_fNextFrameCheck

Definition at line 93 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_fRadioRange

protected float m_fRadioRange

Definition at line 140 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_fRadioRangeDefault

protected float m_fRadioRangeDefault

Definition at line 95 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_fRespawnAvailableSince

protected WorldTimestamp m_fRespawnAvailableSince

Definition at line 143 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_fStartingSupplies

protected float m_fStartingSupplies

Definition at line 91 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_fSuppliesArrivalTime

protected float m_fSuppliesArrivalTime = float.MAX

Definition at line 92 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_fTimer

protected float m_fTimer

Definition at line 94 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_GraphLinesData

protected ref SCR_GraphLinesData m_GraphLinesData

Definition at line 6 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_HQRadio

protected IEntity m_HQRadio

Definition at line 109 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_HQTent

protected IEntity m_HQTent

Definition at line 110 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_iAttackingFaction

protected int m_iAttackingFaction = -1

Definition at line 146 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_iCapturingFaction

protected int m_iCapturingFaction = INVALID_FACTION_INDEX

Definition at line 134 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_iReconfiguredBy

protected int m_iReconfiguredBy = INVALID_PLAYER_INDEX

Definition at line 137 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_iSupplyRegenAmount

protected int m_iSupplyRegenAmount

Definition at line 125 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_MapDescriptor

protected SCR_CampaignMilitaryBaseMapDescriptorComponent m_MapDescriptor

Definition at line 100 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_mDefendersData

protected ref map<int, WorldTimestamp> m_mDefendersData = new map<int, WorldTimestamp>()

Definition at line 61 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_OnSpawnPointAssigned

protected ref OnSpawnPointAssignedInvoker m_OnSpawnPointAssigned

Definition at line 84 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_OwningFactionPrevious

protected SCR_CampaignFaction m_OwningFactionPrevious

Definition at line 105 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_RadioComponent

protected BaseRadioComponent m_RadioComponent

Definition at line 107 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_sBaseName

protected string m_sBaseName

Definition at line 50 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_sBaseNameUpper

protected string m_sBaseNameUpper

Definition at line 53 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_sBuildingIconImageset

ResourceName m_sBuildingIconImageset

Definition at line 3 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_SeekDestroyWP

protected SCR_TimedWaypoint m_SeekDestroyWP

Definition at line 114 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_sMapLocationName

protected string m_sMapLocationName

Definition at line 56 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_SpawnPoint

protected SCR_SpawnPoint m_SpawnPoint

Definition at line 102 of file SCR_CampaignMilitaryBaseComponent.c.

◆ m_UIElement

protected SCR_CampaignMapUIBase m_UIElement

Definition at line 112 of file SCR_CampaignMilitaryBaseComponent.c.

◆ UNKNOWN

enum SCR_ECampaignBaseType UNKNOWN = 0

◆ WEST

enum SCR_ECampaignBaseType WEST = 2