DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл ActionForceFeed.c

См. исходные тексты.

Структуры данных

class  ActionForceFeedCB
 
class  ActionForceFeedSmallCB
 
class  ActionForceFeedSmall
 

Функции

override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnEndServer (ActionData action_data)
 

Переменные

ActionForceFeedSmallCB ActionForceFeed
 

Функции

◆ ActionCondition()

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

◆ CreateActionComponent()

override void CreateActionComponent ( )
12 {
13 m_CallbackClass = ActionForceFeedCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_FORCEFEED;
15 m_FullBody = true;
int m_CommandUID
Definition ActionBase.c:31
Definition ActionForceFeed.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
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.

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)
41 {
42 super.OnEndServer(action_data);
43
44 if (action_data.m_Player.HasBloodyHands() && !action_data.m_Player.GetInventory().FindAttachment(InventorySlots.GLOVES))
45 {
46 Object targetPlayer = action_data.m_Target.GetObject();
48 if (target)
49 {
50 target.SetBloodyHandsPenalty();
51 }
52 }
53 }
provides access to slot configuration
Definition InventorySlots.c:6
Definition ObjectTyped.c:2

Переменные

◆ ActionForceFeed

12 {
13 m_CallbackClass = ActionForceFeedCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_FORCEFEED;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
17 m_Text = "#feed";
18 }
int m_StanceMask
Definition ActionBase.c:33