Update painkillers

Vanilla commit:

1596a17b09
This commit is contained in:
ebaydayz
2016-12-07 15:20:17 -05:00
parent 5094e61723
commit 90977e4a31
2 changed files with 5 additions and 7 deletions

View File

@@ -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";

View File

@@ -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;
};