DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionViewOptics
+ Граф наследования:ActionViewOptics:

Закрытые члены

void ActionViewOptics ()
 
override void CreateConditionComponents ()
 
override bool IsFullBody (PlayerBase player)
 
override bool IsCameraLockOnPerform ()
 
override bool HasProgress ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override bool ActionConditionContinue (ActionData action_data)
 
override void OnStartClient (ActionData action_data)
 
override void OnStartServer (ActionData action_data)
 
override void OnStartAnimationLoopServer (ActionData action_data)
 
override void OnStartAnimationLoopClient (ActionData action_data)
 
override void OnEndClient (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 
override void OnEndAnimationLoopClient (ActionData action_data)
 
override void OnEndAnimationLoopServer (ActionData action_data)
 
bool CanWork (ItemBase item)
 
void EnterOptics (ItemOptics optic, PlayerBase player)
 
void ExitOptics (ItemOptics optic, PlayerBase player)
 
- Закрытые члены унаследованные от ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Подробное описание

Конструктор(ы)

◆ ActionViewOptics()

void ActionViewOptics ( )
inlineprivate
4 {
6 m_CommandUID = DayZPlayerConstants.CMD_GESTUREFB_LOOKOPTICS;
7 m_CommandUIDProne = DayZPlayerConstants.CMD_GESTUREFB_LOOKOPTICS;
8 m_Text = "#Look_Through";
9 }
string m_Text
Definition ActionBase.c:58
Definition ActionViewCompass.c:2
int m_CommandUIDProne
Definition AnimatedActionBase.c:144
int m_CommandUID
Definition AnimatedActionBase.c:143
m_CallbackClass
Definition AnimatedActionBase.c:145
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CallbackClass, AnimatedActionBase::m_CommandUID, AnimatedActionBase::m_CommandUIDProne и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
38 {
40 if (Class.CastTo(optic, item) && !optic.IsInOptics() && !player.IsNVGLowered())
41 {
42 return true;
43 }
44 return false;
45 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition ItemOptics.c:2
Definition EntityAI.c:95
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo().

◆ ActionConditionContinue()

override bool ActionConditionContinue ( ActionData action_data)
inlineprivate
48 {
49 return true;
50 }

◆ CanWork()

bool CanWork ( ItemBase item)
inlineprivate
134 {
135 if (!item.HasEnergyManager())
136 {
137 return true;
138 }
139 else if (item.GetCompEM() && item.GetCompEM().CanWork())
140 {
141 return true;
142 }
143
144 return false;
145 }

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
12 {
15 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTNone.c:2

Перекрестные ссылки ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

◆ EnterOptics()

void EnterOptics ( ItemOptics optic,
PlayerBase player )
inlineprivate
148 {
149 player.SetIronsights(false);
150 player.SetHandheldOpticsInUse(true);
151 player.SetOptics(true);
152 optic.EnterOptics();
153 optic.HideSelection("hide");
154 if (optic.HasEnergyManager())
155 optic.GetCompEM().SwitchOn();
156 player.GetAimingModel().SetAimNoiseAllowed(false);
157 }

Используется в OnStartAnimationLoopClient() и OnStartAnimationLoopServer().

◆ ExitOptics()

void ExitOptics ( ItemOptics optic,
PlayerBase player )
inlineprivate
160 {
161 optic.ShowSelection("hide");
162 player.ExitSights();
163 player.SetHandheldOpticsInUse(false);
164 if (optic.HasEnergyManager())
165 optic.GetCompEM().SwitchOff();
166 player.GetAimingModel().SetAimNoiseAllowed(true);
167 }

Используется в OnEndAnimationLoopClient(), OnEndAnimationLoopServer(), OnEndClient() и OnEndServer().

◆ HasProgress()

override bool HasProgress ( )
inlineprivate
28 {
29 return false;
30 }

◆ HasTarget()

override bool HasTarget ( )
inlineprivate
33 {
34 return false;
35 }

◆ IsCameraLockOnPerform()

override bool IsCameraLockOnPerform ( )
inlineprivate
23 {
24 return false;
25 }

◆ IsFullBody()

override bool IsFullBody ( PlayerBase player)
inlineprivate
18 {
19 return true;
20 }

◆ OnEndAnimationLoopClient()

override void OnEndAnimationLoopClient ( ActionData action_data)
inlineprivate
116 {
118 if (Class.CastTo(optic, action_data.m_MainItem))
119 {
120 ExitOptics(optic, action_data.m_Player);
121 }
122 }
void ExitOptics(ItemOptics optic, PlayerBase player)
Definition ActionViewOptics.c:159

Перекрестные ссылки Class::CastTo() и ExitOptics().

◆ OnEndAnimationLoopServer()

override void OnEndAnimationLoopServer ( ActionData action_data)
inlineprivate
125 {
127 if (Class.CastTo(optic, action_data.m_MainItem))
128 {
129 ExitOptics(optic, action_data.m_Player);
130 }
131 }

Перекрестные ссылки Class::CastTo() и ExitOptics().

◆ OnEndClient()

override void OnEndClient ( ActionData action_data)
inlineprivate
92 {
94 if (Class.CastTo(optic, action_data.m_MainItem) && optic.IsInOptics())
95 {
96 ExitOptics(optic, action_data.m_Player);
97 }
98 GetGame().GetMission().RemoveActiveInputExcludes({"actonViewOpticExcl"});
99 }
proto native CGame GetGame()

Перекрестные ссылки Class::CastTo(), ExitOptics() и GetGame().

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)
inlineprivate
102 {
103 super.OnEndServer(action_data);
104
106 if (Class.CastTo(optic, action_data.m_MainItem) && optic.IsInOptics())
107 {
108 ExitOptics(optic, action_data.m_Player);
109 }
110
111 if (!GetGame().IsMultiplayer())
112 GetGame().GetMission().RemoveActiveInputExcludes({"actonViewOpticExcl"});
113 }

Перекрестные ссылки Class::CastTo(), ExitOptics() и GetGame().

◆ OnStartAnimationLoopClient()

override void OnStartAnimationLoopClient ( ActionData action_data)
inlineprivate
80 {
82 if (Class.CastTo(optic, action_data.m_MainItem))
83 {
84 if (!optic.IsInOptics())
85 {
86 EnterOptics(optic, action_data.m_Player);
87 }
88 }
89 }
void EnterOptics(ItemOptics optic, PlayerBase player)
Definition ActionViewOptics.c:147

Перекрестные ссылки Class::CastTo() и EnterOptics().

◆ OnStartAnimationLoopServer()

override void OnStartAnimationLoopServer ( ActionData action_data)
inlineprivate
68 {
70 if (Class.CastTo(optic, action_data.m_MainItem))
71 {
72 if (!optic.IsInOptics())
73 {
74 EnterOptics(optic, action_data.m_Player);
75 }
76 }
77 }

Перекрестные ссылки Class::CastTo() и EnterOptics().

◆ OnStartClient()

override void OnStartClient ( ActionData action_data)
inlineprivate
53 {
54 super.OnStartClient(action_data);
55
56 GetGame().GetMission().AddActiveInputExcludes({"actonViewOpticExcl"});
57 }

Перекрестные ссылки GetGame().

◆ OnStartServer()

override void OnStartServer ( ActionData action_data)
inlineprivate
60 {
61 super.OnStartServer(action_data);
62
63 if (!GetGame().IsMultiplayer())
64 GetGame().GetMission().AddActiveInputExcludes({"actonViewOpticExcl"});
65 }

Перекрестные ссылки GetGame().


Объявления и описания членов класса находятся в файле: