mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
This variable is not useful. If you change it you need to copy all the AT files to your mission. It is fewer files in the mission to just overwrite the path in compiles and fn_selfActions. Also fixed mistake with not replacing macros in scripts.txt with their actual values.
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
#define STRINGIFY(x) #x
|
|
#define PATH(sub_path) STRINGIFY(\z\addons\dayz_code\actions\AdvancedTrading\functions\sub_path)
|
|
#define CPP compile preprocessFileLineNumbers
|
|
|
|
private ["_tempGemList","_tempWorthList","_largest","_LargestGem"];
|
|
|
|
Z_SellingFrom = 2;
|
|
DZE_GemList = [];
|
|
DZE_GemWorthList = [];
|
|
|
|
_tempGemList = [];
|
|
_tempWorthList = [];
|
|
|
|
{
|
|
_tempGemList set [(count _tempGemList), (_x select 0)];
|
|
_tempWorthList set [(count _tempWorthList), (_x select 1)];
|
|
} count DZE_GemWorthArray;
|
|
|
|
for "_i" from 0 to ((count _tempGemList) - 1) do {
|
|
_largest = -1e9;
|
|
|
|
{
|
|
_largest = _largest max _x;
|
|
} forEach _tempWorthList;
|
|
|
|
_LargestGem = _tempGemList select (_tempWorthList find _largest);
|
|
_tempWorthList = _tempWorthList - [_largest];
|
|
_tempGemList = _tempGemList - [_LargestGem];
|
|
DZE_GemList set [(count DZE_GemList), _LargestGem];
|
|
DZE_GemWorthList set [(count DZE_GemWorthList), _largest];
|
|
};
|
|
|
|
Z_checkCloseVehicle = CPP PATH(z_at_checkCloseVehicle.sqf);
|
|
Z_canAfford = CPP PATH(z_at_canAfford.sqf);
|
|
Z_calcFreeSpace = CPP PATH(z_at_calcFreeSpace.sqf);
|
|
Z_returnChange = CPP PATH(z_at_returnChange.sqf);
|
|
Z_payDefault = CPP PATH(z_at_payDefault.sqf);
|
|
z_calcDefaultCurrencyNoImg = CPP PATH(z_at_calcDefaultCurrencyNoImg.sqf);
|
|
ZUPA_fnc_removeWeaponsAndMagazinesCargo = CPP PATH(zupa_fnc_removeWeaponsAndMagazinesCargo.sqf);
|