Dayz Explorer
1.29.162510
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
{
24
return
true
;
25
}
26
return
false
;
27
}
28
29
override
void
OnEndServer(
ActionData
action_data )
30
{
31
super.OnEndServer(action_data);
32
33
ItemOptics
optic;
34
if
(
Class
.CastTo(optic, action_data.m_MainItem) )
35
{
36
optic.ExitOptics();
37
}
38
}
39
};
ActionData
ActionBase ActionData
Definition
actionbase.c:30
ActionBase::HasTarget
bool HasTarget()
Definition
actionbase.c:250
ActionBase::m_Text
string m_Text
Definition
actionbase.c:64
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Definition
actionbase.c:70
ActionBase::CreateConditionComponents
void CreateConditionComponents()
Definition
actionbase.c:236
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
actionbase.c:71
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:742
ItemOptics
Definition
itemoptics.c:2
PlayerBase
Definition
playerbaseclient.c:2
Daten
4_world
classes
useractionscomponent
actions
singleuse
actionzoomout.c
Generated by
1.16.1