simplifies log types
This commit is contained in:
@@ -220,7 +220,7 @@ private _logItem = {
|
|||||||
params ["_playerObj", "_categoryText", "_itemClassName"];
|
params ["_playerObj", "_categoryText", "_itemClassName"];
|
||||||
private _cfg = _itemClassName call CBA_fnc_getItemConfig;
|
private _cfg = _itemClassName call CBA_fnc_getItemConfig;
|
||||||
diag_log text format[
|
diag_log text format[
|
||||||
"[MILSIM] (logPlayerInventory): Found %1 :: className=""%2"" displayName=""%3"" %4",
|
"[MILSIM] (logPlayerInventory): %1 :: className=""%2"" displayName=""%3"" %4",
|
||||||
_categoryText,
|
_categoryText,
|
||||||
_itemClassName,
|
_itemClassName,
|
||||||
[_cfg] call BIS_fnc_displayName,
|
[_cfg] call BIS_fnc_displayName,
|
||||||
@@ -265,7 +265,7 @@ _items pushBack (uniform _player);
|
|||||||
|
|
||||||
// CHECK INVENTORY
|
// CHECK INVENTORY
|
||||||
diag_log text format[
|
diag_log text format[
|
||||||
"[MILSIM] (logPlayerInventory): Checking inventory :: %1",
|
"[MILSIM] (logPlayerInventory): CHECKING :: %1",
|
||||||
[_player] call _playerInfoString
|
[_player] call _playerInfoString
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -310,22 +310,22 @@ diag_log text format[
|
|||||||
|
|
||||||
{
|
{
|
||||||
_nonCompliantItemsCount = _nonCompliantItemsCount + 1;
|
_nonCompliantItemsCount = _nonCompliantItemsCount + 1;
|
||||||
[_player, "a blacklisted inventory item", _x] call _logItem;
|
[_player, "BLACKLISTED", _x] call _logItem;
|
||||||
} forEach _blacklist;
|
} forEach _blacklist;
|
||||||
|
|
||||||
{
|
{
|
||||||
_nonCompliantItemsCount = _nonCompliantItemsCount + 1;
|
_nonCompliantItemsCount = _nonCompliantItemsCount + 1;
|
||||||
[_player, "a restricted inventory item", _x] call _logItem;
|
[_player, "RESTRICTED", _x] call _logItem;
|
||||||
} forEach _restricted;
|
} forEach _restricted;
|
||||||
|
|
||||||
{
|
{
|
||||||
_nonCompliantItemsCount = _nonCompliantItemsCount + 1;
|
_nonCompliantItemsCount = _nonCompliantItemsCount + 1;
|
||||||
[_player, "a tabbed inventory item", _x] call _logItem;
|
[_player, "TABBED", _x] call _logItem;
|
||||||
} forEach _tabbed;
|
} forEach _tabbed;
|
||||||
|
|
||||||
{
|
{
|
||||||
_nonCompliantItemsCount = _nonCompliantItemsCount + 1;
|
_nonCompliantItemsCount = _nonCompliantItemsCount + 1;
|
||||||
[_player, "a meme inventory item", _x] call _logItem;
|
[_player, "MEME", _x] call _logItem;
|
||||||
} forEach _meme;
|
} forEach _meme;
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -334,11 +334,14 @@ diag_log text format[
|
|||||||
_x in _restrictedItems
|
_x in _restrictedItems
|
||||||
) then {continue}; // Skip items that are already checked
|
) then {continue}; // Skip items that are already checked
|
||||||
_nonCompliantItemsCount = _nonCompliantItemsCount + 1;
|
_nonCompliantItemsCount = _nonCompliantItemsCount + 1;
|
||||||
[_player, "an unlisted thermal item", _x] call _logItem;
|
[_player, "UNLISTED THERMAL", _x] call _logItem;
|
||||||
} forEach _unlisted;
|
} forEach _unlisted;
|
||||||
|
|
||||||
if (_nonCompliantItemsCount isEqualTo 0) then {
|
if (_nonCompliantItemsCount isEqualTo 0) then {
|
||||||
diag_log text format["[MILSIM] (logPlayerInventory): %1's inventory is compliant :: playerName=""%1"" playerUID=""%2""", name _player, getPlayerUID _player];
|
diag_log text format[
|
||||||
|
"[MILSIM] (logPlayerInventory): COMPLIANT :: %1",
|
||||||
|
[_player] call _playerInfoString
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nil
|
nil
|
||||||
Reference in New Issue
Block a user