mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fd5e56ffbc
* Changed sorting + minor cleanup * Update addons/arsenal/functions/fnc_fillLeftPanel.sqf Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> * check and log missing extended info * fix extended loadout logging * Made voice stuff config case * use lowercase voice everywhere * check loadout voice against configCase * Update fnc_verifyLoadout.sqf * Update addons/arsenal/functions/fnc_verifyLoadout.sqf Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> * Update addons/arsenal/functions/fnc_verifyLoadout.sqf Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> * Update addons/arsenal/functions/fnc_verifyLoadout.sqf --------- Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com> Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
31 lines
726 B
Plaintext
31 lines
726 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: johnb43
|
|
* Returns an item's config case sensitive name.
|
|
*
|
|
* Arguments:
|
|
* 0: Class name (item or object) <STRING>
|
|
*
|
|
* Return Value:
|
|
* Config case item name ("" if config is not found) <STRING>
|
|
*
|
|
* Example:
|
|
* ["arifle_AK12_F"] call ace_common_fnc_getConfigName
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
params ["_className"];
|
|
|
|
(uiNamespace getVariable QGVAR(configNames)) getOrDefaultCall [toLowerANSI _className, {
|
|
private _config = configNull;
|
|
|
|
{
|
|
_config = configFile >> _x >> _className;
|
|
|
|
if (isClass _config) exitWith {};
|
|
} forEach ["CfgWeapons", "CfgMagazines", "CfgGlasses", "CfgVehicles", "CfgVoice", "CfgUnitInsignia"];
|
|
|
|
configName _config
|
|
}, true]
|