Files
DayZ-Epoch/dayz_code/medical/painkiller.sqf
2013-01-18 12:25:49 -06:00

26 lines
582 B
Plaintext

// 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]] call dayzHumanity_code;
};
player removeMagazine "ItemPainkiller";
sleep 1;
//clear the healed player's vision
["usecPainK",[_unit,player]] call broadcastRpcCallAll;