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"];
|
private ["_id","_unit"];
|
||||||
_unit = (_this select 3) select 0;
|
_unit = (_this select 3) select 0;
|
||||||
|
|
||||||
_unit setVariable ["USEC_inPain", false, true];
|
|
||||||
|
|
||||||
call fnc_usec_medic_removeActions;
|
call fnc_usec_medic_removeActions;
|
||||||
r_action = false;
|
r_action = false;
|
||||||
|
|
||||||
@@ -15,12 +13,11 @@ if ((_unit == player) or (vehicle player != player)) then {
|
|||||||
//Self Healing
|
//Self Healing
|
||||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medPainkiller.sqf";
|
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medPainkiller.sqf";
|
||||||
} else {
|
} else {
|
||||||
|
//Send to server its given to someone else.
|
||||||
|
PVDZ_send = [_unit,"Painkiller",[_unit,player]];
|
||||||
|
publicVariableServer "PVDZ_send";
|
||||||
|
|
||||||
[20,0] call player_humanityChange;
|
[20,0] call player_humanityChange;
|
||||||
};
|
};
|
||||||
|
|
||||||
player removeMagazine "ItemPainkiller";
|
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 {
|
if ((_unit == player) or (vehicle player != player)) then {
|
||||||
r_player_inpain = false;
|
r_player_inpain = false;
|
||||||
|
_unit setVariable ["USEC_inPain", false, true];
|
||||||
R3F_TIRED_Accumulator = 0;
|
R3F_TIRED_Accumulator = 0;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user