Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_RepairConfig.c
Go to the documentation of this file.
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;
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
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_EBurningState GetState()
ref array< ref SCR_HealthAndBurn > m_aSmokeRemovalHealthPercentage
bool GetBurnStateForHealth(float health, out SCR_EBurningState state)
SCR_FieldOfViewSettings Attribute