Skip to content

Commit

Permalink
All - HEMTT Suggestions (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-MF authored Jan 6, 2025
1 parent 2c64797 commit 999ea28
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion addons/apollo/functions/fnc_playerSingletonSave.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if (["acre_api"] call ACEFUNC(common,isModLoaded)) then {
};

// Add earplugs to uniform if has them plugged in (temporary until Variables support)
if (_player call ACEFUNC(hearing,hasEarPlugsIn) && {!((_loadout select 3) isEqualTo [])}) then {
if (_player call ACEFUNC(hearing,hasEarPlugsIn) && {((_loadout select 3) isNotEqualTo [])}) then {
((_loadout select 3) select 1) pushBack ["ACE_EarPlugs", 1];
};

Expand Down
2 changes: 1 addition & 1 deletion addons/armory/functions/fnc_getBaseVariant.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (_isScriptedOpticClass || {_isScriptedOpticType}) then {
} forEach configProperties [configFile >> "CBA_CarryHandleTypes"];

TRACE_2("Base classes",_itemClass,_baseClasses);
if !(_baseClasses isEqualTo []) exitWith {
if (_baseClasses isNotEqualTo []) exitWith {
_itemClass = configName (_baseClasses select 0)
};
_itemClass
Expand Down
2 changes: 1 addition & 1 deletion addons/bodybag/functions/fnc_moveInventory.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private _nearHolders = nearestObjects [_bodybag, ["WeaponHolderSimulated"], 3];
TRACE_1("Near Holders",_nearHolders);
{
private _holderWeapons = ((getWeaponCargo _x) select 0) select {_x in _weapons};
if !(_holderWeapons isEqualTo []) exitWith {
if (_holderWeapons isNotEqualTo []) exitWith {
deleteVehicle _x;
};
} forEach _nearHolders;
2 changes: 1 addition & 1 deletion addons/insurgents/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private _configFile = configFile >> QGVAR(gear);
{
private _rootConfig = _x;
{
if (!(_rootConfig isEqualTo _configFile) || {GEAR_ENABLED(configName _x)}) then {
if ((_rootConfig isNotEqualTo _configFile) || {GEAR_ENABLED(configName _x)}) then {
LOG_1("Parsing random gear - %1",_x);
{
private _key = configName _x;
Expand Down
2 changes: 1 addition & 1 deletion addons/insurgents/functions/fnc_randomizeGear.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ params [
private _currentLoadout = getUnitLoadout _unit;
_currentLoadout set [7, ""]; // ignore facewear

if (!local _unit || {!(EMPTY_LOADOUT isEqualTo _currentLoadout) || {is3DEN}}) exitWith {
if (!local _unit || {(EMPTY_LOADOUT isNotEqualTo _currentLoadout) || {is3DEN}}) exitWith {
LOG_1("Unit modified, no randomization - %1",_unit);
};

Expand Down
2 changes: 1 addition & 1 deletion addons/ratelmarker/functions/fnc_prepareQRM.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if (GVAR(QuickReferenceMarkerMode) == 2) then {

private _markerPos = terrainIntersectAtASL [_traceBegin, _traceEnd];

if !(_markerPos isEqualTo [0, 0, 0]) then {
if (_markerPos isNotEqualTo [0, 0, 0]) then {
[_markerPos] call FUNC(createQRM);
} else {
LLSTRING(QRM_Create) call CBA_fnc_notify;
Expand Down
4 changes: 2 additions & 2 deletions addons/shootingrange/functions/fnc_configure.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if (_targetsOld isEqualTo []) exitWith {
private _allTargetsNew = _targetsNew + _targetsInvalidNew;
private _allTargetsOld = _targetsOld + _targetsInvalidOld;

if (!(_targetsNew isEqualTo []) && {count (_allTargetsNew select {!(_x in _allTargetsOld)}) > 0}) exitWith {
if (_targetsNew isNotEqualTo [] && {count (_allTargetsNew select {!(_x in _allTargetsOld)}) > 0}) exitWith {
ERROR_1("Unknown (invalid) target found on Shooting Range%1! Only targets defined on mission start can be configured at run-time!",_name);
false
};
Expand All @@ -85,7 +85,7 @@ private _allTargetsOldControllers = [];
} forEach (_x getVariable [QGVAR(controllers), []]);
} forEach _allTargetsOld;

if (_allTargetsNewControllers isEqualTo [] || {!(_allTargetsNewControllers isEqualTo _allTargetsOldControllers)}) exitWith {
if (_allTargetsNewControllers isEqualTo [] || {_allTargetsNewControllers isNotEqualTo _allTargetsOldControllers}) exitWith {
ERROR_1("Controllers not matching for old and new targets on Shooting Range%1! Make sure targets from other ranges or non-defined targets are not used!",_name);
false
};
Expand Down
2 changes: 1 addition & 1 deletion addons/shootingrange/functions/fnc_create.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ if (count _triggerMarkers != count _triggerMarkersFiltered) then {
_triggerMarkers = _triggerMarkersFiltered;

// Defaults
if !(_name isEqualTo "") then {
if (_name isNotEqualTo "") then {
_name = [" (", _name, ")"] joinString "";
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (!(["tac_apollo"] call ACEFUNC(common,isModLoaded))) then {
if (_mouseOverType != "OBJECT" || {_mouseOverUnit isKindOf "CAManBase"}) then {
[LSTRING(PlaceOnObject)] call ACEFUNC(common,displayTextStructured);
} else {
if !((_mouseOverUnit getVariable [QEGVAR(apollo,vehicleID), "None"]) isEqualTo "None") then {
if ((_mouseOverUnit getVariable [QEGVAR(apollo,vehicleID), "None"]) isNotEqualTo "None") then {
[LSTRING(AlreadyInChronos)] call ACEFUNC(common,displayTextStructured);
} else {
[QGVAR(addObjectToChronos), [_mouseOverUnit, ace_player]] call CBA_fnc_serverEvent;
Expand Down

0 comments on commit 999ea28

Please sign in to comment.