DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Init() [4/4]

override void PrepareAnimal::Init ( )
inlineprivate

См. определение в файле PrepareRabbit.c строка 3

4 {
5 super.Init();
6
7 //----------------------------------------------------------------------------------------------------------------------
8 //ingredient 1
9 InsertIngredient(0,"DeadRabbit"); //you can insert multiple ingredients this way
10 m_IngredientAddHealth[0] = 0; // 0 = do nothing
11 m_IngredientSetHealth[0] = -1; // -1 = do nothing
12 m_IngredientAddQuantity[0] = 0; // 0 = do nothing
13 m_IngredientDestroy[0] = true; // true = destroy, false = do nothing
14
15 //----------------------------------------------------------------------------------------------------------------------
16 //result1
17 AddResult("Bone");//add results here
18 m_ResultSetFullQuantity[0] = false; // true = set full quantity, false = do nothing
19 m_ResultSetQuantity[0] = -1; // -1 = do nothing
20 m_ResultSetHealth[0] = -1; // -1 = do nothing
21 m_ResultInheritsHealth[0] = 0; // (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
22 m_ResultInheritsColor[0] = -1; // (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
23 m_ResultToInventory[0] = -2; // (value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
24 m_ResultReplacesIngredient[0] = 0; // (value) == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
25
26 //result2
27 AddResult("RabbitPelt"); // add results here
28 m_ResultSetFullQuantity[1] = false; // true = set full quantity, false = do nothing
29 m_ResultSetQuantity[1] = -1; // -1 = do nothing
30 m_ResultSetHealth[1] = -1; // -1 = do nothing
31 m_ResultInheritsHealth[1] = 0; // (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
32 m_ResultInheritsColor[1] = -1; // (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
33 m_ResultToInventory[1] = -2; // (value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
34 m_ResultReplacesIngredient[1] = 0; // (value) == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
35 }
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
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_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_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:50
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:52

Перекрестные ссылки AddResult(), InsertIngredient(), m_IngredientAddHealth, m_IngredientAddQuantity, m_IngredientDestroy, m_IngredientSetHealth, m_ResultInheritsColor, m_ResultInheritsHealth, m_ResultReplacesIngredient, m_ResultSetFullQuantity, m_ResultSetHealth, m_ResultSetQuantity и m_ResultToInventory.