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

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

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

class  ActionBandageSelfCB
 

Функции

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)
 

Функции

◆ ActionBandageSelf()

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 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionBandageSelf.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Используется в ActionConstructor::RegisterActions(), ItemBase::SetActions(), Bandana_ColorBase::SetActions() и Shemag_ColorBase::SetActions().

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
39 {
40 return player.IsBleeding();
41 }
Definition EntityAI.c:95

◆ CreateActionComponent()

override void CreateActionComponent ( )
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()
Definition ActionBandageSelf.c:27

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
28 {
29 m_ConditionItem = new CCINonRuined();
30 m_ConditionTarget = new CCTSelf();
31 }
Definition CCINonRuined.c:2
Definition CCTSelf.c:2

◆ HasTarget()

override bool HasTarget ( )
34 {
35 return false;
36 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
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)
Definition ActionSewSelf.c:47
Definition PlayerBaseClient.c:2

Перекрестные ссылки ActionBandageBase::ApplyBandage().