mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +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;
|
||||
|
||||
@@ -19,7 +19,7 @@ _text = getText (configFile >> "CfgVehicles" >> _objType >> "displayName");
|
||||
|
||||
// Silently exit if object no longer exists
|
||||
if(isNull _obj) exitWith { TradeInprogress = false; };
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
sleep 1;
|
||||
[player,"tentpack",0,false] call dayz_zombieSpeak;
|
||||
|
||||
@@ -15,7 +15,7 @@ _obj = _this;
|
||||
_ownerID = _obj getVariable["CharacterID","0"];
|
||||
_objectID = _obj getVariable["ObjectID","0"];
|
||||
_objectUID = _obj getVariable["ObjectUID","0"];
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
|
||||
if(_objectID == "0" && _objectUID == "0") exitWith {TradeInprogress = false; s_player_packtent = -1; cutText [(localize "str_epoch_player_14"), "PLAIN DOWN"];};
|
||||
|
||||
@@ -53,6 +53,7 @@ _pos = _obj getVariable["OEMPos",(getposATL _obj)];
|
||||
|
||||
if(!isNull _obj and alive _obj) then {
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
[player,"tentpack",0,false] call dayz_zombieSpeak;
|
||||
sleep 3;
|
||||
|
||||
@@ -9,7 +9,7 @@ if(!isNil "DZE_DYN_UnlockDoorInprogress") exitWith { cutText [(localize "str_epo
|
||||
|
||||
DZE_DYN_UnlockDoorInprogress = true;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
[10,5] call dayz_HungerThirst;
|
||||
|
||||
if(!isNull dayz_selectedDoor) then {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ private ["_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_holder","_we
|
||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_21") , "PLAIN DOWN"]; };
|
||||
TradeInprogress = true;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
[5,10] call dayz_HungerThirst;
|
||||
|
||||
{player removeAction _x} forEach s_player_combi;s_player_combi = [];
|
||||
s_player_unlockvault = 1;
|
||||
|
||||
@@ -7,6 +7,7 @@ player removeMagazine "ItemBandage";
|
||||
|
||||
call fnc_usec_medic_removeActions;
|
||||
r_action = false;
|
||||
[1,1] call dayz_HungerThirst;
|
||||
|
||||
if (vehicle player == player) then {
|
||||
//not in a vehicle
|
||||
|
||||
@@ -4,7 +4,7 @@ private ["_unit","_isDead"];
|
||||
_unit = (_this select 3) select 0;
|
||||
_isDead = _unit getVariable["USEC_isDead",false];
|
||||
call fnc_usec_medic_removeActions;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
player playActionNow "Medic";
|
||||
player removeMagazine "ItemEpinephrine";
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ _unit setVariable ["hit_hands",0];
|
||||
|
||||
call fnc_usec_medic_removeActions;
|
||||
r_action = false;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
if (vehicle player == player) then {
|
||||
//not in a vehicle
|
||||
player playActionNow "Medic";
|
||||
|
||||
@@ -10,7 +10,7 @@ _lastused = _unit getVariable ["LastTransfusion", time];
|
||||
|
||||
call fnc_usec_medic_removeActions;
|
||||
r_action = false;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
if (vehicle player == player) then {
|
||||
//not in a vehicle
|
||||
player playActionNow "Medic";
|
||||
|
||||
Reference in New Issue
Block a user