Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CampaignSuppliesComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_CampaignSuppliesComponentClass

Functions

int GetLoadingPlayer (bool unloading=false)
void SetSupplyLoadingPlayer (int playerID)
void DeleteSupplyLoadingPlayer (int playerID)
void OnPlayerKilled (notnull SCR_InstigatorContextData instigatorContextData)
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)
 Editable Mine.
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.
SCR_CampaignMilitaryBaseComponent m_LastUnloadedAt
SCR_CampaignMilitaryBaseComponent m_LastXPAwardedAt
bool m_bAwardUnloadXP = true
bool m_bIsPlayerInRange
ref array< intm_aLoadingPlayerIDs = {}
ref array< intm_aUnloadingPlayerIDs = {}
ref ScriptInvoker m_OnSuppliesChanged = new ScriptInvoker()
ref ScriptInvoker m_OnSuppliesTruckDeleted = new ScriptInvoker()
int m_iSupplies
int m_iSuppliesMax
float m_fOperationalRadius
bool m_bIsStandaloneDepot

Function Documentation

◆ AddSupplies()

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

Definition at line 227 of file SCR_CampaignSuppliesComponent.c.

◆ AwardXP()

bool AwardXP ( )
protected
Returns

Definition at line 217 of file SCR_CampaignSuppliesComponent.c.

◆ DeleteSupplyLoadingPlayer()

void DeleteSupplyLoadingPlayer ( int playerID)
protected
Parameters
[in]playerID

Definition at line 79 of file SCR_CampaignSuppliesComponent.c.

◆ DeleteSupplyUnloadingPlayer()

void DeleteSupplyUnloadingPlayer ( int playerID)
protected

Deletes from Unloading players array

Parameters
[in]playerID

Definition at line 113 of file SCR_CampaignSuppliesComponent.c.

◆ GetIsPlayerInRange()

bool GetIsPlayerInRange ( )
protected
Returns

Definition at line 182 of file SCR_CampaignSuppliesComponent.c.

◆ GetIsStandaloneDepot()

bool GetIsStandaloneDepot ( )
protected
Returns

Definition at line 247 of file SCR_CampaignSuppliesComponent.c.

◆ GetLoadingPlayer()

int GetLoadingPlayer ( bool unloading = false)
protected
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 ( )
protected

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 ( )
protected
Returns

Definition at line 133 of file SCR_CampaignSuppliesComponent.c.

◆ GetSuppliesMax()

int GetSuppliesMax ( )
protected
Returns

Definition at line 141 of file SCR_CampaignSuppliesComponent.c.

◆ OnPlayerKilled()

void OnPlayerKilled ( notnull SCR_InstigatorContextData instigatorContextData)
protected

Called after a player gets killed.

Parameters
[in]instigatorContextDataHolds the data of the victim and killer
[in]playerId
[in]playerEntity
[in]killerEntity
[in]killer

Definition at line 90 of file SCR_CampaignSuppliesComponent.c.

◆ OnSuppliesChanged()

void OnSuppliesChanged ( )
protected

Definition at line 124 of file SCR_CampaignSuppliesComponent.c.

◆ SCR_CampaignSuppliesComponent()

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

Definition at line 326 of file SCR_CampaignSuppliesComponent.c.

◆ SetIsPlayerInRange()

void SetIsPlayerInRange ( bool status)
protected
Parameters
[in]status

Definition at line 174 of file SCR_CampaignSuppliesComponent.c.

◆ SetLastLoadedAt()

void SetLastLoadedAt ( SCR_CampaignMilitaryBaseComponent base)
protected
Parameters
[in]base

Definition at line 190 of file SCR_CampaignSuppliesComponent.c.

◆ SetLastUnloadedAt()

void SetLastUnloadedAt ( SCR_CampaignMilitaryBaseComponent base)
protected
Parameters
[in]base

Definition at line 203 of file SCR_CampaignSuppliesComponent.c.

◆ SetSuppliesMax()

void SetSuppliesMax ( int suppliesMax)
protected
Parameters
[in]suppliesMax

Definition at line 149 of file SCR_CampaignSuppliesComponent.c.

◆ SetSupplyLoadingPlayer()

void SetSupplyLoadingPlayer ( int playerID)
protected

Setter for Loading players array

Parameters
[in]playerID

Definition at line 65 of file SCR_CampaignSuppliesComponent.c.

◆ SetSupplyUnloadingPlayer()

void SetSupplyUnloadingPlayer ( int playerID)
protected

Setter for Unloading players array

Parameters
[in]playerID

Definition at line 100 of file SCR_CampaignSuppliesComponent.c.

◆ ~SCR_CampaignSuppliesComponent()

void ~SCR_CampaignSuppliesComponent ( )
protected

Definition at line 332 of file SCR_CampaignSuppliesComponent.c.

Variable Documentation

◆ m_aLoadingPlayerIDs

ref array<int> m_aLoadingPlayerIDs = {}
protected

Definition at line 19 of file SCR_CampaignSuppliesComponent.c.

◆ m_aUnloadingPlayerIDs

ref array<int> m_aUnloadingPlayerIDs = {}
protected

Definition at line 22 of file SCR_CampaignSuppliesComponent.c.

◆ m_bAwardUnloadXP

bool m_bAwardUnloadXP = true
protected

Definition at line 13 of file SCR_CampaignSuppliesComponent.c.

◆ m_bIsPlayerInRange

bool m_bIsPlayerInRange
protected

Definition at line 14 of file SCR_CampaignSuppliesComponent.c.

◆ m_bIsStandaloneDepot

bool m_bIsStandaloneDepot
protected

Definition at line 40 of file SCR_CampaignSuppliesComponent.c.

◆ m_fOperationalRadius

float m_fOperationalRadius
protected

Definition at line 37 of file SCR_CampaignSuppliesComponent.c.

◆ m_iSupplies

int m_iSupplies
protected

Definition at line 30 of file SCR_CampaignSuppliesComponent.c.

◆ m_iSuppliesMax

int m_iSuppliesMax
protected

Definition at line 34 of file SCR_CampaignSuppliesComponent.c.

◆ m_LastLoadedAt

Makes a vehicle able to carry Conflict resources.

◆ m_LastUnloadedAt

SCR_CampaignMilitaryBaseComponent m_LastUnloadedAt
protected

Definition at line 11 of file SCR_CampaignSuppliesComponent.c.

◆ m_LastXPAwardedAt

SCR_CampaignMilitaryBaseComponent m_LastXPAwardedAt
protected

Definition at line 12 of file SCR_CampaignSuppliesComponent.c.

◆ m_OnSuppliesChanged

ref ScriptInvoker m_OnSuppliesChanged = new ScriptInvoker()
protected

Definition at line 25 of file SCR_CampaignSuppliesComponent.c.

◆ m_OnSuppliesTruckDeleted

ref ScriptInvoker m_OnSuppliesTruckDeleted = new ScriptInvoker()
protected

Definition at line 26 of file SCR_CampaignSuppliesComponent.c.