DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ActionZoomOut.c
См. документацию.
2{
4 {
5 m_Text = "#zoom_out";
6 }
7
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};
ActionBase ActionData
Определения ActionBase.c:30
class ActionTargets ActionTarget
string m_Text
Определения ActionBase.c:58
ref CCIBase m_ConditionItem
Определения ActionBase.c:64
ref CCTBase m_ConditionTarget
Определения ActionBase.c:65
void ActionSingleUseBase()
Определения ActionSingleUseBase.c:31
override bool HasTarget()
Определения ActionZoomOut.c:14
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения ActionZoomOut.c:19
override void CreateConditionComponents()
Определения ActionZoomOut.c:8
void ActionZoomOut()
Определения ActionZoomOut.c:3
override void OnEndServer(ActionData action_data)
Определения ActionZoomOut.c:29
Определения CCINonRuined.c:2
Определения CCTNone.c:2
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения InventoryItem.c:731
proto native bool ExitOptics()
switches out of optics mode (if possible)
proto native bool IsInOptics()
is weapon in optics mode or not
Определения ItemOptics.c:2
Определения PlayerBaseClient.c:2
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.