DayZ 1.27
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,"HuntingKnife");
42 InsertIngredient(1,"Machete");
43 InsertIngredient(1,"CrudeMachete");
44 InsertIngredient(1,"OrientalMachete");
45 InsertIngredient(1,"Screwdriver");
46 InsertIngredient(1,"Crowbar");
47 InsertIngredient(1,"Pickaxe");
48 InsertIngredient(1,"WoodAxe");
49 InsertIngredient(1,"Hatchet");
50 InsertIngredient(1,"FirefighterAxe");
51 InsertIngredient(1,"Sword");
52 InsertIngredient(1,"AK_Bayonet");
53 InsertIngredient(1,"M9A1_Bayonet");
54 InsertIngredient(1,"Mosin_Bayonet");
55 InsertIngredient(1,"SKS_Bayonet");
56 InsertIngredient(1,"BoneKnife");
57
62
63 //----------------------------------------------------------------------------------------------------------------------
64 //RESULTS
65 //result1
66 AddResult("Ammo_SharpStick");
67
70 m_ResultSetHealth[0] = -1;
73 m_ResultToInventory[0] = -2;
75 }
76
77 //final check for recipe's validity
78 override bool CanDo(ItemBase ingredients[], PlayerBase player)
79 {
80 return true;
81 }
82
83 //gets called upon recipe's completion
84 override void Do(ItemBase ingredients[], PlayerBase player,array<ItemBase> results, float specialty_weight)
85 {
86 for (int i=0; i < results.Count(); ++i)
87 {
88 MiscGameplayFunctions.TransferItemProperties(ingredients[0], results[i]);
89 }
90 }
91};
Определения InventoryItem.c:731
Определения PlayerBaseClient.c:2
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:36
int m_ResultToInventory[MAXIMUM_RESULTS]
Определения RecipeBase.c:43
override bool CanDo(ItemBase ingredients[], PlayerBase player)
Определения SharpenStick.c:78
string m_Name
Определения RecipeBase.c:17
float m_ResultSetHealth[MAXIMUM_RESULTS]
Определения RecipeBase.c:41
float m_ResultSetQuantity[MAXIMUM_RESULTS]
Определения RecipeBase.c:40
bool m_ResultSetFullQuantity[MAXIMUM_RESULTS]
Определения RecipeBase.c:39
bool m_IsInstaRecipe
Определения RecipeBase.c:24
override void Do(ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
Определения SharpenStick.c:84
void AddResult(string item)
Определения RecipeBase.c:174
int m_ResultReplacesIngredient[MAXIMUM_RESULTS]
Определения RecipeBase.c:46
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:33
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:35
int m_ResultInheritsHealth[MAXIMUM_RESULTS]
Определения RecipeBase.c:44
float m_MinQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:27
float m_AnimationLength
Определения RecipeBase.c:22
override void Init()
Определения SharpenStick.c:3
int m_ResultInheritsColor[MAXIMUM_RESULTS]
Определения RecipeBase.c:45
float m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:28
float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:34
float m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:29
float m_MaxDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:30
void InsertIngredient(int index, string ingredient, DayZPlayerConstants uid=DayZPlayerConstants.CMD_ACTIONFB_CRAFTING)
Определения RecipeBase.c:143
Определения RecipeBase.c:6
Result for an object found in CGame.IsBoxCollidingGeometryProxy.