Jump to content

Suggestion


Nox

Recommended Posts

In a day

 

On DayZ 2048 (my mod dead now :p )

 

We have to put mod script to drink and eat to received trash after consummed

 

then a Script to recycling This Trash in Scrap metal

 

Did you do the same in it ?

 

 

------- Script Drink

 

_item = _this;
_hasdrinkitem = _this in magazines player;


_config = configFile >> "CfgMagazines" >> _item;
_text = getText (_config >> "displayName");
_sfx =  getText (_config >> "sfx");


if (!_hasdrinkitem) exitWith {cutText [format[(localize "str_player_31"),_text,"drink"] , "PLAIN DOWN"]};


player playActionNow "PutDown";


sleep 1;
[player,_sfx,0,false] call dayz_zombieSpeak;


switch (_item) do {
case "ItemSodaMdew": {
player removeMagazine _item;
player addMagazine "ItemSodaEmpty";
};
case "ItemSodaPepsi": {
player removeMagazine _item;
player addMagazine "ItemSodaEmpty";
};
case "ItemSodaCoke": {
player removeMagazine _item;
player addMagazine "ItemSodaEmpty";
};
case "ItemWaterbottle": {
r_player_infected = true;
r_player_blood = r_player_blood - 50;
player setVariable["USEC_infected",true,true];
player removeMagazine _item;
player addMagazine "ItemWaterbottleUnfilled";
};

 

--- Script Eat

 

if (!_hasfoodmag) exitWith {cutText [format[(localize "str_player_31"),_text,"consume"] , "PLAIN DOWN"]};


player playActionNow "PutDown";
// player removeMagazine _item;
// player addMagazine "TrashTinCan";
sleep 1;


if (_item == "FoodCanBakedBeans") then {
player removeMagazine _item;
player addMagazine "TrashTinCan";
};


if (_item == "FoodCanFrankBeans") then {
player removeMagazine _item;
player addMagazine "TrashTinCan";
};


if (_item == "FoodCanPasta") then {
player removeMagazine _item;
player addMagazine "TrashTinCan";
};


if (_item == "FoodCanSardines") then {
player removeMagazine _item;
player addMagazine "TrashTinCan";
};


if (_item == "FoodSteakRaw") then {
player removeMagazine _item;
};


if (_item == "FoodSteakCooked") then {
player removeMagazine _item;
};

---- Script Make Scrap metal

private["_hastoolbox","_qty1","_qty2","_qtyt","_cpt"];
call gear_ui_init;


_hastoolbox = "ItemToolbox" in items player;
_qty1 = {_x == "ItemSodaEmpty"} count magazines player;
_qty2 = {_x == "TrashTinCan"} count magazines player;
_qtyt = _qty1 + _qty2;
_cpt = 0;


if (_hastoolbox and _qtyt > 3) then {
player playActionNow "PutDown";


for "_x" from 1 to _qty1 do {
if (_x < 5) then {
player removeMagazine "ItemSodaEmpty";
_cpt = _cpt + 1;
};
};


if(_cpt < 4) then {
_cpt = 5 - _cpt;
for "_y" from 1 to _qty2 do {
if (_y < _cpt) then {
player removeMagazine "TrashTinCan";
};
};
};


cutText ["vous venez de creer du metal", "PLAIN DOWN"];
player addMagazine "PartGeneric";


} else {
cutText ["Vous n'avez pas ce qu'il faut pour le recyclage", "PLAIN DOWN"];
};

Other Suggestion

 

When we remove the Wreck, do you think we can received scrap Metal ?

 

 

Regards

 

Link to comment
Share on other sites

Currently I think trash goes to floor once you consume the contents of a can.

From there you can pickup and smelt these metals into Tin and Aluminium?

 

Agree that 1 or even 2 Scrap Metal should be an always from Salvaging Wrecks with chance to get working parts.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...