Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkMedicalConditionTourniquet.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "If true, is satisfied by tourniquet on any HitZone.", defvalue: "1")]
5 bool m_bCanApplyTourniquetAnywhere;
6
7 [Attribute(desc: "Is satisfied by tourniquet in any specified HitZoneGroups.", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(ECharacterHitZoneGroup))]
8 ref array<ECharacterHitZoneGroup> m_aHitZonesGroups;
9
10 //------------------------------------------------------------------------------------------------
11 override bool Init(notnull SCR_ChimeraCharacter character, notnull SCR_CharacterDamageManagerComponent damageManager)
12 {
13 super.Init(character, damageManager);
14
15 if (m_bCanApplyTourniquetAnywhere)
16 SCR_Enum.GetEnumValues(ECharacterHitZoneGroup, m_aHitZonesGroups);
17
18 foreach (ECharacterHitZoneGroup hitZoneGroup : m_aHitZonesGroups)
19 {
20 if (damageManager.GetGroupTourniquetted(hitZoneGroup))
21 return true;
22 }
23
24 return false;
25 }
26}
override void Init()
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute