DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
SharpenStick.c
См. документацию.
1class SharpenStick extends RecipeBase
2{
3 override void Init()
4 {
5 m_Name = "#sharpen";
6 m_IsInstaRecipe = false; // should this recipe be performed instantly without animation
7 m_AnimationLength = 1; // animation length in relative time units
8
9 //conditions
10 m_MinDamageIngredient[0] = -1; // -1 = disable check
11 m_MaxDamageIngredient[0] = 3; // -1 = disable check
12 m_MinQuantityIngredient[0] = -1; // -1 = disable check
13 m_MaxQuantityIngredient[0] = -1; // -1 = disable check
14
19
20 //----------------------------------------------------------------------------------------------------------------------
21 //INGREDIENTS
22 //ingredient 1
23 InsertIngredient(0,"WoodenStick"); // you can insert multiple ingredients this way
24
25 m_IngredientAddHealth[0] = 0; // 0 = do nothing
26 m_IngredientSetHealth[0] = -1; // -1 = do nothing
27 m_IngredientAddQuantity[0] = 0; // 0 = do nothing
28 m_IngredientDestroy[0] = false; // true = destroy, false = do nothing
29
30 //ingredient 2
31 InsertIngredient(1,"Sickle");
32 InsertIngredient(1,"KukriKnife");
33 InsertIngredient(1,"FangeKnife");
34 InsertIngredient(1,"Hacksaw");
35 InsertIngredient(1,"KitchenKnife");
36 InsertIngredient(1,"SteakKnife");
37 InsertIngredient(1,"HayHook");
38 InsertIngredient(1,"StoneKnife");
39 InsertIngredient(1,"Cleaver");
40 InsertIngredient(1,"CombatKnife");
41 InsertIngredient(1,"Jambiya");
42 InsertIngredient(1,"HuntingKnife");
43 InsertIngredient(1,"Machete");
44 InsertIngredient(1,"CrudeMachete");
45 InsertIngredient(1,"OrientalMachete");
46 InsertIngredient(1,"Screwdriver");
47 InsertIngredient(1,"Crowbar");
48 InsertIngredient(1,"Pickaxe");
49 InsertIngredient(1,"WoodAxe");
50 InsertIngredient(1,"Hatchet");
51 InsertIngredient(1,"FirefighterAxe");
52 InsertIngredient(1,"Sword");
53 InsertIngredient(1,"AK_Bayonet");
54 InsertIngredient(1,"M9A1_Bayonet");
55 InsertIngredient(1,"Mosin_Bayonet");
56 InsertIngredient(1,"SKS_Bayonet");
57 InsertIngredient(1,"BoneKnife");
58 InsertIngredient(1,"Scimitar");
59 InsertIngredient(1,"DonerKnife");
60 InsertIngredient(1,"BrickTrowel");
61 InsertIngredient(1,"Akinaka");
62
67
68 //----------------------------------------------------------------------------------------------------------------------
69 //RESULTS
70 //result1
71 AddResult("Ammo_SharpStick");
72
75 m_ResultSetHealth[0] = -1;
78 m_ResultToInventory[0] = -2;
80 }
81
82 //final check for recipe's validity
83 override bool CanDo(ItemBase ingredients[], PlayerBase player)
84 {
85 return true;
86 }
87
88 //gets called upon recipe's completion
89 override void Do(ItemBase ingredients[], PlayerBase player,array<ItemBase> results, float specialty_weight)
90 {
91 for (int i=0; i < results.Count(); ++i)
92 {
93 MiscGameplayFunctions.TransferItemProperties(ingredients[0], results[i]);
94 }
95 }
96};
string m_Name
Определения 3_Game/DayZ/InventoryItemType.c:34
int m_ResultReplacesIngredient[MAXIMUM_RESULTS]
Определения RecipeBase.c:62
int m_ResultToInventory[MAXIMUM_RESULTS]
Определения RecipeBase.c:59
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:49
bool m_IsInstaRecipe
Определения RecipeBase.c:40
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:51
int m_ResultInheritsHealth[MAXIMUM_RESULTS]
Определения RecipeBase.c:60
void AddResult(string item)
Определения RecipeBase.c:198
int m_ResultInheritsColor[MAXIMUM_RESULTS]
Определения RecipeBase.c:61
float m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:45
float m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:44
float m_ResultSetQuantity[MAXIMUM_RESULTS]
Определения RecipeBase.c:56
bool m_ResultSetFullQuantity[MAXIMUM_RESULTS]
Определения RecipeBase.c:55
void InsertIngredient(int index, string ingredient, DayZPlayerConstants uid=BASE_CRAFT_ANIMATION_ID, bool showItem=false)
Определения RecipeBase.c:159
float m_ResultSetHealth[MAXIMUM_RESULTS]
Определения RecipeBase.c:57
float m_AnimationLength
Определения RecipeBase.c:38
float m_MaxDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:46
float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:50
float m_MinQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:43
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:52
Определения PlayerBaseClient.c:2
override bool CanDo(ItemBase ingredients[], PlayerBase player)
Определения SharpenStick.c:83
override void Do(ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
Определения SharpenStick.c:89
override void Init()
Определения SharpenStick.c:3
Определения AttachHolster.c:2
Result for an object found in CGame.IsBoxCollidingGeometryProxy.