mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-25 19:26:08 +03:00
Finish Medical and Sleep to UiSleep
This commit is contained in:
@@ -1,39 +1,27 @@
|
||||
// bleed.sqf
|
||||
|
||||
private ["_id","_unit","_num_removed"];
|
||||
|
||||
disableserialization;
|
||||
|
||||
private ["_id","_unit"];
|
||||
_unit = (_this select 3) select 0;
|
||||
|
||||
_unit setVariable ["USEC_inPain", false, true];
|
||||
|
||||
call fnc_usec_medic_removeActions;
|
||||
r_action = false;
|
||||
|
||||
_num_removed = ([player,"ItemPainkiller"] call BIS_fnc_invRemove);
|
||||
if(_num_removed == 1) then {
|
||||
|
||||
if (vehicle player != player) then {
|
||||
_display = findDisplay 106;
|
||||
_display closeDisplay 0;
|
||||
};
|
||||
|
||||
_unit setVariable ["USEC_inPain", false, true];
|
||||
|
||||
if (vehicle player == player) then {
|
||||
//not in a vehicle
|
||||
player playActionNow "Gear";
|
||||
};
|
||||
|
||||
if ((_unit == player) || (vehicle player != player)) then {
|
||||
//Self Healing
|
||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medPainkiller.sqf";
|
||||
} else {
|
||||
[player,20] call player_humanityChange;
|
||||
};
|
||||
|
||||
uiSleep 1;
|
||||
//clear the healed player's vision
|
||||
/* PVS/PVC - Skaronator */
|
||||
PVDZE_send = [_unit,"Painkiller",[_unit,player]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
if (vehicle player == player) then {
|
||||
//not in a vehicle
|
||||
player playActionNow "Gear";
|
||||
};
|
||||
|
||||
if ((_unit == player) or (vehicle player != player)) then {
|
||||
//Self Healing
|
||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medPainkiller.sqf";
|
||||
} else {
|
||||
//PVCDZ_plr_Humanity = [player,20];
|
||||
[player,20] call player_humanityChange;
|
||||
};
|
||||
|
||||
player removeMagazine "ItemPainkiller";
|
||||
|
||||
uiSleep 1;
|
||||
|
||||
PVDZE_send = [_unit,"Painkiller",[_unit,player]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
Reference in New Issue
Block a user