mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 11:42:38 +03:00
remove unused code
This commit is contained in:
@@ -142,32 +142,6 @@ if (!isNull _menClose and _hasPatient and !r_drag_sqf and !r_action and !_inVehi
|
||||
r_player_actions set [count r_player_actions,_action];
|
||||
};
|
||||
|
||||
//CAN WE ISSUE ANOTHER KIND OF AMMUNITION?
|
||||
if (count weapons _unit > 0) then {
|
||||
//Get mag array
|
||||
_weapon = weapons _unit select 0;
|
||||
_magTypes = getArray(configFile >> "cfgWeapons" >> _weapon >> "magazines");
|
||||
{
|
||||
_ammoSerial = (USEC_LogisticsItems find _x);
|
||||
if (_ammoSerial > -1) then {
|
||||
//Have the item type
|
||||
_ammoQty = ((USEC_LogisticsDetail select _ammoSerial) select 1);
|
||||
if (_ammoQty > 0) then {
|
||||
//Have at least one
|
||||
r_action = true;
|
||||
_displayName = getText(configFile >> "cfgMagazines" >> _x >> "displayName");
|
||||
_action = _unit addAction [format[localize "str_actions_medical_11",_displayName], "\z\addons\dayz_code\actions\logistics_loadmag.sqf",[_unit,_x], 0, false, true];
|
||||
r_player_actions set [count r_player_actions,_action];
|
||||
};
|
||||
};
|
||||
} forEach _magTypes;
|
||||
};
|
||||
//CAN CARRY BACKPACK
|
||||
if ((_type in USEC_PackableObjects) and (_classbag == "")) then {
|
||||
r_action = true;
|
||||
_action = _unit addAction [format[localize "str_actions_medical_12",_typeVeh], "\z\addons\dayz_code\actions\pack.sqf",[_unit], 0, true, true];
|
||||
r_player_actions set [count r_player_actions,_action];
|
||||
};
|
||||
} else {
|
||||
|
||||
// should only fire if cursor target is man and not vehicle
|
||||
@@ -234,4 +208,4 @@ if ((!_isClose or !_hasPatient) and r_action) then {
|
||||
//if (r_player_inpain and !r_player_unconscious) then {
|
||||
// playSound "breath_1";
|
||||
// addCamShake [2, 1, 25];
|
||||
//};
|
||||
//};
|
||||
|
||||
Reference in New Issue
Block a user