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

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

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

class  ActionDeCraftRopeBeltCB
 

Функции

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

Переменные

const float TIME_TO_CRAFT_CLOTHES = 5.0
 DEPRECATED.
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
32 {
33 return item.GetInventory().AttachmentCount() == 0;
34 }
Definition EntityAI.c:95

◆ ActionDeCraftRopeBelt()

15 {
16 m_CallbackClass = ActionDeCraftRopeBeltCB;
17 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
18 m_FullBody = true;
19 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
20 m_SpecialtyWeight = UASoftSkillsWeight.ROUGH_HIGH;
21
22 m_Text = "#STR_DeCraftRopeBelt";
23 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionDeCraftRopeBelt.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateActionComponent()

override void CreateActionComponent ( )
15 {
16 m_CallbackClass = ActionDeCraftRopeBeltCB;
17 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
18 m_FullBody = true;

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
26 {
27 m_ConditionItem = new CCINonRuined();
28 m_ConditionTarget = new CCTNone();
29 }
Definition CCINonRuined.c:2
Definition CCTNone.c:2

◆ HasTarget()

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

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
42 {
43 EntityAI ropebelt = action_data.m_MainItem;
44
45 EntityAI rope = action_data.m_Player.SpawnEntityOnGroundPos("Rope", action_data.m_Player.GetPosition());
46 action_data.m_MainItem.Delete();
47
48 MiscGameplayFunctions.TransferItemProperties(ropebelt, rope);
49 }
Definition Building.c:6

Переменные

◆ TIME_TO_CRAFT_CLOTHES

const float TIME_TO_CRAFT_CLOTHES = 5.0
private

DEPRECATED.