DayZ 1.24
Loading...
Searching...
No Matches
ActionForceFeed.c File Reference

Go to the source code of this file.

Classes

class  ActionForceFeedCB
 
class  ActionForceFeedSmallCB
 
class  ActionForceFeedSmall
 

Functions

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

Variables

ActionForceFeedSmallCB ActionForceFeed
 

Function Documentation

◆ ActionCondition()

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

Definition at line 27 of file ActionForceFeed.c.

28 {
29 if (!super.ActionCondition(player, target, item))
30 return false;
31
32 PlayerBase targetPlayer = PlayerBase.Cast(target.GetObject());
33
34 return targetPlayer && targetPlayer.CanEatAndDrink();
35 }

◆ CreateActionComponent()

override void ActionForceFeed::CreateActionComponent ( )

Definition at line 12 of file ActionForceFeed.c.

12 {
13 m_CallbackClass = ActionForceFeedCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_FORCEFEED;
15 m_FullBody = true;
bool m_FullBody
Definition ActionBase.c:52
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References m_FullBody, m_StanceMask, and m_Text.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

Definition at line 20 of file ActionForceFeed.c.

21 {
24 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
Definition CCTMan.c:2
const float DEFAULT

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)

Definition at line 38 of file ActionForceFeed.c.

39 {
40 super.OnEndServer(action_data);
41
42 if (action_data.m_Player.HasBloodyHands() && !action_data.m_Player.GetInventory().FindAttachment(InventorySlots.GLOVES))
43 {
44 Object targetPlayer = action_data.m_Target.GetObject();
46 if (target)
47 target.SetBloodyHandsPenalty();
48 }
49 }
provides access to slot configuration

Variable Documentation

◆ ActionForceFeed

Definition at line 1 of file ActionForceFeed.c.

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 }
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53