mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e06c6f7835
* General - Replace toLower with toLowerANSI where applicable * whoops Co-authored-by: PabstMirror <pabstmirror@gmail.com> * Update addons/repair/functions/fnc_setHitPointDamage.sqf Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * Update addons/repair/dev/draw_showRepairInfo.sqf Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * Update addons/tagging/XEH_preStart.sqf Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * Update addons/vehicle_damage/functions/fnc_handleCookoff.sqf Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * Update addons/tagging/XEH_preStart.sqf Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * comparment -> compartment * Update fnc_showHud.sqf * Update fnc_registerObjects.sqf * Update addons/common/functions/fnc_cbaSettings_settingChanged.sqf --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
48 lines
2.4 KiB
Plaintext
48 lines
2.4 KiB
Plaintext
// PabstMirror
|
|
// ["vehicleTransportInventory"] call ace_common_fnc_runTests;
|
|
// execVM "z\ace\addons\common\dev\test_vehicleInventory.sqf";
|
|
|
|
private _testPass = true;
|
|
|
|
private _vehicles = configProperties [configFile >> "CfgVehicles", "(isClass _x)", true];
|
|
{
|
|
private _vehType = configName _x;
|
|
{
|
|
private _name = getText (_x >> "name");
|
|
if (_name != "MineDetector") then { // Vanilla mixes up mineDetector alot?
|
|
private _weaponConfig = configFile >> "CfgWeapons" >> _name;
|
|
private _glassesConfig = configFile >> "CfgGlasses" >> _name;
|
|
if (((!isClass _weaponConfig) || {(getNumber (_weaponConfig >> "type")) in [1,2,4]}) && {!isClass _glassesConfig}) then {
|
|
diag_log text format ["%1 -> TransportItems -> %2 = Bad", _vehType, _name];
|
|
if ("ace" in toLowerANSI (_vehType + _name)) then { _testPass = false; };
|
|
};
|
|
};
|
|
} forEach (configProperties [_x >> "TransportItems", "isClass _x", true]);
|
|
{
|
|
private _name = getText (_x >> "weapon");
|
|
private _weaponConfig = configFile >> "CfgWeapons" >> _name;
|
|
if ((!isClass _weaponConfig) || {!((getNumber (_weaponConfig >> "type")) in [1,2,4])}) then {
|
|
diag_log text format ["%1 -> TransportWeapons -> %2 = Bad", _vehType, _name];
|
|
if ("ace" in toLowerANSI (_vehType + _name)) then { _testPass = false; };
|
|
};
|
|
} forEach (configProperties [_x >> "TransportWeapons", "isClass _x", true]);
|
|
{
|
|
private _name = getText (_x >> "magazine");
|
|
private _magConfig = configFile >> "CfgMagazines" >> _name;
|
|
if ((!isClass _magConfig)) then {
|
|
diag_log text format ["%1 -> TransportMagazines -> %2 = Bad", _vehType, _name];
|
|
if ("ace" in toLowerANSI (_vehType + _name)) then { _testPass = false; };
|
|
};
|
|
} forEach (configProperties [_x >> "TransportMagazines", "isClass _x", true]);
|
|
{
|
|
private _name = getText (_x >> "backpack");
|
|
private _vehConfig = configFile >> "CfgVehicles" >> _name;
|
|
if ((!isClass _vehConfig)) then {
|
|
diag_log text format ["%1 -> TransportBackpacks -> %2 = Bad", _vehType, _name];
|
|
if ("ace" in toLowerANSI (_vehType + _name)) then { _testPass = false; };
|
|
};
|
|
} forEach (configProperties [_x >> "TransportBackpacks", "isClass _x", true]);
|
|
} forEach _vehicles;
|
|
|
|
_testPass
|