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

DEPRECATED. Подробнее...

+ Граф наследования:ActionStripCarrierVest:

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

void ActionStripCarrierVest ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override bool HasTarget ()
 
override void OnFinishProgressServer (ActionData action_data)
 
- Закрытые члены унаследованные от 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)
 

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

DEPRECATED.

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

◆ ActionStripCarrierVest()

void ActionStripCarrierVest ( )
inlineprivate
13 {
15 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
16 m_FullBody = true;
17 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
19 m_Text = "#strip_vest";
20 }
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
float m_SpecialtyWeight
Definition ActionBase.c:77
int m_StanceMask
Definition ActionBase.c:62
Definition ActionStripCarrierVest.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_StanceMask и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
29 {
30 if ( item.GetNumberOfItems() > 0 )
31 {
32 return false;
33 }
34 return true;
35 }

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
23 {
26 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTNone.c:2

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

◆ HasTarget()

override bool HasTarget ( )
inlineprivate
38 {
39 return false;
40 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprivate
43 {
44 if ( action_data.m_MainItem && action_data.m_MainItem.GetHierarchyRootPlayer() == action_data.m_Player )
45 {
48 string itemName = action_data.m_MainItem.GetType();
50 results.Insert("PlateCarrierBlank");
51
52 switch (itemName)
53 {
54 case "PlateCarrierHolster":
55 results.Insert("CarrierHolsterSolo");
56 break
57
58 case "PlateCarrierPouches":
59 results.Insert("CarrierPouches");
60 break
61
62 case "PlateCarrierComplete":
63 results.Insert("CarrierPouches");
64 results.Insert("CarrierHolsterSolo");
65 break
66 }
67
68 for ( int i = 0; i < results.Count(); i++ )
69 {
70 object = EntityAI.Cast( GetGame().CreateObjectEx(results.Get(i), action_data.m_Player.GetPosition(), ECE_PLACE_ON_SURFACE) );
71 object.SetHealth("","",action_data.m_MainItem.GetHealth("",""));
72 }
73 action_data.m_MainItem.Delete();
74 action_data.m_MainItem = NULL;
75 }
76 }
const int ECE_PLACE_ON_SURFACE
Definition CentralEconomy.c:37
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition Building.c:6
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition IsBoxCollidingGeometryProxyClasses.c:28
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), ECE_PLACE_ON_SURFACE и GetGame().


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