Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkWaypointDeploySmokeCover.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
3class SCR_ScenarioFrameworkWaypointDeploySmokeCover : SCR_ScenarioFrameworkWaypointScripted
4{
5 [Attribute(defvalue: "10", uiwidget: UIWidgets.Slider, desc: "Radius in m")]
6 float m_fCompletionRadius;
7
8 [Attribute(defvalue: "{CE97215CE55CF734}Prefabs/AI/Waypoints/AIWaypoint_DeploySmokeCover.et", desc: "In Default, it will use specific prefab for each class, but here you can change it if you know what you are doing")]
9 ResourceName m_sWaypointPrefab;
10
11 [Attribute(defvalue: EAIWaypointCompletionType.All.ToString(), UIWidgets.ComboBox, "AI Waypoint Completion Type", "", ParamEnumArray.FromEnum(EAIWaypointCompletionType))]
12 EAIWaypointCompletionType m_eAIWaypointCompletionType;
13
14 [Attribute("2000", UIWidgets.SpinBox, "Waypoint priority level", "0 2000 1000")]
15 float m_fPriorityLevel;
16
17 [Attribute("1", UIWidgets.EditBox, desc: "Max number of grenades soldiers can use to deploy cover")]
18 int m_iMaxGrenadeCount;
19
20 [Attribute("0", UIWidgets.Flags, enums: ParamEnumArray.FromEnum(SCR_AIActivitySmokeCoverFeatureProperties))]
21 SCR_AIActivitySmokeCoverFeatureProperties m_SmokeCoverProperties;
22
23 //------------------------------------------------------------------------------------------------
24 override void SetupWaypoint(IEntity waypointEntity)
25 {
26 super.SetupWaypoint(waypointEntity);
27
28 SCR_DeploySmokeCoverWaypoint waypointDeploySmokeCover = SCR_DeploySmokeCoverWaypoint.Cast(waypointEntity);
29 if (!waypointDeploySmokeCover)
30 return;
31
32 waypointDeploySmokeCover.SetMaxGrenadeCount(m_iMaxGrenadeCount);
33 waypointDeploySmokeCover.SetSmokeCoverProperties(m_SmokeCoverProperties);
34 }
35
36 //------------------------------------------------------------------------------------------------
37 override void SetWaypointCompletionRadius(float radius)
38 {
39 m_fCompletionRadius = radius;
40 }
41
42 //------------------------------------------------------------------------------------------------
43 override float GetWaypointCompletionRadius()
44 {
45 return m_fCompletionRadius;
46 }
47
48 //------------------------------------------------------------------------------------------------
49 override void SetWaypointCompletionType(EAIWaypointCompletionType type)
50 {
51 m_eAIWaypointCompletionType = type;
52 }
53
54 //------------------------------------------------------------------------------------------------
55 override EAIWaypointCompletionType GetWaypointCompletionType()
56 {
57 return m_eAIWaypointCompletionType;
58 }
59
60 //------------------------------------------------------------------------------------------------
61 override void SetWaypointPriorityLevel(float priority)
62 {
63 m_fPriorityLevel = priority;
64 }
65
66 //------------------------------------------------------------------------------------------------
67 override float GetWaypointPriorityLevel()
68 {
69 return m_fPriorityLevel;
70 }
71
72 //------------------------------------------------------------------------------------------------
73 override void SetWaypointPrefab(ResourceName prefab)
74 {
75 m_sWaypointPrefab = prefab;
76 }
77
78 //------------------------------------------------------------------------------------------------
79 override ResourceName GetWaypointPrefab()
80 {
81 return m_sWaypointPrefab;
82 }
83}
SCR_AIActivitySmokeCoverFeatureProperties
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
EDamageType type
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute