mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-17 01:43:21 +03:00
0.1
This commit is contained in:
26
dayz_code/medical/painkiller.sqf
Normal file
26
dayz_code/medical/painkiller.sqf
Normal file
@@ -0,0 +1,26 @@
|
||||
// bleed.sqf
|
||||
_unit = (_this select 3) select 0;
|
||||
|
||||
_unit setVariable ["USEC_inPain", false, true];
|
||||
|
||||
call fnc_usec_medic_removeActions;
|
||||
r_action = false;
|
||||
|
||||
if (vehicle player == player) then {
|
||||
//not in a vehicle
|
||||
player playActionNow "Gear";
|
||||
};
|
||||
|
||||
if (_unit == player) then {
|
||||
//Self Healing
|
||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medPainkiller.sqf";
|
||||
} else {
|
||||
dayzHumanity = [player,20];
|
||||
_id = dayzHumanity spawn player_humanityChange;
|
||||
};
|
||||
|
||||
player removeMagazine "ItemPainkiller";
|
||||
|
||||
sleep 1;
|
||||
usecPainK = [_unit,player];
|
||||
publicVariable "usecPainK";
|
||||
Reference in New Issue
Block a user