mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-18 22:22:57 +03:00
added thirst and hunger loss to all medic animation
This commit is contained in:
@@ -29,7 +29,7 @@ if (_hasbottleitem and _hastinitem) then {
|
||||
if ("ItemWaterbottle" in magazines player) then {
|
||||
|
||||
_removed = _removed + ([player,"ItemWaterbottle",_qty] call BIS_fnc_invRemove);
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
sleep 1;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ _cookedmeat = meatcooked;
|
||||
_qty = {_x == _meat} count magazines player;
|
||||
|
||||
cutText [format[(localize "str_epoch_player_129"),_textraw], "PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
|
||||
_dis=6;
|
||||
|
||||
@@ -52,6 +52,7 @@ if(_IsNearVehicle >= 1) then {
|
||||
|
||||
_finished = false;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ s_player_fillgen = 1;
|
||||
// Use target from addaction
|
||||
_vehicle = _this select 3;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -6,6 +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;
|
||||
player playActionNow "Medic";
|
||||
sleep 6;
|
||||
dayz_hasFire = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
|
||||
|
||||
@@ -3,7 +3,7 @@ _obj = _this select 3;
|
||||
|
||||
player removeAction s_player_fireout;
|
||||
s_player_fireout = 1;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
sleep 6;
|
||||
if(_obj isKindOf "Land_fire") then {
|
||||
|
||||
@@ -18,6 +18,7 @@ if ((_hasKnife or _hasKnifeBlunt) and !_hasHarvested) then {
|
||||
_isListed = isClass (_config);
|
||||
_text = getText (configFile >> "CfgVehicles" >> _type >> "displayName");
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ if ((_hasKnife or _hasKnifeBlunt) and !_hasHarvested) then {
|
||||
//_isListed = isClass (_config);
|
||||
_text = getText (configFile >> "CfgVehicles" >> _type >> "displayName");
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ _qty = count _fuelCans;
|
||||
|
||||
cutText [format[(localize "str_epoch_player_133"),_displayName], "PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
// Play sound and alert zombies
|
||||
|
||||
@@ -412,6 +412,7 @@ if (_hasrequireditem) then {
|
||||
|
||||
while {_isOk} do {
|
||||
|
||||
[10,10] call dayz_HungerThirst;
|
||||
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;
|
||||
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;
|
||||
player playActionNow "Medic";
|
||||
[player,20,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ call gear_ui_init;
|
||||
// require one tin bar per key
|
||||
_hasTinBar = "ItemTinBar" in magazines player;
|
||||
if(!_hasTinBar) exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_59") , "PLAIN DOWN"]};
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
|
||||
[player,"repair",0,false] call dayz_zombieSpeak;
|
||||
|
||||
@@ -114,6 +114,7 @@ if (_canDo) then {
|
||||
|
||||
cutText [(localize "str_epoch_player_62"), "PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
|
||||
[player,_sfx,0,false] call dayz_zombieSpeak;
|
||||
|
||||
@@ -52,6 +52,7 @@ if (count(_findNearestTree) >= 1) then {
|
||||
_proceed = false;
|
||||
while {_isOk} do {
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
[player,20,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ _classname = "WeaponHolder";
|
||||
//return empty crate to inventory
|
||||
player addMagazine "bulk_empty";
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// Change to optional wait to complete
|
||||
player playActionNow "Medic";
|
||||
sleep 6;
|
||||
|
||||
@@ -12,6 +12,7 @@ if (_hasWood) then {
|
||||
player removeMagazine "PartWoodPile";
|
||||
_dir = getDir player;
|
||||
_classname = "Land_Fire_DZ";
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
sleep 6;
|
||||
_fire = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
|
||||
|
||||
@@ -98,7 +98,7 @@ if ((count _upgrade) > 0) then {
|
||||
} forEach _requirements;
|
||||
|
||||
if (_proceed) then {
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
[player,20,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ _availableCans = ["ItemJerrycan","ItemFuelBarrel"];
|
||||
|
||||
if(!dayz_isSwimming) then {
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ while {_isOk} do {
|
||||
_isOk = false;
|
||||
_proceed = false;
|
||||
};
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
_dis=20;
|
||||
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
@@ -22,6 +22,7 @@ s_player_repair_crtl = 1;
|
||||
|
||||
if (_section and _hasToolbox) then {
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
|
||||
_dis=20;
|
||||
|
||||
@@ -25,6 +25,7 @@ s_player_repair_crtl = 1;
|
||||
|
||||
if (_hasToolbox) then {
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
|
||||
[player,"repair",0,false] call dayz_zombieSpeak;
|
||||
|
||||
@@ -55,6 +55,7 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"];
|
||||
|
||||
if(!dayz_isSwimming) then {
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ s_player_fillgen = 1;
|
||||
// Use target from addaction
|
||||
_vehicle = _this select 3;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ if (!_isOk) then {
|
||||
player removeMagazine _item;
|
||||
_dir = round(direction player);
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
//wait a bit
|
||||
player playActionNow "Medic";
|
||||
sleep 1;
|
||||
|
||||
@@ -39,6 +39,7 @@ if(_IsNearVehicle >= 1) then {
|
||||
|
||||
_finished = false;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ if(_inTow) then {
|
||||
|
||||
_finished = false;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -51,6 +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;
|
||||
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;
|
||||
player playActionNow "Medic";
|
||||
|
||||
r_interrupt = false;
|
||||
|
||||
@@ -28,6 +28,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
// force animation
|
||||
player playActionNow "Medic";
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ if(!_cancel) then {
|
||||
//call dayz_forceSave;
|
||||
|
||||
_dir = round(direction player);
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
//wait a bit
|
||||
player playActionNow "Medic";
|
||||
sleep 1;
|
||||
|
||||
Reference in New Issue
Block a user