mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 20:12:20 +03:00
+ Increased raise horde distance to 65m. + decreased raise horde action timer to 7 seconds. + sync with 1.7.6.1 CE
29 lines
660 B
Plaintext
29 lines
660 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];
|
|
[player,20] call player_humanityChange;
|
|
};
|
|
|
|
player removeMagazine "ItemPainkiller";
|
|
|
|
sleep 1;
|
|
//clear the healed player's vision
|
|
//["usecPainK",[_unit,player]] call broadcastRpcCallAll;
|
|
usecPainK = [_unit,player];
|
|
publicVariable "usecPainK";
|