mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix medical actions in vehicles
This commit is contained in:
@@ -35,6 +35,11 @@ while {r_doLoop} do {
|
|||||||
if (r_interrupt) then {
|
if (r_interrupt) then {
|
||||||
r_doLoop = false;
|
r_doLoop = false;
|
||||||
};
|
};
|
||||||
|
if (vehicle player != player) then {
|
||||||
|
sleep 3;
|
||||||
|
r_doLoop = false;
|
||||||
|
_finished = true;
|
||||||
|
};
|
||||||
sleep 0.1;
|
sleep 0.1;
|
||||||
};
|
};
|
||||||
r_doLoop = false;
|
r_doLoop = false;
|
||||||
@@ -53,7 +58,7 @@ if (_finished) then {
|
|||||||
usecBandage = [_unit,player];
|
usecBandage = [_unit,player];
|
||||||
publicVariable "usecBandage";
|
publicVariable "usecBandage";
|
||||||
|
|
||||||
if (_unit == player) then {
|
if ((_unit == player) or (vehicle player != player)) then {
|
||||||
//Self Healing
|
//Self Healing
|
||||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medBandaged.sqf";
|
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medBandaged.sqf";
|
||||||
dayz_sourceBleeding = objNull;
|
dayz_sourceBleeding = objNull;
|
||||||
|
|||||||
@@ -34,6 +34,11 @@ while {r_doLoop} do {
|
|||||||
if (r_interrupt) then {
|
if (r_interrupt) then {
|
||||||
r_doLoop = false;
|
r_doLoop = false;
|
||||||
};
|
};
|
||||||
|
if (vehicle player != player) then {
|
||||||
|
sleep 3;
|
||||||
|
r_doLoop = false;
|
||||||
|
_finished = true;
|
||||||
|
};
|
||||||
sleep 0.1;
|
sleep 0.1;
|
||||||
};
|
};
|
||||||
r_doLoop = false;
|
r_doLoop = false;
|
||||||
@@ -47,7 +52,7 @@ if (_finished) then {
|
|||||||
_display closeDisplay 0;
|
_display closeDisplay 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_unit == player) then {
|
if ((_unit == player) or (vehicle player != player)) then {
|
||||||
//Self Healing
|
//Self Healing
|
||||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medMorphine.sqf";
|
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medMorphine.sqf";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ if(_num_removed == 1) then {
|
|||||||
player playActionNow "Gear";
|
player playActionNow "Gear";
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_unit == player) then {
|
if ((_unit == player) or (vehicle player != player)) then {
|
||||||
//Self Healing
|
//Self Healing
|
||||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medPainkiller.sqf";
|
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medPainkiller.sqf";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ private ["_unit"];
|
|||||||
_unit = _this select 0;
|
_unit = _this select 0;
|
||||||
|
|
||||||
_unit switchMove "AmovPpneMstpSnonWnonDnon_healed";
|
_unit switchMove "AmovPpneMstpSnonWnonDnon_healed";
|
||||||
if (_unit == player) then {
|
if ((_unit == player) or (vehicle player != player)) then {
|
||||||
r_player_unconscious = false;
|
r_player_unconscious = false;
|
||||||
r_player_injured = false;
|
r_player_injured = false;
|
||||||
};
|
};
|
||||||
@@ -5,7 +5,7 @@ _array = _this; //_this select 0;
|
|||||||
_unit = _array select 0;
|
_unit = _array select 0;
|
||||||
_medic = _array select 1;
|
_medic = _array select 1;
|
||||||
|
|
||||||
if (_unit == player) then {
|
if ((_unit == player) or (vehicle player != player)) then {
|
||||||
r_player_injured = false;
|
r_player_injured = false;
|
||||||
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
|
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
|
||||||
r_player_handler = false;
|
r_player_handler = false;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ _array = _this; //_this select 0;
|
|||||||
_unit = _array select 0;
|
_unit = _array select 0;
|
||||||
_medic = _array select 1;
|
_medic = _array select 1;
|
||||||
|
|
||||||
if (_unit == player) then {
|
if ((_unit == player) or (vehicle player != player)) then {
|
||||||
r_fracture_legs = false;
|
r_fracture_legs = false;
|
||||||
r_fracture_arms = false;
|
r_fracture_arms = false;
|
||||||
_unit setHit["legs",0];
|
_unit setHit["legs",0];
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ _array = _this; //_this select 0;
|
|||||||
_unit = _array select 0;
|
_unit = _array select 0;
|
||||||
_medic = _array select 1;
|
_medic = _array select 1;
|
||||||
|
|
||||||
if (_unit == player) then {
|
if ((_unit == player) or (vehicle player != player)) then {
|
||||||
r_player_inpain = false;
|
r_player_inpain = false;
|
||||||
R3F_TIRED_Accumulator = 0;
|
R3F_TIRED_Accumulator = 0;
|
||||||
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
|
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ fnc_usec_damageUnconscious = {
|
|||||||
_unit = _this select 0;
|
_unit = _this select 0;
|
||||||
_damage = _this select 1;
|
_damage = _this select 1;
|
||||||
_inVehicle = (vehicle _unit != _unit);
|
_inVehicle = (vehicle _unit != _unit);
|
||||||
if (_unit == player) then {
|
if ((_unit == player) or (vehicle player != player)) then {
|
||||||
r_player_timeout = round((((random 2) max 0.1) * _damage) * 20);
|
r_player_timeout = round((((random 2) max 0.1) * _damage) * 20);
|
||||||
r_player_unconscious = true;
|
r_player_unconscious = true;
|
||||||
player setVariable["medForceUpdate",true,true];
|
player setVariable["medForceUpdate",true,true];
|
||||||
|
|||||||
Reference in New Issue
Block a user