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_ScenarioFrameworkWaypointDeploySmokeCover.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
2
[
BaseContainerProps
()]
3
class
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_AIActivitySmokeCoverFeatureProperties
Definition
SCR_AIActivitySmokeCoverFeature.c:2
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
type
EDamageType type
Definition
SCR_DestructibleTreeV2.c:32
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
IEntity
Definition
IEntity.c:13
ResourceName
Definition
ResourceName.c:13
SCR_ScenarioFrameworkWaypointDeploySmokeCover
Definition
SCR_ScenarioFrameworkWaypointDeploySmokeCover.c:4
UIWidgets
Definition
attributes.c:40
EAIWaypointCompletionType
EAIWaypointCompletionType
Definition
EAIWaypointCompletionType.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Waypoints
SCR_ScenarioFrameworkWaypointDeploySmokeCover.c
Generated by
1.17.0