mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-26 11:43:54 +03:00
Organize files a bit and removed non source pbo's
This commit is contained in:
26
SQF/dayz_code/medical/publicEH/medMorphine.sqf
Normal file
26
SQF/dayz_code/medical/publicEH/medMorphine.sqf
Normal file
@@ -0,0 +1,26 @@
|
||||
// animHealed.sqf
|
||||
private["_array","_unit","_medic","_display","_control","_hitLegs","_hitArms"];
|
||||
disableserialization;
|
||||
_array = _this; //_this select 0;
|
||||
_unit = _array select 0;
|
||||
_medic = _array select 1;
|
||||
|
||||
if (_unit == player) then {
|
||||
r_fracture_legs = false;
|
||||
r_fracture_arms = false;
|
||||
_unit setHit["legs",0];
|
||||
_unit setHit["hands",0];
|
||||
|
||||
//Ensure Control is visible
|
||||
_display = uiNamespace getVariable 'DAYZ_GUI_display';
|
||||
_control = _display displayCtrl 1203;
|
||||
_control ctrlShow false;
|
||||
|
||||
_id = false spawn dayz_disableRespawn;
|
||||
};
|
||||
_unit setVariable ["hit_legs",0,false];
|
||||
_unit setVariable ["hit_hands",0,false];
|
||||
|
||||
if (isServer) then {
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
};
|
||||
Reference in New Issue
Block a user