Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_DamagePassRule.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
2 [BaseContainerProps(), SCR_DamagePassRuleContainerTitle()]
4 {
5  [Attribute(uiwidget: UIWidgets.SearchComboBox, enums: ParamEnumArray.FromEnum(EDamageState))]
6  ref array<EDamageState> m_aDamageStates;
7 
8  [Attribute(uiwidget: UIWidgets.SearchComboBox, enums: ParamEnumArray.FromEnum(EDamageType))]
9  ref array<EDamageType> m_aSourceDamageTypes;
10 
11  [Attribute(uiwidget: UIWidgets.SearchComboBox, enums: ParamEnumArray.FromEnum(EDamageType))]
12  EDamageType m_eOutputDamageType;
13 
14  [Attribute()]
15  float m_fMultiplier;
16 
17  [Attribute(uiwidget: UIWidgets.CheckBox)]
18  bool m_bAllowDOT;
19 
20  [Attribute(uiwidget: UIWidgets.CheckBox)]
21  bool m_bPassToRoot;
22 
23  [Attribute(uiwidget: UIWidgets.CheckBox)]
24  bool m_bPassToParent;
25 
26  [Attribute(uiwidget: UIWidgets.CheckBox)]
27  bool m_bPassToDefaultHitZone;
28 }
29 
30 //------------------------------------------------------------------------------------------------
31 class SCR_DamagePassRuleContainerTitle : BaseContainerCustomTitle
32 {
33  //------------------------------------------------------------------------------------------------
34  override bool _WB_GetCustomTitle(BaseContainer source, out string title)
35  {
36  title = string.Empty;
37 
38  int type;
39  if (source.Get("m_eOutputDamageType", type))
40  title = "Pass as " + SCR_Enum.GetEnumName(EDamageType, type);
41 
42  float multiplier;
43  if (source.Get("m_fMultiplier", multiplier))
44  title += " x " + multiplier.ToString(-1, 3);
45 
46  bool dot;
47  if (source.Get("m_bAllowDOT", dot) && dot)
48  title += ", DOT";
49 
50  bool root;
51  if (source.Get("m_bPassToRoot", root) && root)
52  title += ", root";
53 
54  bool parent;
55  if (source.Get("m_bPassToParent", parent) && parent)
56  title += ", parent";
57 
58  bool defaultHitZone;
59  if (source.Get("m_bPassToDefaultHitZone", defaultHitZone) && defaultHitZone)
60  title += ", defaultHitZone";
61 
62  return true;
63  }
64 }
65 
SCR_Enum
Definition: SCR_Enum.c:1
EDamageState
EDamageState
Definition: EDamageState.c:12
Attribute
typedef Attribute
Post-process effect of scripted camera.
_WB_GetCustomTitle
class SCR_DamagePassRule _WB_GetCustomTitle(BaseContainer source, out string title)
Definition: SCR_DamagePassRule.c:34
type
EDamageType type
Definition: SCR_DestructibleTreeV2.c:32
EDamageType
EDamageType
Definition: EDamageType.c:12
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468
SCR_DamagePassRule
Definition: SCR_DamagePassRule.c:3