Dayz 1.25
Dayz Code 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 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
Definition ActionBandageSelf.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Используется в ActionConstructor::RegisterActions(), ItemBase::SetActions() и Bandana_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_FullBody, m_StanceMask и m_Text.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
28 {
31 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
Definition CCINonRuined.c:2
Definition CCTSelf.c:2

Перекрестные ссылки m_ConditionItem и m_ConditionTarget.

◆ 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().