DayZ 1.24
Loading...
Searching...
No Matches
ActionCraft.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
5 m_ActionData.m_ActionComponent = new CAContinuousCraft(0); //default value can be set in recipes
6 }
7};
8
10{
12
15
17
19 {
20 m_Sound = "craft_universal_0";
21
23 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
24 m_FullBody = true;
25 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
26
27 m_Text = "#craft";
28 }
29
35
36 //override void OnStart( ActionData action_data )
37 //{
38 /*
39 if( action_data.m_Player.GetCraftingMeta() )
40 {
41 m_Item1 = action_data.m_Player.GetCraftingMeta().GetIngredient1();
42 m_Item2 = action_data.m_Player.GetCraftingMeta().GetIngredient2();
43 m_RecipeID = action_data.m_Player.GetCraftingMeta().GetRecipeID();
44 if(m_Item1 == NULL || m_Item2 == NULL || m_RecipeID < 0) return;
45 }
46 */
47 //m_HasStarted = true;
48 //}
49
50 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
51 {
52 /*if( !m_HasStarted )
53 {
54 if ( player.IsCraftingSetUp() )
55 {
56 return true;
57 }
58 return false;
59 }
60 else
61 {
62 return true;
63 }*/
64 }
65
66
68 {
69 }
70
71
73 {
74 //action_data.m_Player.SetCraftingReady(false);
75 //action_data.m_Player.DisableCrafting();
76 }
77};
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
EffectSound m_Sound
ActionData m_ActionData
override void CreateActionComponent()
Definition ActionCraft.c:3
override void CreateConditionComponents()
Definition ActionCraft.c:30
void ActionCraft()
Definition ActionCraft.c:18
void CancelCraft(PlayerBase player)
Definition ActionCraft.c:72
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition ActionCraft.c:50
bool m_HasStarted
Definition ActionCraft.c:11
override void ApplyModifiers(ActionData action_data)
Definition ActionCraft.c:67
ItemBase m_Item2
Definition ActionCraft.c:14
ItemBase m_Item1
Definition ActionCraft.c:13
ref CABase m_ActionComponent
Definition ActionBase.c:30
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597