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

Go to the source code of this file.

Classes

class  ActionBandageSelfCB
 

Functions

ActionBandageSelfCB ActionContinuousBaseCB ActionBandageSelf ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 

Function Documentation

◆ ActionBandageSelf()

Definition at line 1 of file ActionBandageSelf.c.

18 {
19 m_CallbackClass = ActionBandageSelfCB;
20 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_BANDAGE;
21 m_FullBody = true;
22 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
23
24 m_Text = "#treat_wound";
25 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

Referenced by ActionConstructor::RegisterActions(), ItemBase::SetActions(), and Bandana_ColorBase::SetActions().

◆ ActionCondition()

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

Definition at line 38 of file ActionBandageSelf.c.

39 {
40 return player.IsBleeding();
41 }

◆ CreateActionComponent()

override void ActionBandageSelf::CreateActionComponent ( )

Definition at line 18 of file ActionBandageSelf.c.

18 {
19 m_CallbackClass = ActionBandageSelfCB;
20 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_BANDAGE;
21 m_FullBody = true;
22 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
23
24 m_Text = "#treat_wound";
25 }
26
27 override void CreateConditionComponents()
override void CreateConditionComponents()

References m_FullBody, m_StanceMask, and m_Text.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

Definition at line 27 of file ActionBandageSelf.c.

28 {
31 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasTarget()

override bool HasTarget ( )

Definition at line 33 of file ActionBandageSelf.c.

34 {
35 return false;
36 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

Definition at line 43 of file ActionBandageSelf.c.

44 {
45 PlayerBase target = PlayerBase.Cast(action_data.m_Player);
46 if (action_data.m_MainItem && target)
47 ApplyBandage(action_data.m_MainItem, target);
48 }
override void ApplyBandage(ItemBase item, PlayerBase player)

References ActionBandageBase::ApplyBandage().