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

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

void ToggleNVGActionInput (PlayerBase player)
 
override void UpdatePossibleActions (PlayerBase player, ActionTarget target, ItemBase item, int action_condition_mask)
 
override ActionBase GetAction ()
 

Закрытые данные

ref ActionTarget target_new
 

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

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

◆ ToggleNVGActionInput()

void ToggleNVGActionInput ( PlayerBase player)
inlineprivate
840 {
841 SetInput("UAToggleNVG");
842 m_InputType = ActionInputType.AIT_HOLDSINGLE;
843 m_Priority = 100;
844 }
ActionInputType
Definition ActionInput.c:2

Методы

◆ GetAction()

override ActionBase GetAction ( )
inlineprivate
902 {
903 return m_SelectAction;
904 }
NoIndicationActionInputBase m_SelectAction

Перекрестные ссылки m_SelectAction.

◆ UpdatePossibleActions()

override void UpdatePossibleActions ( PlayerBase player,
ActionTarget target,
ItemBase item,
int action_condition_mask )
inlineprivate
847 {
848 if( ForceActionCheck(player) )
849 {
850 m_SelectAction = m_ForcedActionData.m_Action;
851 return;
852 }
853 //ForceActionTarget(player.m_PlayerLightManager.
854
858 int i;
859
861 if ( player )
862 {
863 Mich2001Helmet helmet = Mich2001Helmet.Cast(player.FindAttachmentBySlotName("Headgear"));
864 NVGHeadstrap headstrap = NVGHeadstrap.Cast(player.FindAttachmentBySlotName("Eyewear"));
865 if ( helmet )
866 {
867 //m_MainItem = Headtorch_ColorBase.Cast(player.FindAttachmentBySlotName("Headgear"));
868 target_new = new ActionTarget(helmet, null, -1, vector.Zero, -1);
869 ForceActionTarget(target_new);
870 }
871 else if ( headstrap )
872 {
874 ForceActionTarget(target_new);
875 }
876 else
877 ClearForcedTarget();
878 }
879
880 target = m_ForcedTarget;
881 m_Target = m_ForcedTarget;
882
883 if(target && target.GetObject())
884 {
885 target.GetObject().GetActions(this.Type(), possible_actions);
887 {
888 for (i = 0; i < possible_actions.Count(); i++)
889 {
890 action = ActionBase.Cast(possible_actions.Get(i));
892 {
894 return;
895 }
896 }
897 }
898 }
899 }
ref ActionTarget m_Target
Definition ActionInput.c:15
class ActionTargets ActionTarget
class BaitData m_MainItem
Definition ActionBase.c:36
string Type
Definition JsonDataContaminatedArea.c:11
Definition ActionBase.c:53
Definition EntityAI.c:95
ref ActionTarget target_new
Definition ActionInput.c:837
Definition EnConvert.c:106
static const vector Zero
Definition EnConvert.c:110

Перекрестные ссылки ActionTarget, m_MainItem, m_SelectAction, m_Target, target_new, Type и vector::Zero.

Поля

◆ target_new

ref ActionTarget target_new
private

Используется в UpdatePossibleActions().


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