Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Items for a simple Plantingsystem
- Loading branch information
Showing
3 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
class ItemFertilizer: CA_Magazine { | ||
scope = public; | ||
count = 1; | ||
displayName = "Fertilizer"; | ||
descriptionShort = "Fertilizer"; | ||
weight = 0.1; | ||
model = "z\addons\dayz_communityassets\models\mre.p3d"; // TODO: model + icon | ||
picture = "\z\addons\dayz_communityassets\pictures\equip_mre_CA.paa"; | ||
type = 256; | ||
}; | ||
|
||
class ItemPumpkinSeed: CA_Magazine { | ||
scope = public; | ||
count = 1; | ||
displayName = "A Pumpkin Seed"; | ||
descriptionShort = "A Pumpkin Seed"; | ||
weight = 0.1; | ||
model = "\z\addons\dayz_epoch\models\doc_child1.p3d"; // TODO: model + icon | ||
picture = "\z\addons\dayz_epoch\pictures\equip_child1_ca.paa"; | ||
type = 256; | ||
class ItemActions { | ||
class Crafting | ||
{ | ||
text = "Craft Pumpkin Plant"; | ||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; | ||
neednearby[] = {""}; | ||
requiretools[] = {"ItemKnife"}; | ||
output[] = {{"ItemPumpkinPlant",1},{"ItemWaterbottleUnfilled",1}}; | ||
input[] = {{"ItemPumpkinSeed",1},{"ItemFertilizer",1},{"ItemWaterbottle",1}}; | ||
}; | ||
}; | ||
}; | ||
|
||
class ItemPumpkinPlant: CA_Magazine { | ||
scope = public; | ||
count = 1; | ||
displayName = "A Pumpkin Plant"; | ||
descriptionShort = "A Pumpkin Plant"; | ||
weight = 0.1; | ||
model = "\z\addons\dayz_epoch\models\doc_child1.p3d"; // TODO: model + icon | ||
picture = "\z\addons\dayz_epoch\pictures\equip_child1_ca.paa"; | ||
type = 256; | ||
class ItemActions { | ||
class Build { | ||
text = "Plant Pumpkin"; | ||
script = "spawn player_build;"; | ||
require[] = {"ItemEtool"}; | ||
create = "Grave"; // TODO: model for Pumpkin Stage 1 | ||
}; | ||
}; | ||
}; | ||
|
||
class ItemHempSeed: CA_Magazine { | ||
scope = public; | ||
count = 1; | ||
displayName = "A Hemp Seed"; | ||
descriptionShort = "A Hemp Seed"; | ||
weight = 0.1; | ||
model = "\z\addons\dayz_epoch\models\doc_child2.p3d"; // TODO: model + icon | ||
picture = "\z\addons\dayz_epoch\pictures\equip_child2_ca.paa"; | ||
type = 256; | ||
class ItemActions { | ||
class Crafting | ||
{ | ||
text = "Craft Hemp Plant"; | ||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; | ||
neednearby[] = {""}; | ||
requiretools[] = {"ItemKnife"}; | ||
output[] = {{"ItemHempPlant",1},{"ItemWaterbottleUnfilled",1}}; | ||
input[] = {{"ItemHempSeed",1},{"ItemFertilizer",1},{"ItemWaterbottle",1}}; | ||
}; | ||
}; | ||
}; | ||
|
||
class ItemHempPlant: CA_Magazine { | ||
scope = public; | ||
count = 1; | ||
type = 256; | ||
displayName = "A Hemp Plant"; | ||
descriptionShort = "A Hemp Plant"; | ||
weight = 0.1; | ||
model = "\z\addons\dayz_epoch\models\doc_child2.p3d"; // TODO: model + icon | ||
picture = "\z\addons\dayz_epoch\pictures\equip_child2_ca.paa"; | ||
type = 256; | ||
class ItemActions { | ||
class Build { | ||
text = "Plant Hemp"; | ||
script = "spawn player_build;"; | ||
require[] = {"ItemEtool"}; | ||
create = "MAP_c_fern"; // TODO: model for Hemp Stage 1 | ||
}; | ||
}; | ||
}; |