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

Защищенные члены

void PlaySound (PlayerBase player)
 

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

void ActionForceDrink ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 

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

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

◆ ActionForceDrink()

void ActionForceDrink ( )
inlineprivate
12 {
13 m_CallbackClass = ActionForceDrinkCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_EMPTY_VESSEL;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
17 m_Text = "#give_drink";
18 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionForceDrink.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки m_CommandUID и m_StanceMask.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
27 {
28 if (!super.ActionCondition( player, target, item))
29 return false;
30
31 PlayerBase target_player = PlayerBase.Cast(target.GetObject());
32
33 if (target_player)
34 return target_player.CanEatAndDrink();
35 else
36 return false;
37 }
Definition EntityAI.c:95
Definition PlayerBaseClient.c:2

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
21 {
22 m_ConditionTarget = new CCTMan(UAMaxDistances.DEFAULT);
23 m_ConditionItem = new CCINonRuined;
24 }
Definition CCINonRuined.c:2
Definition CCTMan.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

Перекрестные ссылки UAMaxDistances::DEFAULT.

◆ PlaySound()

void PlaySound ( PlayerBase player)
inlineprotected
40 {
41 if (player)
42 player.RequestSoundEventEx(EPlayerSoundEventID.FORCE_DRINK);
43 }
EPlayerSoundEventID
Definition PlayerSoundEventHandler.c:2

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