DayZ 1.24
Loading...
Searching...
No Matches
ActionForceFeedSmall Class Reference
Inheritance diagram for ActionForceFeedSmall:
[legend]
Collaboration diagram for ActionForceFeedSmall:
[legend]

Private Member Functions

void ActionForceFeed ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override string GetText ()
 

Detailed Description

Definition at line 63 of file ActionForceFeed.c.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 79 of file ActionForceFeed.c.

80 {
81 if (!super.ActionCondition(player, target, item))
82 return false;
83
84 PlayerBase targetPlayer = PlayerBase.Cast(target.GetObject());
85
86 return targetPlayer && targetPlayer.CanEatAndDrink();
87 }

◆ ActionForceFeed()

void ActionForceFeedSmall::ActionForceFeed ( )
inlineprivate

Definition at line 65 of file ActionForceFeed.c.

66 {
67 m_CallbackClass = ActionForceFeedSmallCB;
68 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_FORCEFEED;
69 m_FullBody = true;
70 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
71 }
bool m_FullBody
Definition ActionBase.c:52
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References m_FullBody, and m_StanceMask.

◆ CreateConditionComponents()

override void ActionForceFeedSmall::CreateConditionComponents ( )
inlineprivate

Definition at line 73 of file ActionForceFeed.c.

74 {
77 }
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.

◆ GetText()

override string ActionForceFeedSmall::GetText ( )
inlineprivate

Definition at line 90 of file ActionForceFeed.c.

91 {
92 return "#feed";
93 }

The documentation for this class was generated from the following file: