Removed blacklist functions and settings

This commit is contained in:
lambdatiger 2024-02-15 18:13:06 -06:00
parent 7e54280ee9
commit 668d222a3f
4 changed files with 0 additions and 84 deletions

View File

@ -1,4 +1,3 @@
PREP(addBlackList);
PREP(dev_addRound);
PREP(dev_clearTraces);
PREP(dev_debugAmmo);
@ -18,7 +17,6 @@ PREP(findReflections);
PREP(getMaterialInfo);
PREP(getSpallInfo);
PREP(getFragInfo);
PREP(initBlackList);
PREP(initMaterialCache);
PREP(initRound);
PREP(shouldFrag);

View File

@ -1,25 +0,0 @@
#include "..\script_component.hpp"
/*
* Author: Jaynus, NouberNou, Lambda.Tiger
* Adds a round type to the blacklist (will be ignored).
*
* Arguments:
* 0: Projectile <OBJECT> or <STRING>
*
* Return Value:
* None
*
* Example:
* [projectile] call ace_frag_fnc_addBlackList
*
* Public: No
*/
params ["_projectile"];
TRACE_1("addBlackList",_round);
if (_projectile isEqualType objNull) then {
_projectile = typeOf _projectile;
};
GVAR(shouldFragCache) set [_projectile, false];

View File

@ -1,46 +0,0 @@
#include "..\script_component.hpp"
/*
* Author: Lambda.Tiger
* Adds setting defined blacklisted rounds to blacklist.
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* call ace_frag_fnc_addBlackList
*
* Public: No
*/
TRACE_1("Beginning blacklist init",GVAR(blackList));
// could improve text parsing of CBA setting string
private _convArray = parseSimpleArray GVAR(blackList);
if (_convArray isEqualTo []) exitWith {
TRACE_1("Empty blacklist",_convArray);
};
// Add CBA setting blacklist to blacklist and log errors
private _errors = 0;
{
private _ammo = _x;
if !(_ammo isEqualType "") then {
INFO_1("Improper ammo string at index %1",_forEachIndex);
INC(_errors);
continue;
};
if (!isClass (configFile >> "CfgAmmo" >> _ammo)) then {
INFO_1("Ammo class: %1 does not exist",str _ammo);
INC(_errors);
continue;
};
GVAR(shouldFragCache) set [_ammo, false];
} forEach _convArray;
INFO_2("Initialized blacklist. Total items found: %1, number of items failed: %2",count _convArray,_errors);

View File

@ -45,17 +45,6 @@ private _category = format ["ACE %1", localize LSTRING(Module_DisplayName)];
1
] call CBA_fnc_addSetting;
[
QGVAR(blackList),
"EDITBOX",
[LSTRING(DefBlackList), LSTRING(DefBlackList_Desc)],
[_category, LSTRING(Frag)],
QUOTE(['B_556x45_Ball']),
1,
{},
true
] call CBA_fnc_addSetting;
[
QGVAR(spallIntensity),
"SLIDER",