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

Go to the source code of this file.

Data Structures

class  SCR_CampaignServiceEntityComponentClass
 

Macros

#define ENABLE_BASE_DESTRUCTION
 

Functions

SCR_CampaignServiceEntityComponentClass ScriptComponentClass Attribute ("50", UIWidgets.Slider, "How much of service operability this entity represents", "0 100 1")] protected int m_iEntityOperabilityPart
 How much is the service operability reduced when this entity is destroyed. More...
 
override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 
override void EOnInit (IEntity owner)
 
void EvaluateHit ()
 
void RepairEntity ()
 Repair entity (called on Server) More...
 
bool IsProxy ()
 
int GetRepairCost ()
 
void SetHitEvaluation (bool canEvaluate)
 

Variables

protected int m_iRepairCost
 Cost of repair. More...
 
protected SCR_CampaignServiceCompositionComponent m_ServiceCompositionComp
 
protected SCR_DestructionMultiPhaseComponent m_DestMultiComp
 
protected bool m_bCanEvaluateHit = true
 
protected RplComponent m_RplComponent
 

Macro Definition Documentation

◆ ENABLE_BASE_DESTRUCTION

#define ENABLE_BASE_DESTRUCTION

Definition at line 1 of file SCR_CampaignServiceEntityComponent.c.

Function Documentation

◆ Attribute()

SCR_CampaignServiceEntityComponentClass ScriptComponentClass Attribute ( "50"  ,
UIWidgets.  Slider,
"How much of service operability this entity represents"  ,
"0 100 1"   
)

How much is the service operability reduced when this entity is destroyed.

◆ EvaluateHit()

void EvaluateHit ( )

Definition at line 50 of file SCR_CampaignServiceEntityComponent.c.

◆ GetRepairCost()

int GetRepairCost ( )
Returns
cost of repair

Definition at line 92 of file SCR_CampaignServiceEntityComponent.c.

◆ IsProxy()

bool IsProxy ( )
Returns
if is proxy or not

Definition at line 85 of file SCR_CampaignServiceEntityComponent.c.

◆ RepairEntity()

void RepairEntity ( )

Repair entity (called on Server)

Definition at line 71 of file SCR_CampaignServiceEntityComponent.c.

◆ SetHitEvaluation()

void SetHitEvaluation ( bool  canEvaluate)

Prevent multiple executions of onDamage event

Parameters
[in]canEvaluate

Definition at line 100 of file SCR_CampaignServiceEntityComponent.c.

Variable Documentation

◆ m_bCanEvaluateHit

protected bool m_bCanEvaluateHit = true

Definition at line 19 of file SCR_CampaignServiceEntityComponent.c.

◆ m_DestMultiComp

protected SCR_DestructionMultiPhaseComponent m_DestMultiComp

Definition at line 18 of file SCR_CampaignServiceEntityComponent.c.

◆ m_iRepairCost

protected int m_iRepairCost

Cost of repair.

Definition at line 15 of file SCR_CampaignServiceEntityComponent.c.

◆ m_RplComponent

protected RplComponent m_RplComponent

Definition at line 20 of file SCR_CampaignServiceEntityComponent.c.

◆ m_ServiceCompositionComp

protected SCR_CampaignServiceCompositionComponent m_ServiceCompositionComp

Definition at line 17 of file SCR_CampaignServiceEntityComponent.c.