mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
more fixes
+ [ADDED] Raw tuna now does not have infection chance when eaten. + [ADDED] Empty 55 gallon barrel icon added + [FIXED] 1oz Silver Bar icon was incorrect, now have correct one.
This commit is contained in:
@@ -67,7 +67,6 @@ if (_finished) then {
|
|||||||
|
|
||||||
_vehicle setVariable ["GeneratorSound", _soundSource,true];
|
_vehicle setVariable ["GeneratorSound", _soundSource,true];
|
||||||
|
|
||||||
// TODO: Add running sounds to generator
|
|
||||||
cutText ["Generator has been started.", "PLAIN DOWN"];
|
cutText ["Generator has been started.", "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ if(_isNear == 0) exitWith {TradeInprogress = false; cutText ["Key crafting needs
|
|||||||
call gear_ui_init;
|
call gear_ui_init;
|
||||||
|
|
||||||
// require one tin bar per key
|
// require one tin bar per key
|
||||||
_hasTinBar = "ItemTinBar" in _magazinesPlayer;
|
_hasTinBar = "ItemTinBar" in magazines player;
|
||||||
if(!_hasTinBar) exitWith {TradeInprogress = false; cutText ["Key crafting requires a 1oz Tin Bar." , "PLAIN DOWN"]};
|
if(!_hasTinBar) exitWith {TradeInprogress = false; cutText ["Key crafting requires a 1oz Tin Bar." , "PLAIN DOWN"]};
|
||||||
|
|
||||||
player playActionNow "Medic";
|
player playActionNow "Medic";
|
||||||
@@ -53,16 +53,24 @@ while {r_doLoop} do {
|
|||||||
};
|
};
|
||||||
r_doLoop = false;
|
r_doLoop = false;
|
||||||
|
|
||||||
_num_removed = ([player,"ItemTinBar"] call BIS_fnc_invRemove);
|
if(_finished) then {
|
||||||
|
|
||||||
if(_finished and _num_removed == 1) then {
|
_num_removed = ([player,"ItemTinBar"] call BIS_fnc_invRemove);
|
||||||
// output key to backpack if space
|
|
||||||
_create = _item;
|
if(_num_removed == 1) then {
|
||||||
_qty = 1;
|
// output key to backpack if space
|
||||||
_box = unitBackpack player;
|
_create = _item;
|
||||||
_box addWeaponCargoGlobal [_create,_qty];
|
_qty = 1;
|
||||||
cutText ["Copied key has been added to your backpack." , "PLAIN DOWN"];
|
_box = unitBackpack player;
|
||||||
|
_box addWeaponCargoGlobal [_create,_qty];
|
||||||
|
cutText ["Copied key has been added to your backpack." , "PLAIN DOWN"];
|
||||||
|
} else {
|
||||||
|
cutText ["Canceled Key Crafting." , "PLAIN DOWN"];
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
|
r_interrupt = false;
|
||||||
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
|
player playActionNow "stop";
|
||||||
cutText ["Canceled Key Crafting." , "PLAIN DOWN"];
|
cutText ["Canceled Key Crafting." , "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
TradeInprogress = false;
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ _itemorignal = _this;
|
|||||||
_hasfooditem = _itemorignal in magazines player;
|
_hasfooditem = _itemorignal in magazines player;
|
||||||
|
|
||||||
_rawfood = _itemorignal in meatraw;
|
_rawfood = _itemorignal in meatraw;
|
||||||
|
_rawexceptions = _itemorignal in exceptionsraw;
|
||||||
_cookedfood = _itemorignal in meatcooked;
|
_cookedfood = _itemorignal in meatcooked;
|
||||||
_hasoutput = _itemorignal in food_with_output;
|
_hasoutput = _itemorignal in food_with_output;
|
||||||
|
|
||||||
@@ -53,12 +54,12 @@ if (_hasoutput) then{
|
|||||||
_item addMagazineCargoGlobal [_itemtodrop,1];
|
_item addMagazineCargoGlobal [_itemtodrop,1];
|
||||||
};
|
};
|
||||||
|
|
||||||
if ( _rawfood and (random 15 < 1)) then {
|
if (_rawfood and !_rawexceptions and (random 15 < 1)) then {
|
||||||
r_player_infected = true;
|
r_player_infected = true;
|
||||||
player setVariable["USEC_infected",true,true];
|
player setVariable["USEC_infected",true,true];
|
||||||
};
|
};
|
||||||
|
|
||||||
if ( _badfood and (random 2 < 1)) then {
|
if (_badfood and (random 2 < 1)) then {
|
||||||
r_player_infected = true;
|
r_player_infected = true;
|
||||||
player setVariable["USEC_infected",true,true];
|
player setVariable["USEC_infected",true,true];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ if (_finished) then {
|
|||||||
// Stop generator
|
// Stop generator
|
||||||
_vehicle setVariable ["GeneratorRunning", false,true];
|
_vehicle setVariable ["GeneratorRunning", false,true];
|
||||||
|
|
||||||
// TODO: Add running sounds to generator
|
|
||||||
cutText ["Generator has been stopped.", "PLAIN DOWN"];
|
cutText ["Generator has been stopped.", "PLAIN DOWN"];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ meatraw = [
|
|||||||
"ItemSeaBass",
|
"ItemSeaBass",
|
||||||
"ItemTuna"
|
"ItemTuna"
|
||||||
];
|
];
|
||||||
|
exceptionsraw = ["ItemTuna"];
|
||||||
meatcooked = [
|
meatcooked = [
|
||||||
"FoodSteakCooked",
|
"FoodSteakCooked",
|
||||||
"FoodmeatCooked",
|
"FoodmeatCooked",
|
||||||
|
|||||||
@@ -1644,9 +1644,8 @@ class CfgMagazines
|
|||||||
count = 1;
|
count = 1;
|
||||||
type = 256;
|
type = 256;
|
||||||
displayName = "Wooden Shack";
|
displayName = "Wooden Shack";
|
||||||
// TODO make custom model and icon
|
model = "\dayz_equip\models\supply_crate.p3d";
|
||||||
model = "\dayz_equip\models\woodPile.p3d";
|
picture = "\dayz_equip\textures\equip_wooden_crate_ca.paa";
|
||||||
picture = "\dayz_equip\textures\equip_woodPile_ca.paa";
|
|
||||||
descriptionShort = "Wooden Shack: A crafted object that holds some items/weapons/backpacks.";
|
descriptionShort = "Wooden Shack: A crafted object that holds some items/weapons/backpacks.";
|
||||||
class ItemActions {
|
class ItemActions {
|
||||||
class Build {
|
class Build {
|
||||||
@@ -2117,8 +2116,7 @@ class CfgMagazines
|
|||||||
fuelQuantity = 0;
|
fuelQuantity = 0;
|
||||||
type = 256;
|
type = 256;
|
||||||
displayName = "Fuel Barrel (Empty)";
|
displayName = "Fuel Barrel (Empty)";
|
||||||
// TODO add X to icon to represent empty barrel
|
picture = "\dayz_equip\textures\equip_oildrum_e_CA.paa";
|
||||||
picture = "\dayz_equip\textures\equip_oil_drum_model_ca.paa";
|
|
||||||
descriptionShort = "210 litres of fuel per barrel (Empty)";
|
descriptionShort = "210 litres of fuel per barrel (Empty)";
|
||||||
};
|
};
|
||||||
class ItemJerrycan: CA_Magazine
|
class ItemJerrycan: CA_Magazine
|
||||||
|
|||||||
BIN
dayz_equip/textures/equip_oildrum_e_CA.paa
Normal file
BIN
dayz_equip/textures/equip_oildrum_e_CA.paa
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user