Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_RepairConfig.c
Go to the documentation of this file.
1
class
SCR_RepairConfig
:
ScriptAndConfig
2
{
3
[
Attribute
(
desc
:
"Configuration containing health above which system will try to apply the provided state when the vehicle is repaired"
,
category
:
"Repairs"
)]
4
protected
ref array<ref SCR_HealthAndBurn>
m_aSmokeRemovalHealthPercentage
;
5
6
//------------------------------------------------------------------------------------------------
11
bool
GetBurnStateForHealth
(
float
health, out
SCR_EBurningState
state)
12
{
13
SCR_HealthAndBurn
chosenConfig;
14
foreach
(
SCR_HealthAndBurn
config :
m_aSmokeRemovalHealthPercentage
)
15
{
16
if
(!chosenConfig && config.
GetPercentage
() <= health)
17
{
18
chosenConfig = config;
19
continue
;
20
}
21
22
if
(chosenConfig && config.
GetPercentage
() > chosenConfig.
GetPercentage
())
23
chosenConfig = config;
24
}
25
26
if
(!chosenConfig)
27
{
28
state =
SCR_EBurningState
.NONE;
29
return
false
;
30
}
31
32
state = chosenConfig.
GetState
();
33
return
true
;
34
}
35
}
SCR_EBurningState
SCR_EBurningState
Definition
SCR_FlammableHitZone.c:4
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
SCR_HealthAndBurn
Definition
SCR_HealthAndBurn.c:2
SCR_HealthAndBurn::GetPercentage
float GetPercentage()
Definition
SCR_HealthAndBurn.c:11
SCR_HealthAndBurn::GetState
SCR_EBurningState GetState()
Definition
SCR_HealthAndBurn.c:18
SCR_RepairConfig
Definition
SCR_RepairConfig.c:2
SCR_RepairConfig::m_aSmokeRemovalHealthPercentage
ref array< ref SCR_HealthAndBurn > m_aSmokeRemovalHealthPercentage
Definition
SCR_RepairConfig.c:4
SCR_RepairConfig::GetBurnStateForHealth
bool GetBurnStateForHealth(float health, out SCR_EBurningState state)
Definition
SCR_RepairConfig.c:11
ScriptAndConfig
Definition
Types.c:124
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Damage
SCR_RepairConfig.c
Generated by
1.17.0