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

Go to the source code of this file.

Data Structures

class  SCR_CampaignSuppliesComponentClass
 

Functions

int GetLoadingPlayer (bool unloading=false)
 
void SetSupplyLoadingPlayer (int playerID)
 
void DeleteSupplyLoadingPlayer (int playerID)
 
protected void OnPlayerKilled (int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator killer)
 
void SetSupplyUnloadingPlayer (int playerID)
 
void DeleteSupplyUnloadingPlayer (int playerID)
 
void OnSuppliesChanged ()
 
int GetSupplies ()
 
int GetSuppliesMax ()
 
void SetSuppliesMax (int suppliesMax)
 
float GetOperationalRadius ()
 
void SetIsPlayerInRange (bool status)
 
bool GetIsPlayerInRange ()
 
void SetLastLoadedAt (SCR_CampaignMilitaryBaseComponent base)
 
void SetLastUnloadedAt (SCR_CampaignMilitaryBaseComponent base)
 
bool AwardXP ()
 
void AddSupplies (int supplies, bool replicate=true)
 
bool GetIsStandaloneDepot ()
 
override void EOnInit (IEntity owner)
 
override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 
void SCR_CampaignSuppliesComponent (IEntityComponentSource src, IEntity ent, IEntity parent)
 
void ~SCR_CampaignSuppliesComponent ()
 

Variables

SCR_CampaignSuppliesComponentClass m_LastLoadedAt
 Makes a vehicle able to carry Conflict resources. More...
 
protected SCR_CampaignMilitaryBaseComponent m_LastUnloadedAt
 
protected SCR_CampaignMilitaryBaseComponent m_LastXPAwardedAt
 
protected bool m_bAwardUnloadXP = true
 
protected bool m_bIsPlayerInRange
 
protected ref array< intm_aLoadingPlayerIDs = {}
 
protected ref array< intm_aUnloadingPlayerIDs = {}
 
ref ScriptInvoker m_OnSuppliesChanged = new ScriptInvoker()
 
ref ScriptInvoker m_OnSuppliesTruckDeleted = new ScriptInvoker()
 
protected int m_iSupplies
 
protected int m_iSuppliesMax
 
protected float m_fOperationalRadius
 
bool m_bIsStandaloneDepot
 

Function Documentation

◆ AddSupplies()

void AddSupplies ( int  supplies,
bool  replicate = true 
)
Parameters
[in]supplies
[in]replicate

Definition at line 227 of file SCR_CampaignSuppliesComponent.c.

◆ AwardXP()

bool AwardXP ( )
Returns

Definition at line 217 of file SCR_CampaignSuppliesComponent.c.

◆ DeleteSupplyLoadingPlayer()

void DeleteSupplyLoadingPlayer ( int  playerID)
Parameters
[in]playerID

Definition at line 79 of file SCR_CampaignSuppliesComponent.c.

◆ DeleteSupplyUnloadingPlayer()

void DeleteSupplyUnloadingPlayer ( int  playerID)

Deletes from Unloading players array

Parameters
[in]playerID

Definition at line 113 of file SCR_CampaignSuppliesComponent.c.

◆ GetIsPlayerInRange()

bool GetIsPlayerInRange ( )
Returns

Definition at line 182 of file SCR_CampaignSuppliesComponent.c.

◆ GetIsStandaloneDepot()

bool GetIsStandaloneDepot ( )
Returns

Definition at line 247 of file SCR_CampaignSuppliesComponent.c.

◆ GetLoadingPlayer()

int GetLoadingPlayer ( bool  unloading = false)
Parameters
[in]unloadingtrue to verify in Unloading array, otherwise it will look in loading array
Returns
first player from loading/unloading arrays

Definition at line 46 of file SCR_CampaignSuppliesComponent.c.

◆ GetOperationalRadius()

float GetOperationalRadius ( )

Get the load / unload radius. If set custom use this. if it's set to zero, use default.

Returns

Definition at line 163 of file SCR_CampaignSuppliesComponent.c.

◆ GetSupplies()

int GetSupplies ( )
Returns

Definition at line 133 of file SCR_CampaignSuppliesComponent.c.

◆ GetSuppliesMax()

int GetSuppliesMax ( )
Returns

Definition at line 141 of file SCR_CampaignSuppliesComponent.c.

◆ OnSuppliesChanged()

void OnSuppliesChanged ( )

Definition at line 124 of file SCR_CampaignSuppliesComponent.c.

◆ SCR_CampaignSuppliesComponent()

void SCR_CampaignSuppliesComponent ( IEntityComponentSource  src,
IEntity  ent,
IEntity  parent 
)
Parameters
[in]src
[in]ent
[in]parent

Definition at line 327 of file SCR_CampaignSuppliesComponent.c.

◆ SetIsPlayerInRange()

void SetIsPlayerInRange ( bool  status)
Parameters
[in]status

Definition at line 174 of file SCR_CampaignSuppliesComponent.c.

◆ SetLastLoadedAt()

void SetLastLoadedAt ( SCR_CampaignMilitaryBaseComponent  base)
Parameters
[in]base

Definition at line 190 of file SCR_CampaignSuppliesComponent.c.

◆ SetLastUnloadedAt()

void SetLastUnloadedAt ( SCR_CampaignMilitaryBaseComponent  base)
Parameters
[in]base

Definition at line 203 of file SCR_CampaignSuppliesComponent.c.

◆ SetSuppliesMax()

void SetSuppliesMax ( int  suppliesMax)
Parameters
[in]suppliesMax

Definition at line 149 of file SCR_CampaignSuppliesComponent.c.

◆ SetSupplyLoadingPlayer()

void SetSupplyLoadingPlayer ( int  playerID)

Setter for Loading players array

Parameters
[in]playerID

Definition at line 65 of file SCR_CampaignSuppliesComponent.c.

◆ SetSupplyUnloadingPlayer()

void SetSupplyUnloadingPlayer ( int  playerID)

Setter for Unloading players array

Parameters
[in]playerID

Definition at line 100 of file SCR_CampaignSuppliesComponent.c.

◆ ~SCR_CampaignSuppliesComponent()

Definition at line 333 of file SCR_CampaignSuppliesComponent.c.

Variable Documentation

◆ m_aLoadingPlayerIDs

protected ref array<int> m_aLoadingPlayerIDs = {}

Definition at line 19 of file SCR_CampaignSuppliesComponent.c.

◆ m_aUnloadingPlayerIDs

protected ref array<int> m_aUnloadingPlayerIDs = {}

Definition at line 22 of file SCR_CampaignSuppliesComponent.c.

◆ m_bAwardUnloadXP

protected bool m_bAwardUnloadXP = true

Definition at line 13 of file SCR_CampaignSuppliesComponent.c.

◆ m_bIsPlayerInRange

protected bool m_bIsPlayerInRange

Definition at line 14 of file SCR_CampaignSuppliesComponent.c.

◆ m_bIsStandaloneDepot

bool m_bIsStandaloneDepot

Definition at line 40 of file SCR_CampaignSuppliesComponent.c.

◆ m_fOperationalRadius

protected float m_fOperationalRadius

Definition at line 37 of file SCR_CampaignSuppliesComponent.c.

◆ m_iSupplies

protected int m_iSupplies

Definition at line 30 of file SCR_CampaignSuppliesComponent.c.

◆ m_iSuppliesMax

protected int m_iSuppliesMax

Definition at line 34 of file SCR_CampaignSuppliesComponent.c.

◆ m_LastLoadedAt

Makes a vehicle able to carry Conflict resources.

◆ m_LastUnloadedAt

protected SCR_CampaignMilitaryBaseComponent m_LastUnloadedAt

Definition at line 11 of file SCR_CampaignSuppliesComponent.c.

◆ m_LastXPAwardedAt

protected SCR_CampaignMilitaryBaseComponent m_LastXPAwardedAt

Definition at line 12 of file SCR_CampaignSuppliesComponent.c.

◆ m_OnSuppliesChanged

ref ScriptInvoker m_OnSuppliesChanged = new ScriptInvoker()

Definition at line 25 of file SCR_CampaignSuppliesComponent.c.

◆ m_OnSuppliesTruckDeleted

ref ScriptInvoker m_OnSuppliesTruckDeleted = new ScriptInvoker()

Definition at line 26 of file SCR_CampaignSuppliesComponent.c.