DayZ
1.24
Loading...
Searching...
No Matches
ActionZoomOut.c
Go to the documentation of this file.
1
class
ActionZoomOut
:
ActionSingleUseBase
2
{
3
void
ActionZoomOut
()
4
{
5
m_Text
=
"#zoom_out"
;
6
}
7
8
override
void
CreateConditionComponents
()
9
{
10
m_ConditionItem
=
new
CCINonRuined
;
11
m_ConditionTarget
=
new
CCTNone
;
12
}
13
14
override
bool
HasTarget
()
15
{
16
return
false
;
17
}
18
19
override
bool
ActionCondition
(
PlayerBase
player
, ActionTarget
target
,
ItemBase
item
)
20
{
21
ItemOptics
optic
;
22
if
(
Class
.
CastTo
(
optic
,
item
) &&
optic
.IsInOptics())
23
return
true
;
24
return
false
;
25
}
26
27
override
void
OnEndServer
(
ActionData
action_data
)
28
{
29
ItemOptics
optic
;
30
if
(
Class
.
CastTo
(
optic
,
action_data
.m_MainItem))
31
optic
.ExitOptics();
32
}
33
};
m_Text
string m_Text
Definition
ActionBase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition
ActionBase.c:55
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
ActionBase.c:56
ActionData
Definition
ActionBase.c:21
ActionSingleUseBase
Definition
ActionSingleUseBase.c:40
ActionZoomOut
Definition
ActionZoomOut.c:2
ActionZoomOut::HasTarget
override bool HasTarget()
Definition
ActionZoomOut.c:14
ActionZoomOut::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
ActionZoomOut.c:19
ActionZoomOut::CreateConditionComponents
override void CreateConditionComponents()
Definition
ActionZoomOut.c:8
ActionZoomOut::ActionZoomOut
void ActionZoomOut()
Definition
ActionZoomOut.c:3
ActionZoomOut::OnEndServer
override void OnEndServer(ActionData action_data)
Definition
ActionZoomOut.c:27
CCINonRuined
Definition
CCINonRuined.c:2
CCTNone
Definition
CCTNone.c:2
Class
Super root of all classes in Enforce script.
Definition
EnScript.c:11
ItemBase
Definition
InventoryItem.c:697
ItemOptics
Definition
ItemOptics.c:2
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
scripts
4_World
Classes
UserActionsComponent
Actions
SingleUse
ActionZoomOut.c
Generated by
1.10.0