mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
@@ -1,8 +1,6 @@
|
||||
private ["_id","_unit"];
|
||||
_unit = (_this select 3) select 0;
|
||||
|
||||
_unit setVariable ["USEC_inPain", false, true];
|
||||
|
||||
call fnc_usec_medic_removeActions;
|
||||
r_action = false;
|
||||
|
||||
@@ -15,12 +13,11 @@ if ((_unit == player) or (vehicle player != player)) then {
|
||||
//Self Healing
|
||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medPainkiller.sqf";
|
||||
} else {
|
||||
//Send to server its given to someone else.
|
||||
PVDZ_send = [_unit,"Painkiller",[_unit,player]];
|
||||
publicVariableServer "PVDZ_send";
|
||||
|
||||
[20,0] call player_humanityChange;
|
||||
};
|
||||
|
||||
player removeMagazine "ItemPainkiller";
|
||||
|
||||
uiSleep 1;
|
||||
|
||||
PVDZ_send = [_unit,"Painkiller",[_unit,player]];
|
||||
publicVariableServer "PVDZ_send";
|
||||
@@ -5,5 +5,6 @@ _medic = _array select 1;
|
||||
|
||||
if ((_unit == player) or (vehicle player != player)) then {
|
||||
r_player_inpain = false;
|
||||
_unit setVariable ["USEC_inPain", false, true];
|
||||
R3F_TIRED_Accumulator = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user