mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Merge branch 'master' of https://github.com/EpochModTeam/DayZ-Epoch
This commit is contained in:
@@ -8,7 +8,7 @@ if (dayz_actionInProgress) exitWith {};
|
|||||||
- [] call fnc_usec_damageActions;
|
- [] call fnc_usec_damageActions;
|
||||||
************************************************************/
|
************************************************************/
|
||||||
|
|
||||||
private ["_menClose","_hasPatient","_vehicle","_inVehicle","_isClose","_assignedRole","_driver","_action","_turret","_weapons","_weaponName","_crew","_unconscious_crew","_patients","_vehType","_unit","_antibiotics","_bloodBags","_unconscious","_lowBlood","_injured","_hasSepsis","_inPain","_legsBroke","_armsBroke","_infected","_hasBandage","_hasSepsisBandage","_hasEpi","_hasMorphine","_hasSplint","_hasPainkillers","_hasEmptyBag","_hasTester","_hasAntibiotics","_hasBloodBag","_vehClose","_hasVehicle","_action1","_action2","_action3","_y","_playerMagazines","_isFriendly"];
|
private ["_menClose","_hasPatient","_vehicle","_inVehicle","_isClose","_assignedRole","_driver","_action","_turret","_weapons","_weaponName","_crew","_unconscious_crew","_patients","_vehType","_unit","_antibiotics","_bloodBags","_unconscious","_lowBlood","_injured","_hasSepsis","_inPain","_legsBroke","_armsBroke","_infected","_hasBandage","_hasSepsisBandage","_hasEpi","_hasMorphine","_hasSplint","_hasPainkillers","_hasEmptyBag","_hasTester","_hasAntibiotics","_hasBloodBag","_vehClose","_action1","_action2","_action3","_playerMagazines","_isFriendly"];
|
||||||
|
|
||||||
_menClose = cursorTarget;
|
_menClose = cursorTarget;
|
||||||
_hasPatient = alive _menClose;
|
_hasPatient = alive _menClose;
|
||||||
@@ -135,7 +135,6 @@ if (isPlayer cursorTarget) then {
|
|||||||
_hasBloodBag = Array_Any(_playerMagazines, {_this in _bloodBags});
|
_hasBloodBag = Array_Any(_playerMagazines, {_this in _bloodBags});
|
||||||
|
|
||||||
_vehClose = (getPosATL player) nearEntities [["Car","Tank","Helicopter","Plane","StaticWeapon","Ship"],5];
|
_vehClose = (getPosATL player) nearEntities [["Car","Tank","Helicopter","Plane","StaticWeapon","Ship"],5];
|
||||||
_hasVehicle = ({alive _x} count _vehClose > 0);
|
|
||||||
|
|
||||||
if (_hasPatient) then {
|
if (_hasPatient) then {
|
||||||
//Allow player to drag
|
//Allow player to drag
|
||||||
@@ -150,18 +149,11 @@ if (isPlayer cursorTarget) then {
|
|||||||
r_player_actions set [count r_player_actions, _action3];
|
r_player_actions set [count r_player_actions, _action3];
|
||||||
};
|
};
|
||||||
//Load Vehicle
|
//Load Vehicle
|
||||||
if (_hasVehicle && _unconscious) then {
|
if (count _vehClose > 0 && _unconscious) then {
|
||||||
_y = 0;
|
|
||||||
r_action = true;
|
r_action = true;
|
||||||
_unit = _unit;
|
_vehicle = _vehClose select 0;
|
||||||
_vehicle = _vehClose select _y;
|
_vehType = getText (configFile >> "CfgVehicles" >> typeOf _vehicle >> "displayName");
|
||||||
while{((!alive _vehicle) && (_y < (count _vehClose)))} do {
|
NORRN_loadWoundedAction = _unit addAction [format[localize "str_actions_medical_03",_vehType], "\z\addons\dayz_code\medical\load\load_act.sqf",[player,_vehicle,_unit], 0, true, true];
|
||||||
_y = _y + 1;
|
|
||||||
_vehicle = (_vehClose select _y);
|
|
||||||
_vehType = getText (configFile >> "CfgVehicles" >> typeOf _unit >> "displayName");
|
|
||||||
uiSleep 0.001;
|
|
||||||
};
|
|
||||||
_action = _unit addAction [format[localize "str_actions_medical_03",_vehType], "\z\addons\dayz_code\medical\load\load_act.sqf",[player,_vehicle,_unit], 0, true, true];
|
|
||||||
r_player_actions set [count r_player_actions,_action];
|
r_player_actions set [count r_player_actions,_action];
|
||||||
};
|
};
|
||||||
//Allow player to bandage
|
//Allow player to bandage
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "\z\addons\dayz_code\util\array.hpp";
|
#include "\z\addons\dayz_code\util\array.hpp";
|
||||||
|
|
||||||
private ["_msg","_antibiotics","_hasAntibiotics","_id","_hasMeds","_unit"];
|
private ["_msg","_antibiotics","_hasAntibiotics","_id","_hasMeds","_unit","_medsUsed"];
|
||||||
|
|
||||||
if (count _this > 2) then {
|
if (count _this > 2) then {
|
||||||
_unit = (_this select 3) select 0;
|
_unit = (_this select 3) select 0;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ r_action = false;
|
|||||||
r_action_load = false;
|
r_action_load = false;
|
||||||
call fnc_usec_medic_removeActions;
|
call fnc_usec_medic_removeActions;
|
||||||
|
|
||||||
_dragger removeAction NORRN_loadWoundedAction;
|
_wounded removeAction NORRN_loadWoundedAction;
|
||||||
|
|
||||||
if ((_vcl emptyPositions "cargo") > 0) then
|
if ((_vcl emptyPositions "cargo") > 0) then
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ _args = _this select 3;
|
|||||||
_name = _args select 0;
|
_name = _args select 0;
|
||||||
_vcl = _args select 1;
|
_vcl = _args select 1;
|
||||||
_crewVcl = crew _vcl;
|
_crewVcl = crew _vcl;
|
||||||
|
LHA_Deck = [];
|
||||||
|
LHA_height = 0;
|
||||||
|
|
||||||
//_name removeAction NORRN_pullOutAction; // NORRN_pullOutAction is defined anywhere
|
//_name removeAction NORRN_pullOutAction; // NORRN_pullOutAction is defined anywhere
|
||||||
|
|
||||||
@@ -34,4 +36,4 @@ for [{ _loop = 0 },{ _loop < count _crewVcl },{ _loop = _loop + 1}] do
|
|||||||
uiSleep 0.1;
|
uiSleep 0.1;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (true) exitWith {};
|
if (true) exitWith {};
|
||||||
|
|||||||
@@ -78,4 +78,9 @@ while {r_doLoop} do {
|
|||||||
|
|
||||||
//Rerun the loop
|
//Rerun the loop
|
||||||
sleep 1;
|
sleep 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (((r_player_blood / r_player_bloodTotal) >= 0.35) and (player getVariable["USEC_lowBlood",false])) then {
|
||||||
|
r_player_lowblood = false;
|
||||||
|
player setVariable["USEC_lowBlood",false,true];
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user