mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 02:46:29 +03:00
0.791
This commit is contained in:
@@ -3,10 +3,11 @@ private["_hasFoodMeat","_hasFoodTin","_item","_wait"];
|
||||
player removeAction s_player_cook;
|
||||
s_player_cook = -1;
|
||||
|
||||
_qty = {_x == "FoodSteakRaw"} count magazines player;
|
||||
//_qty = {_x == "FoodSteakRaw"} count magazines player;
|
||||
_wait = 5 - _qty;
|
||||
|
||||
if ("FoodSteakRaw" in magazines player) then {
|
||||
_qty = {_x == "FoodSteakRaw"} count magazines player;
|
||||
player playActionNow "Medic";
|
||||
[player,"cook",0,false] call dayz_zombieSpeak;
|
||||
_id = [player,70,true,(getPosATL player)] spawn player_alertZombies;
|
||||
@@ -23,6 +24,7 @@ if ("FoodSteakRaw" in magazines player) then {
|
||||
|
||||
//FoodmuttonRaw > FoodmuttonCooked
|
||||
if ("FoodmuttonRaw" in magazines player) then {
|
||||
_qty = {_x == "FoodmuttonRaw"} count magazines player;
|
||||
player playActionNow "Medic";
|
||||
[player,"cook",0,false] call dayz_zombieSpeak;
|
||||
_id = [player,70,true,(getPosATL player)] spawn player_alertZombies;
|
||||
@@ -39,6 +41,7 @@ if ("FoodmuttonRaw" in magazines player) then {
|
||||
|
||||
//FoodchickenRaw > FoodchickenCooked
|
||||
if ("FoodchickenRaw" in magazines player) then {
|
||||
_qty = {_x == "FoodchickenRaw"} count magazines player;
|
||||
player playActionNow "Medic";
|
||||
[player,"cook",0,false] call dayz_zombieSpeak;
|
||||
_id = [player,70,true,(getPosATL player)] spawn player_alertZombies;
|
||||
@@ -55,6 +58,7 @@ if ("FoodchickenRaw" in magazines player) then {
|
||||
|
||||
//FoodrabbitRaw > FoodBaconCooked
|
||||
if ("FoodrabbitRaw" in magazines player) then {
|
||||
_qty = {_x == "FoodrabbitRaw"} count magazines player;
|
||||
player playActionNow "Medic";
|
||||
[player,"cook",0,false] call dayz_zombieSpeak;
|
||||
_id = [player,70,true,(getPosATL player)] spawn player_alertZombies;
|
||||
@@ -71,6 +75,7 @@ if ("FoodrabbitRaw" in magazines player) then {
|
||||
|
||||
//FoodbaconRaw > FoodRabbitCooked
|
||||
if ("FoodbaconRaw" in magazines player) then {
|
||||
_qty = {_x == "FoodbaconRaw"} count magazines player;
|
||||
player playActionNow "Medic";
|
||||
[player,"cook",0,false] call dayz_zombieSpeak;
|
||||
_id = [player,70,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
@@ -18,7 +18,6 @@ if ((_hasKnife or _hasKnifeBlunt) and !_hasHarvested) then {
|
||||
player playActionNow "Medic";
|
||||
[player,"gut",0,false] call dayz_zombieSpeak;
|
||||
_item setVariable["meatHarvested",true,true];
|
||||
_item setVariable ["timerawmeatHarvested",time,false];
|
||||
|
||||
_qty = 2;
|
||||
if (_isListed) then {
|
||||
@@ -29,7 +28,14 @@ if ((_hasKnife or _hasKnifeBlunt) and !_hasHarvested) then {
|
||||
|
||||
_id = [player,50,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
["dayzGutBody",[_item,_qty]] call callRpcProcedure;
|
||||
_array = [_item,_qty];
|
||||
|
||||
if (local _item) then {
|
||||
_array spawn local_gutObject;
|
||||
} else {
|
||||
dayzGutBody = _array;
|
||||
publicVariable "dayzGutBody";
|
||||
};
|
||||
|
||||
sleep 6;
|
||||
_string = format[localize "str_success_gutted_animal",_text,_qty];
|
||||
|
||||
@@ -25,7 +25,12 @@ if ((_hasKnife or _hasKnifeBlunt) and !_hasHarvested) then {
|
||||
|
||||
_array = [_item,_qty];
|
||||
|
||||
["dayzGutBodyZ",[_item,_qty]] call callRpcProcedure;
|
||||
if (local _item) then {
|
||||
_array spawn local_gutObjectZ;
|
||||
} else {
|
||||
dayzGutBody = _array;
|
||||
publicVariable "dayzGutBodyZ";
|
||||
};
|
||||
|
||||
sleep 6;
|
||||
_string = format["Successfully Gutted Zombie",_text,_qty];
|
||||
|
||||
Reference in New Issue
Block a user