mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
0.916
sync with pre build 1.7.5
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
private["_config","_item","_text","_rawmeat","_cookedmeat","_meat","_meatcooked","_qty","_id"];
|
||||
|
||||
diag_log ("Cook Enabled");
|
||||
player removeAction s_player_cook;
|
||||
s_player_cook = -1;
|
||||
|
||||
@@ -14,7 +15,7 @@ _cookedmeat = meatcooked;
|
||||
_qty = {_x == _meat} count magazines player;
|
||||
player playActionNow "Medic";
|
||||
[player,"cook",0,false] call dayz_zombieSpeak;
|
||||
//_id = [player,20,true,(getPosATL player)] spawn player_alertZombies;
|
||||
_id = [player,20,true,(getPosATL player)] spawn player_alertZombies;
|
||||
sleep _qty;
|
||||
for "_x" from 1 to _qty do {
|
||||
player removeMagazine _meat;
|
||||
|
||||
@@ -15,7 +15,7 @@ _hasfooditem = _item in magazines player;
|
||||
//_rawfood = _item in ["FoodSteakRaw","FoodmeatRaw","FoodbeefRaw","FoodmuttonRaw","FoodchickenRaw","FoodrabbitRaw","FoodbaconRaw"];
|
||||
//_cookedfood = _item in ["FoodSteakCooked","FoodmeatCooked","FoodbeefCooked","FoodmuttonCooked","FoodchickenCooked","FoodrabbitCooked","FoodbaconCooked"];
|
||||
_rawfood = _item in meatraw;
|
||||
_cookedfood = item in meatcooked;
|
||||
_cookedfood = _item in meatcooked;
|
||||
|
||||
_config = configFile >> "CfgMagazines" >> _item;
|
||||
_text = getText (_config >> "displayName");
|
||||
|
||||
@@ -13,17 +13,10 @@ _classbag = typeOf _bag;
|
||||
_isWater = (surfaceIsWater (position player)) or dayz_isSwimming;
|
||||
_hasAntiB = "ItemAntibiotic" in magazines player;
|
||||
_hasFuelE = "ItemJerrycanEmpty" in magazines player;
|
||||
//RawFood
|
||||
_hasSteakRaw = "FoodSteakRaw" in magazines player;
|
||||
_hasmuttonRaw = "FoodmuttonRaw" in magazines player;
|
||||
_haschickenRaw = "FoodchickenRaw" in magazines player;
|
||||
_hasrabbitRaw = "FoodrabbitRaw" in magazines player;
|
||||
_hasbaconRaw = "FoodbaconRaw" in magazines player;
|
||||
//boiled Water
|
||||
_hasbottleitem = "ItemWaterbottle" in magazines player;
|
||||
_hastinitem = ("TrashTinCan" in magazines player) or ("ItemSodaEmpty" in magazines player);
|
||||
//Define all Raw food
|
||||
_hasRawMeat = _hasSteakRaw or _hasmuttonRaw or _haschickenRaw or _hasrabbitRaw or _hasbaconRaw;
|
||||
|
||||
|
||||
_hasKnife = "ItemKnife" in items player;
|
||||
_hasToolbox = "ItemToolbox" in items player;
|
||||
@@ -183,7 +176,7 @@ if (!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 6))
|
||||
};
|
||||
};
|
||||
//Fireplace Actions check
|
||||
if(inflamed _cursor and _hasRawMeat and _canDo) then {
|
||||
if (inflamed cursorTarget and _hasRawMeat and _canDo) then {
|
||||
if (s_player_cook < 0) then {
|
||||
s_player_cook = player addAction [localize "str_actions_self_05", "\z\addons\dayz_code\actions\cook.sqf",cursorTarget, 3, true, true, "", ""];
|
||||
};
|
||||
@@ -191,9 +184,9 @@ if (!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 6))
|
||||
player removeAction s_player_cook;
|
||||
s_player_cook = -1;
|
||||
};
|
||||
if(inflamed _cursor and (_hasbottleitem and _hastinitem) and _canDo) then {
|
||||
if (inflamed cursorTarget and (_hasbottleitem and _hastinitem) and _canDo) then {
|
||||
if (s_player_boil < 0) then {
|
||||
s_player_boil = player addAction [localize "str_actions_boilwater", "\z\addons\dayz_code\actions\boil.sqf",_cursor, 3, true, true, "", ""];
|
||||
s_player_boil = player addAction [localize "str_actions_boilwater", "\z\addons\dayz_code\actions\boil.sqf",cursorTarget, 3, true, true, "", ""];
|
||||
};
|
||||
} else {
|
||||
player removeAction s_player_boil;
|
||||
@@ -211,7 +204,7 @@ if (!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 6))
|
||||
|
||||
//Packing my tent
|
||||
if(cursorTarget isKindOf "TentStorage" and _canDo and _ownerID == dayz_characterID) then {
|
||||
if (s_player_packtent < 0) then {
|
||||
if ((s_player_packtent < 0) and (player distance cursorTarget < 3)) then {
|
||||
s_player_packtent = player addAction [localize "str_actions_self_07", "\z\addons\dayz_code\actions\tent_pack.sqf",cursorTarget, 0, false, true, "",""];
|
||||
};
|
||||
} else {
|
||||
@@ -432,7 +425,6 @@ if (!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 6))
|
||||
|
||||
//s_player_madsci_crtl = -1;
|
||||
s_player_parts_crtl = -1;
|
||||
dayz_myCursorTarget = objNull;
|
||||
|
||||
// lock unlock vehicles
|
||||
s_player_lockUnlock_crtl = -1;
|
||||
|
||||
@@ -10,8 +10,8 @@ private["_display","_btnRespawn","_btnAbort","_timeOut","_timeMax","_isDead"];
|
||||
_btnAbort ctrlEnable false;
|
||||
_timeOut = 0;
|
||||
_timeMax = 30;
|
||||
_isDead = !alive player;
|
||||
|
||||
if(r_player_dead) exitWith {_btnAbort ctrlEnable true;};
|
||||
if(r_fracture_legs) exitWith {_btnRespawn ctrlEnable true;};
|
||||
|
||||
while {!isNull _display} do {
|
||||
@@ -20,14 +20,12 @@ private["_display","_btnRespawn","_btnAbort","_timeOut","_timeMax","_isDead"];
|
||||
_btnAbort ctrlEnable false;
|
||||
cutText ["Cannot Abort near another player!", "PLAIN DOWN"];
|
||||
};
|
||||
/*
|
||||
case (_timeOut < _timeMax && count (player nearEntities ["zZombie_Base", 50]) > 0) : {
|
||||
_btnAbort ctrlEnable false;
|
||||
cutText [format ["Can Abort in %1", (_timeMax - _timeOut)], "PLAIN DOWN"];
|
||||
_timeOut = _timeOut + 1;
|
||||
|
||||
};
|
||||
*/
|
||||
case (player getVariable["combattimeout", 0] >= time) : {
|
||||
_btnAbort ctrlEnable false;
|
||||
cutText ["Cannot Abort while in combat!", "PLAIN DOWN"];
|
||||
|
||||
@@ -721,6 +721,15 @@
|
||||
<Dutch>Biefstuk koken</Dutch>
|
||||
<French>Cuire la Viande</French>
|
||||
</Key>
|
||||
<Key ID="str_actions_boilwater">
|
||||
<Original>Boil Water</Original>
|
||||
<English>Boil Water</English>
|
||||
<German>Wasser kochen</German>
|
||||
<Russian>Вскипятить воду</Russian>
|
||||
<Spanish>Hervir el Agua</Spanish>
|
||||
<Dutch>koge vand</Dutch>
|
||||
<French>faire bouillir l'eau</French>
|
||||
</Key>
|
||||
<Key ID="str_actions_self_06">
|
||||
<Original>Remove fireplace</Original>
|
||||
<English>Remove fireplace</English>
|
||||
@@ -1389,8 +1398,11 @@
|
||||
<Key ID="STR_ITEMWATERBOTTLEBOILED_CODE_DESC">
|
||||
<Original>A bottle of boiled water that has been filled and can be consumed.</Original>
|
||||
<English>A bottle of boiledwater that has been filled and can be consumed.</English>
|
||||
<German>A bottle of boiledwater that has been filled and can be consumed.</German>
|
||||
<Russian>Ôëÿæêà êèïÿ÷åíîé âîäû. Ïðèãîäíà äëÿ ïèòüÿ.</Russian>
|
||||
<German>Eine Flasche mit abgekochten Wasser.</German>
|
||||
<Russian>Бутылка boiledwater, который был заполнен и можно употреблять.</Russian>
|
||||
<Spanish>Una botella de boiledwater que ha sido llenado y se puede consumir.</Spanish>
|
||||
<Dutch>Een fles boiledwater dat is gevuld en kan worden geconsumeerd.</Dutch>
|
||||
<French>Une bouteille a été remplie d'eau bouillie qui peut être consommée.</French>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user