mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
Make UI toggleable between three options
Admin can choose vanilla, classic epoch or classic epoch dark. dayz_hungerThirst was replaced with dayz_NutritionSystem
This commit is contained in:
@@ -54,7 +54,7 @@ if(_IsNearVehicle >= 1) then {
|
||||
|
||||
_finished = false;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ s_player_fillgen = 1;
|
||||
// Use target from addaction
|
||||
_vehicle = _this select 3;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ _isOk = count (_location isFlatEmpty [0.5,0,0,4,0,false,player]) > 0;
|
||||
if (_isOk) then {
|
||||
_dir = getDir player;
|
||||
_classname = "Land_Fire";
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
uiSleep 6;
|
||||
dayz_hasFire = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
|
||||
|
||||
@@ -26,7 +26,7 @@ _qty = count _fuelCans;
|
||||
|
||||
cutText [format[(localize "str_siphon_preparing"),_displayName], "PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
// Play sound && alert zombies
|
||||
|
||||
@@ -463,7 +463,7 @@ if (_hasrequireditem) then {
|
||||
|
||||
while {_isOk} do { //publish phase
|
||||
|
||||
[10,10] call dayz_HungerThirst;
|
||||
["Working",0,[100,15,10,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic"; //animation
|
||||
|
||||
//alert zombies
|
||||
|
||||
@@ -412,7 +412,7 @@ if (_hasrequireditem) then {
|
||||
|
||||
while {_isOk} do {
|
||||
|
||||
[10,10] call dayz_HungerThirst;
|
||||
["Working",0,[100,15,10,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
|
||||
_dis=20;
|
||||
|
||||
@@ -84,7 +84,7 @@ if ((count _upgrade) > 0) then {
|
||||
_newclassname = _upgrade select 0;
|
||||
|
||||
_refund = _upgrade select 1;
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
[player,20,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ _proceed = true;
|
||||
} forEach _requirements;
|
||||
|
||||
if (_proceed) then {
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
[player,20,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
/*
|
||||
Created by Alby exclusively for DayZMod.
|
||||
Please request permission to use/alter from Alby.
|
||||
|
||||
Included in Epoch with permission by @ebaydayz
|
||||
*/
|
||||
|
||||
private ["_items","_counts","_config","_isRecipe","_item","_index","_amount","_count","_entry","_input","_array"];
|
||||
|
||||
@@ -25,7 +25,7 @@ call gear_ui_init;
|
||||
// require one tin bar per key
|
||||
_hasTinBar = "ItemTinBar" in magazines player;
|
||||
if (!_hasTinBar) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_59","PLAIN DOWN"]};
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
|
||||
[player,"repair",0,false] call dayz_zombieSpeak;
|
||||
|
||||
@@ -124,7 +124,7 @@ if (_canDo) then {
|
||||
|
||||
cutText [localize "str_epoch_player_62","PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
|
||||
[player,_sfx,0,false] call dayz_zombieSpeak;
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
/*
|
||||
Created by Alby exclusively for DayZMod.
|
||||
Please request permission to use/alter from Alby.
|
||||
|
||||
Included in Epoch with permission by @ebaydayz
|
||||
*/
|
||||
|
||||
private["_config","_input","_output","_required","_failChance","_hasInput","_availabeSpace"];
|
||||
|
||||
@@ -52,7 +52,7 @@ if (count(_findNearestTree) >= 1) then {
|
||||
_proceed = false;
|
||||
while {_isOk} do {
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
[player,20,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ _classname = "WeaponHolder";
|
||||
//return empty crate to inventory
|
||||
player addMagazine "bulk_empty";
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
// Change to optional wait to complete
|
||||
player playActionNow "Medic";
|
||||
uiSleep 6;
|
||||
|
||||
@@ -98,7 +98,7 @@ if ((count _upgrade) > 0) then {
|
||||
} forEach _requirements;
|
||||
|
||||
if (_proceed) then {
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
[player,20,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ while {_isOk} do {
|
||||
_isOk = false;
|
||||
_proceed = false;
|
||||
};
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
_dis=20;
|
||||
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
@@ -9,7 +9,7 @@ s_player_fillgen = 1;
|
||||
// Use target from addaction
|
||||
_vehicle = _this select 3;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ if(_IsNearVehicle >= 1) then {
|
||||
|
||||
_finished = false;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ if(_inTow) then {
|
||||
|
||||
_finished = false;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ if(_buy_o_sell == "sell") then {
|
||||
|
||||
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ if(_buy_o_sell == "sell") then {
|
||||
|
||||
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ if(_buy_o_sell == "sell") then {
|
||||
|
||||
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ if(_buy_o_sell == "sell") then {
|
||||
|
||||
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
|
||||
r_interrupt = false;
|
||||
_animState = animationState player;
|
||||
|
||||
@@ -32,7 +32,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ while {r_autoTrade} do {
|
||||
|
||||
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
|
||||
//_dis=20;
|
||||
|
||||
@@ -51,7 +51,7 @@ for "_x" from 1 to _total_trades do {
|
||||
} else {
|
||||
cutText [format[(localize "str_epoch_player_187"),_tradeCounter,_total_trades] , "PLAIN DOWN"];
|
||||
};
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
|
||||
//_dis=20;
|
||||
|
||||
@@ -41,7 +41,7 @@ for "_x" from 1 to _total_trades do {
|
||||
} else {
|
||||
cutText [format[(localize "str_epoch_player_187"),_tradeCounter,_total_trades] , "PLAIN DOWN"];
|
||||
};
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
player playActionNow "Medic";
|
||||
|
||||
r_interrupt = false;
|
||||
|
||||
@@ -77,7 +77,7 @@ cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
|
||||
r_interrupt = false;
|
||||
_animState = animationState player;
|
||||
|
||||
@@ -28,7 +28,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ if(!_cancel) then {
|
||||
//call dayz_forceSave;
|
||||
|
||||
_dir = round(direction player);
|
||||
[1,1] call dayz_HungerThirst;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
//wait a bit
|
||||
player playActionNow "Medic";
|
||||
uiSleep 1;
|
||||
|
||||
Reference in New Issue
Block a user