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

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

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

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

ref ActionTarget targetNew
 

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

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

◆ CarHornShortActionInput()

void CarHornShortActionInput ( PlayerBase player)
inlineprivate
664 {
665 SetInput("UACarHorn");
666 m_InputType = ActionInputType.AIT_SINGLE;
667 m_Priority = 100;
668 m_DetectFromItem = false;
669 m_DetectFromTarget = false;
670 m_DetectFromPlayer = false;
671 }
void SetInput(ActionInput ai)
Definition ActionBase.c:208
ActionInputType
Definition ActionInput.c:2
int m_Priority
Definition BiosLobbyService.c:34

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

Методы

◆ GetAction()

override ActionBase GetAction ( )
inlineprivate
728 {
729 return m_SelectAction;
730 }
NoIndicationActionInputBase m_SelectAction

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

◆ UpdatePossibleActions()

override void UpdatePossibleActions ( PlayerBase player,
ActionTarget target,
ItemBase item,
int action_condition_mask )
inlineprivate
674 {
675 if (ForceActionCheck(player))
676 {
677 m_SelectAction = m_ForcedActionData.m_Action;
678 return;
679 }
680
683 ActionBase action;
684 int i;
685
687 if (player && player.IsInVehicle())
688 {
689 HumanCommandVehicle vehCommand = player.GetCommand_Vehicle();
690 if (vehCommand)
691 {
692 Transport trans = vehCommand.GetTransport();
693 if (trans)
694 {
695 targetNew = new ActionTarget(trans, null, -1, vector.Zero, -1);
696 ForceActionTarget(targetNew);
697 }
698 }
699
700 if (!targetNew)
701 {
702 ClearForcedTarget();
703 }
704 }
705
706 target = m_ForcedTarget;
707 m_Target = m_ForcedTarget;
708
709 if (target && target.GetObject())
710 {
711 target.GetObject().GetActions(this.Type(), possibleActions);
712 if (possibleActions)
713 {
714 for (i = 0; i < possibleActions.Count(); i++)
715 {
716 action = ActionBase.Cast(possibleActions.Get(i));
718 {
720 return;
721 }
722 }
723 }
724 }
725 }
enum ActionConditionMask m_MainItem
ref ActionTarget m_Target
Definition ActionInput.c:15
class ActionTargets ActionTarget
string Type
Definition JsonDataContaminatedArea.c:11
ref ActionTarget targetNew
Definition ActionInput.c:661
Definition human.c:690
Definition EntityAI.c:95
Base native class for all motorized wheeled vehicles.
Definition Car.c:80
Definition EnConvert.c:106
static const vector Zero
Definition EnConvert.c:110

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

Поля

◆ targetNew

ref ActionTarget targetNew
private

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


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