mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-19 01:52:00 +03:00
+ [REVERT] Removed a bunch of force gear saves that should no longer be needed. + [FIXED] Removed auto refuel from lingor gas stations. + [FIXED] Removed auto refuel and repair lingor hangars. + [REMOVED] Bear Traps and Land Mines. + [FIXED] Removed radar from chinhook with _DZ variant. + [FIXED] Possible fix for extra intel in heliocopters.
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
private["_config","_item","_text","_rawmeat","_cookedmeat","_meat","_meatcooked","_qty","_id"];
|
|
|
|
diag_log ("Cook Enabled");
|
|
player removeAction s_player_cook;
|
|
s_player_cook = -1;
|
|
|
|
_rawmeat = meatraw;
|
|
_cookedmeat = meatcooked;
|
|
|
|
{
|
|
_meat = _x;
|
|
_meatcooked = _cookedmeat select (_rawmeat find _meat);
|
|
if (_meat in magazines player) then {
|
|
_text = getText (configFile >> "CfgMagazines" >> _meatcooked >> "displayName");
|
|
_qty = {_x == _meat} count magazines player;
|
|
player playActionNow "Medic";
|
|
|
|
_dis=6;
|
|
_sfx = "cook";
|
|
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
|
|
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
|
|
|
|
sleep _qty;
|
|
for "_x" from 1 to _qty do {
|
|
player removeMagazine _meat;
|
|
player addMagazine _meatcooked;
|
|
if !(_meat in magazines player) exitWith {cutText [format[(localize "str_player_31"),_text,"cook"] , "PLAIN DOWN"]};
|
|
};
|
|
//disableSerialization;
|
|
//call dayz_forceSave;
|
|
|
|
cutText [format[(localize "str_success_cooked"),_qty,_text], "PLAIN DOWN"];
|
|
};
|
|
} forEach _rawmeat; |