mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
Organize files a bit and removed non source pbo's
This commit is contained in:
34
SQF/dayz_code/medical/painkiller.sqf
Normal file
34
SQF/dayz_code/medical/painkiller.sqf
Normal file
@@ -0,0 +1,34 @@
|
||||
// bleed.sqf
|
||||
|
||||
private ["_id","_unit"];
|
||||
_unit = (_this select 3) select 0;
|
||||
|
||||
|
||||
|
||||
call fnc_usec_medic_removeActions;
|
||||
r_action = false;
|
||||
|
||||
_num_removed = ([player,"ItemPainkiller"] call BIS_fnc_invRemove);
|
||||
if(_num_removed == 1) then {
|
||||
|
||||
_unit setVariable ["USEC_inPain", false, true];
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
sleep 1;
|
||||
//clear the healed player's vision
|
||||
//["usecPainK",[_unit,player]] call broadcastRpcCallAll;
|
||||
usecPainK = [_unit,player];
|
||||
publicVariable "usecPainK";
|
||||
};
|
||||
Reference in New Issue
Block a user