DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionSplintTarget
+ Граф наследования:ActionSplintTarget:

Закрытые члены

void ActionSplintTarget ()
 
override void CreateConditionComponents ()
 
override void OnFinishProgressServer (ActionData action_data)
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
bool IsWearingSplint (PlayerBase player)
 
- Закрытые члены унаследованные от ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Подробное описание

Конструктор(ы)

◆ ActionSplintTarget()

void ActionSplintTarget ( )
inlineprivate
12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_BANDAGETARGET;
15 m_FullBody = true;
17 m_Text = "#fix_persons_fracture";
18 }
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
float m_SpecialtyWeight
Definition ActionBase.c:77
Definition ActionSplintTarget.c:2
int m_CommandUID
Definition AnimatedActionBase.c:143
m_CallbackClass
Definition AnimatedActionBase.c:145
Definition EntityAI.c:95
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CallbackClass, AnimatedActionBase::m_CommandUID, ActionBase::m_FullBody, ActionBase::m_SpecialtyWeight и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
46 {
47 PlayerBase ntarget = PlayerBase.Cast( target.GetObject() );
48 if (ntarget.GetBrokenLegs() != eBrokenLegs.BROKEN_LEGS || IsWearingSplint(ntarget))
49 {
50 return false;
51 }
52 return super.ActionCondition(player, target, item);
53
54 }
eBrokenLegs
Definition EBrokenLegs.c:2
bool IsWearingSplint(PlayerBase player)
Definition ActionSplintTarget.c:56
Definition PlayerBaseClient.c:2

Перекрестные ссылки IsWearingSplint().

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
21 {
24 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTMan.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

Перекрестные ссылки UAMaxDistances::DEFAULT, ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

◆ IsWearingSplint()

bool IsWearingSplint ( PlayerBase player)
inlineprivate
57 {
58 if ( player.GetItemOnSlot("Splint_Right") )
59 {
60 return true;
61 }
62 return false;
63 }

Используется в ActionCondition().

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprivate
27 {
28 PlayerBase ntarget = PlayerBase.Cast( action_data.m_Target.GetObject() );
29 if (CanReceiveAction(action_data.m_Target))
30 {
31 action_data.m_MainItem.TransferModifiers(ntarget);
32 ntarget.ApplySplint();
33
34 ItemBase new_item = ItemBase.Cast(ntarget.GetInventory().CreateInInventory("Splint_Applied"));
35 if ( new_item )
36 {
37 MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem,new_item,true,false,true);
38 action_data.m_MainItem.Delete();
39 }
40
41 ntarget.SetBrokenLegs(eBrokenLegs.BROKEN_LEGS_SPLINT);
42 }
43 }
bool CanReceiveAction(ActionTarget target)
Definition ActionBase.c:690
Definition InventoryItem.c:731

Перекрестные ссылки ActionBase::CanReceiveAction().


Объявления и описания членов класса находятся в файле: