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_ArmoredClothItemData.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
resourceName
ResourceName resourceName
Definition
SCR_AIGroup.c:66
SCR_EArmorLevels
SCR_EArmorLevels
Definition
SCR_EArmorLevels.c:4
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
BaseContainerTools
Definition
BaseContainerTools.c:13
BaseItemAttributeData
Definition
BaseItemAttributeData.c:13
Resource
Object holding reference to resource. In destructor release the resource.
Definition
Resource.c:25
ResourceName
Definition
ResourceName.c:13
SCR_Enum
Definition
SCR_Enum.c:2
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
EDamageType
EDamageType
Definition
EDamageType.c:13
scripts
GameCode
Components
InventorySystem
SCR_ArmoredClothItemData.c
Generated by
1.17.0