mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
Cleanup duplicate and unused strings
Cargo count is shown at the top of the gear menu now
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
private ["_vehicle","_class","_maxMagazines","_maxWeapons","_maxBackpacks","_magazineCount","_weaponsCount","_backpackCount","_magazineCount_raw","_weaponsCount_raw","_backpackCount_raw","_vehicle_gear_count"];
|
||||
_vehicle = _this select 3;
|
||||
_class = typeOf _vehicle;
|
||||
|
||||
_vehicle_gear_count = {
|
||||
private "_counter";
|
||||
_counter = 0;
|
||||
{
|
||||
_counter = _counter + _x;
|
||||
} count _this;
|
||||
_counter
|
||||
};
|
||||
|
||||
// Get max magazines count
|
||||
_maxMagazines = getNumber (configFile >> "CfgVehicles" >> _class >> "transportMaxMagazines");
|
||||
|
||||
// Get max weapon count
|
||||
_maxWeapons = getNumber (configFile >> "CfgVehicles" >> _class >> "transportMaxWeapons");
|
||||
|
||||
// Get max backpack count
|
||||
_maxBackpacks = getNumber (configFile >> "CfgVehicles" >> _class >> "transportmaxbackpacks");
|
||||
|
||||
// Count and show magazines available space
|
||||
_magazineCount_raw = getMagazineCargo _vehicle;
|
||||
|
||||
// Count and show weapons available space
|
||||
_weaponsCount_raw = getWeaponCargo _vehicle;
|
||||
|
||||
// Count and show backpacks available space
|
||||
_backpackCount_raw = getBackpackCargo _vehicle;
|
||||
|
||||
// Count and show magazines available space
|
||||
_magazineCount = (_magazineCount_raw select 1) call _vehicle_gear_count;
|
||||
|
||||
// Count and show weapons available space
|
||||
_weaponsCount = (_weaponsCount_raw select 1) call _vehicle_gear_count;
|
||||
|
||||
// Count and show weapons available space
|
||||
_backpackCount = (_backpackCount_raw select 1) call _vehicle_gear_count;
|
||||
|
||||
cutText [format[(localize "str_epoch_player_1"),_magazineCount,_maxMagazines,_weaponsCount,_maxWeapons,_backpackCount,_maxBackpacks], "PLAIN DOWN"];
|
||||
@@ -101,7 +101,7 @@ switch _option do {
|
||||
publicVariableServer "PVDZE_maintainArea";
|
||||
} else {
|
||||
{player addMagazine _x;} count _temp_removed_array;
|
||||
cutText [format[(localize "STR_EPOCH_ACTIONS_5"),_removed_total,_tobe_removed_total], "PLAIN DOWN"];
|
||||
cutText [format[(localize "STR_EPOCH_PLAYER_145"),_removed_total,_tobe_removed_total], "PLAIN DOWN"];
|
||||
};
|
||||
} else {
|
||||
_textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName");
|
||||
|
||||
@@ -92,7 +92,7 @@ if (_proceed) then {
|
||||
};
|
||||
} else {
|
||||
_textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName");
|
||||
cutText [format[(localize "str_epoch_player_146"),_missingQty, _textMissing], "PLAIN DOWN"];
|
||||
cutText [format[(localize "STR_EPOCH_ACTIONS_6"),_missingQty, _textMissing], "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -256,7 +256,7 @@ if (_canDo) then {
|
||||
} else {
|
||||
// Refund parts since we failed
|
||||
{player addMagazine _x; } forEach _temp_removed_array;
|
||||
cutText [format[(localize "str_epoch_player_151"),_removed_total,_tobe_removed_total], "PLAIN DOWN"];
|
||||
cutText [format[(localize "STR_EPOCH_PLAYER_145"),_removed_total,_tobe_removed_total], "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
} else {
|
||||
|
||||
@@ -177,7 +177,7 @@ if ((count _upgrade) > 0) then {
|
||||
};
|
||||
} else {
|
||||
_textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName");
|
||||
cutText [format[(localize "str_epoch_player_146"),_missingQty, _textMissing], "PLAIN DOWN"];
|
||||
cutText [format[(localize "STR_EPOCH_ACTIONS_6"),_missingQty, _textMissing], "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
} else {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
private ["_trader_data", "_dialog"];
|
||||
|
||||
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_97","PLAIN DOWN"];};
|
||||
if (DZE_ActionInProgress) exitWith {cutText [localize "STR_EPOCH_PLAYER_103","PLAIN DOWN"];};
|
||||
|
||||
_trader_data = (_this select 3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user