Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ArmoredClothItemData.c
Go to the documentation of this file.
2class SCR_ArmoredClothItemData : BaseItemAttributeData
3{
4 [Attribute("Only hitzones listed here will be affected by this item (by HitZoneName)", params: "")]
5 ref array<string> m_aProtectedHitZones;
6
7 [Attribute("0", UIWidgets.ComboBox, "EDamageTypes against which the hitzones will be protected", enums: ParamEnumArray.FromEnum(EDamageType))]
8 ref array<EDamageType> m_aProtectedDamageTypes;
9
10 [Attribute(defvalue: SCR_Enum.GetDefault(SCR_EArmorLevels.NONE), uiwidget: UIWidgets.ComboBox, "Armor protection level", enums: ParamEnumArray.FromEnum(SCR_EArmorLevels))]
11 SCR_EArmorLevels m_eProtection;
12
13 [Attribute("", uiwidget: UIWidgets.ResourcePickerThumbnail, "Alternative material to replace flesh on hitzone", params: "gamemat")]
14 ResourceName m_MaterialResourceName;
15
16 ref Resource m_Material;
17
18 //------------------------------------------------------------------------------------------------
19 void SCR_ArmoredClothItemData(SCR_EArmorLevels protection, array<string> protectedHitZones, array<EDamageType> protectedDamageTypes, ResourceName resourceName)
20 {
21 m_eProtection = protection;
22 m_aProtectedHitZones = protectedHitZones;
23 m_aProtectedDamageTypes = protectedDamageTypes;
24
25 if (resourceName.IsEmpty())
26 return;
27
28 Resource holder = BaseContainerTools.LoadContainer(resourceName);
29 if (!holder || !holder.IsValid())
30 return;
31
32 m_Material = holder;
33 }
34}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
ResourceName resourceName
Definition SCR_AIGroup.c:66
SCR_EArmorLevels
Object holding reference to resource. In destructor release the resource.
Definition Resource.c:25
SCR_FieldOfViewSettings Attribute
EDamageType
Definition EDamageType.c:13