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

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

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

class  ActionCraftArmbandCB
 

Функции

ActionCraftArmbandCB ActionContinuousBaseCB ActionCraftArmband ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
override string GetSoundCategory (ActionData action_data)
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
33 {
34 return true;
35 }

◆ ActionCraftArmband()

12 {
13 m_CallbackClass = ActionCraftArmbandCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
17 m_SpecialtyWeight = UASoftSkillsWeight.PRECISE_LOW;
18 m_Text = "#STR_craftarmband0";
19 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionCraftArmband.c:2
Definition EntityAI.c:95
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateActionComponent()

override void CreateActionComponent ( )
12 {
13 m_CallbackClass = ActionCraftArmbandCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
22 {
23 m_ConditionItem = new CCINonRuined();
24 m_ConditionTarget = new CCTSelf();
25 }
Definition CCINonRuined.c:2
Definition CCTSelf.c:2

◆ GetSoundCategory()

override string GetSoundCategory ( ActionData action_data)
46 {
47 return "ImprovisedCloth_craft";
48 }

◆ HasTarget()

override bool HasTarget ( )
28 {
29 return false;
30 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
38 {
39 EntityAI armband = action_data.m_Player.SpawnEntityOnGroundPos("Armband_White", action_data.m_Player.GetPosition());
40 action_data.m_MainItem.AddQuantity(-1);
41
42 MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem, armband);
43 }
Definition Building.c:6