mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Add carrot and potato
Models made by @Helion4
This commit is contained in:
@@ -89,7 +89,7 @@ class FoodRaw : FoodEdible
|
|||||||
bloodRegen = 200;
|
bloodRegen = 200;
|
||||||
Nutrition[] = {282,0,0,0};
|
Nutrition[] = {282,0,0,0};
|
||||||
|
|
||||||
infectionChance = 0.1;
|
infectionChance = 0.7;
|
||||||
};
|
};
|
||||||
|
|
||||||
//Cooked food base class
|
//Cooked food base class
|
||||||
@@ -102,6 +102,7 @@ class FoodCooked : FoodEdible
|
|||||||
#include "PackagedFood.hpp"
|
#include "PackagedFood.hpp"
|
||||||
#include "Meat.hpp"
|
#include "Meat.hpp"
|
||||||
#include "Fish.hpp"
|
#include "Fish.hpp"
|
||||||
|
#include "Plants.hpp"
|
||||||
|
|
||||||
#include "Soda.hpp"
|
#include "Soda.hpp"
|
||||||
#include "WaterBottle.hpp"
|
#include "WaterBottle.hpp"
|
||||||
|
|||||||
@@ -440,57 +440,4 @@ class FoodBioMeat: FoodEdible
|
|||||||
descriptionShort = $STR_FOOD_NAME_BIOMEAT_DESC;
|
descriptionShort = $STR_FOOD_NAME_BIOMEAT_DESC;
|
||||||
bloodRegen = 1600;
|
bloodRegen = 1600;
|
||||||
infectionChance = 0.4;
|
infectionChance = 0.4;
|
||||||
};
|
|
||||||
|
|
||||||
class equip_garlic_bulb : FoodEdible
|
|
||||||
{
|
|
||||||
scope = 2;
|
|
||||||
count = 1;
|
|
||||||
displayName = $STR_ITEM_NAME_equip_garlic_bulb;
|
|
||||||
descriptionShort = $STR_ITEM_DESC_equip_garlic_bulb;
|
|
||||||
model = "\z\addons\dayz_communityassets\models\herb_garlic_bulb.p3d";
|
|
||||||
picture = "\z\addons\dayz_communityassets\pictures\equip_garlic_bulb_ca.paa";
|
|
||||||
bloodRegen = 80;
|
|
||||||
};
|
|
||||||
|
|
||||||
// new DZE harvested food
|
|
||||||
class FoodPumpkin : FoodEdible
|
|
||||||
{
|
|
||||||
scope = 2;
|
|
||||||
count = 1;
|
|
||||||
bloodRegen = 100;
|
|
||||||
displayName = $STR_FOOD_NAME_PUMPKIN;
|
|
||||||
descriptionShort = $STR_FOOD_NAME_PUMPKIN;
|
|
||||||
weight = 1;
|
|
||||||
model = "z\addons\dayz_communityassets\models\pistachio.p3d"; // TODO: model + icon
|
|
||||||
picture = "\z\addons\dayz_communityassets\pictures\equip_pistachios_CA.paa";
|
|
||||||
|
|
||||||
class ItemActions
|
|
||||||
{
|
|
||||||
class Consume
|
|
||||||
{
|
|
||||||
text = $STR_EAT_FOOD;
|
|
||||||
script = "spawn player_consume";
|
|
||||||
};
|
|
||||||
class Crafting
|
|
||||||
{
|
|
||||||
text = $STR_FOOD_NAME_PUMPKIN_CRAFT;
|
|
||||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
|
||||||
neednearby[] = {""};
|
|
||||||
requiretools[] = {"ItemKnife"};
|
|
||||||
output[] = {{"ItemPumpkinSeed",5}};
|
|
||||||
input[] = {{"FoodPumpkin",1}};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
class FoodSunFlowerSeed : FoodEdible
|
|
||||||
{
|
|
||||||
scope = 2;
|
|
||||||
count = 1;
|
|
||||||
bloodRegen = 100;
|
|
||||||
displayName = $STR_FOOD_NAME_SUNFLOWER;
|
|
||||||
descriptionShort = $STR_FOOD_NAME_SUNFLOWER;
|
|
||||||
weight = 0.1;
|
|
||||||
model = "z\addons\dayz_communityassets\models\pistachio.p3d"; // TODO: model + icon
|
|
||||||
picture = "\z\addons\dayz_communityassets\pictures\equip_pistachios_CA.paa";
|
|
||||||
};
|
};
|
||||||
92
SQF/dayz_code/Configs/CfgMagazines/Consumables/Plants.hpp
Normal file
92
SQF/dayz_code/Configs/CfgMagazines/Consumables/Plants.hpp
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
class equip_garlic_bulb : FoodEdible
|
||||||
|
{
|
||||||
|
scope = 2;
|
||||||
|
count = 1;
|
||||||
|
displayName = $STR_ITEM_NAME_equip_garlic_bulb;
|
||||||
|
descriptionShort = $STR_ITEM_DESC_equip_garlic_bulb;
|
||||||
|
model = "\z\addons\dayz_communityassets\models\herb_garlic_bulb.p3d";
|
||||||
|
picture = "\z\addons\dayz_communityassets\pictures\equip_garlic_bulb_ca.paa";
|
||||||
|
bloodRegen = 80;
|
||||||
|
};
|
||||||
|
|
||||||
|
class FoodPumpkin : FoodEdible
|
||||||
|
{
|
||||||
|
scope = 2;
|
||||||
|
count = 1;
|
||||||
|
bloodRegen = 100;
|
||||||
|
displayName = $STR_FOOD_NAME_PUMPKIN;
|
||||||
|
descriptionShort = $STR_FOOD_NAME_PUMPKIN;
|
||||||
|
weight = 1;
|
||||||
|
model = "z\addons\dayz_communityassets\models\pistachio.p3d"; // TODO: model + icon
|
||||||
|
picture = "\z\addons\dayz_communityassets\pictures\equip_pistachios_CA.paa";
|
||||||
|
|
||||||
|
class ItemActions
|
||||||
|
{
|
||||||
|
class Consume
|
||||||
|
{
|
||||||
|
text = $STR_EAT_FOOD;
|
||||||
|
script = "spawn player_consume";
|
||||||
|
};
|
||||||
|
class Crafting
|
||||||
|
{
|
||||||
|
text = $STR_FOOD_NAME_PUMPKIN_CRAFT;
|
||||||
|
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||||
|
neednearby[] = {""};
|
||||||
|
requiretools[] = {"ItemKnife"};
|
||||||
|
output[] = {{"ItemPumpkinSeed",5}};
|
||||||
|
input[] = {{"FoodPumpkin",1}};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
class FoodSunFlowerSeed : FoodEdible
|
||||||
|
{
|
||||||
|
scope = 2;
|
||||||
|
count = 1;
|
||||||
|
bloodRegen = 100;
|
||||||
|
displayName = $STR_FOOD_NAME_SUNFLOWER;
|
||||||
|
descriptionShort = $STR_FOOD_NAME_SUNFLOWER;
|
||||||
|
weight = 0.1;
|
||||||
|
model = "z\addons\dayz_communityassets\models\pistachio.p3d"; // TODO: model + icon
|
||||||
|
picture = "\z\addons\dayz_communityassets\pictures\equip_pistachios_CA.paa";
|
||||||
|
};
|
||||||
|
|
||||||
|
class FoodPotatoRaw : FoodRaw
|
||||||
|
{
|
||||||
|
scope = 2;
|
||||||
|
count = 1;
|
||||||
|
displayName = $STR_FOOD_NAME_POTATO;
|
||||||
|
descriptionShort = $STR_FOOD_NAME_POTATO;
|
||||||
|
weight = 0.1;
|
||||||
|
model = "\z\addons\dayz_epoch_w\items\veges\dze_potato.p3d";
|
||||||
|
picture = "\z\addons\dayz_communityassets\pictures\equip_pistachios_CA.paa";
|
||||||
|
bloodRegen = 0;
|
||||||
|
Nutrition[] = {0,0,0,0};
|
||||||
|
cookOutput = "FoodPotatoBaked";
|
||||||
|
};
|
||||||
|
|
||||||
|
class FoodPotatoBaked : FoodCooked
|
||||||
|
{
|
||||||
|
scope = 2;
|
||||||
|
count = 1;
|
||||||
|
displayName = $STR_FOOD_NAME_POTATO_BAKED;
|
||||||
|
descriptionShort = $STR_FOOD_NAME_POTATO_BAKED;
|
||||||
|
weight = 0.1;
|
||||||
|
model = "\z\addons\dayz_epoch_w\items\veges\dze_potato.p3d";
|
||||||
|
picture = "\z\addons\dayz_communityassets\pictures\equip_pistachios_CA.paa";
|
||||||
|
bloodRegen = 200;
|
||||||
|
Nutrition[] = {250,0,0,0};
|
||||||
|
};
|
||||||
|
|
||||||
|
class FoodCarrot : FoodCooked
|
||||||
|
{
|
||||||
|
scope = 2;
|
||||||
|
count = 1;
|
||||||
|
displayName = $STR_FOOD_NAME_CARROT;
|
||||||
|
descriptionShort = $STR_FOOD_NAME_CARROT;
|
||||||
|
weight = 0.1;
|
||||||
|
model = "\z\addons\dayz_epoch_w\items\veges\dze_carrot.p3d";
|
||||||
|
picture = "\z\addons\dayz_communityassets\pictures\equip_pistachios_CA.paa";
|
||||||
|
bloodRegen = 150;
|
||||||
|
Nutrition[] = {120,0,0,0};
|
||||||
|
};
|
||||||
@@ -25280,6 +25280,18 @@
|
|||||||
<German>Säckchen Sonnenblumensamen</German>
|
<German>Säckchen Sonnenblumensamen</German>
|
||||||
<Russian>Мешочек семечек</Russian>
|
<Russian>Мешочек семечек</Russian>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_FOOD_NAME_POTATO">
|
||||||
|
<English>Potato</English>
|
||||||
|
<German>Kartoffel</German>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_FOOD_NAME_POTATO_BAKED">
|
||||||
|
<English>Baked Potato</English>
|
||||||
|
<German>Gebackene Kartoffel</German>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_FOOD_NAME_CARROT">
|
||||||
|
<English>Carrot</English>
|
||||||
|
<German>Karotte</German>
|
||||||
|
</Key>
|
||||||
<Key ID="STR_GEM_NAME_TOPAZ">
|
<Key ID="STR_GEM_NAME_TOPAZ">
|
||||||
<English>Topaz</English>
|
<English>Topaz</English>
|
||||||
<German>Topas</German>
|
<German>Topas</German>
|
||||||
|
|||||||
Reference in New Issue
Block a user