diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index c71190ce39..08c14747e5 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -23,14 +23,14 @@ All good? Then proceed and fill out the items below.
**Mods (complete and add to the following information):**
- **Arma 3:** `x.xx` [e.g. 1.00 stable, rc, dev]
- **CBA:** `3.x.x` [e.g. 3.0.0 stable, commit hash]
-- **ACE3:** `3.x.x` [eg. 3.0.0 stable, commit hash]
+- **ACE3:** `3.x.x` [e.g. 3.0.0 stable, commit hash]
**Description:**
A clear and concise description of what the bug is.
**Steps to reproduce:**
-_Follow [https://ace3.acemod.org/img/wiki/user/issue_flowchart.webp](this flowchart)!_
+_Follow [this flowchart](https://ace3.acemod.org/img/wiki/user/issue_flowchart.webp)!_
1. _Go to ..._
2. _Click ..._
diff --git a/addons/advanced_throwing/XEH_postInit.sqf b/addons/advanced_throwing/XEH_postInit.sqf
index 930313fce0..774c99b3e6 100644
--- a/addons/advanced_throwing/XEH_postInit.sqf
+++ b/addons/advanced_throwing/XEH_postInit.sqf
@@ -16,9 +16,8 @@ GVAR(ammoMagLookup) = call CBA_fnc_createNamespace;
{
private _ammo = getText (configFile >> "CfgMagazines" >> _x >> "ammo");
if (_ammo != "") then { GVAR(ammoMagLookup) setVariable [_ammo, _x]; };
- } count (getArray (configFile >> "CfgWeapons" >> "Throw" >> _x >> "magazines"));
- nil
-} count getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles");
+ } forEach (getArray (configFile >> "CfgWeapons" >> "Throw" >> _x >> "magazines"));
+} forEach getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles");
// Add keybinds
diff --git a/addons/advanced_throwing/functions/fnc_renderPickUpInteraction.sqf b/addons/advanced_throwing/functions/fnc_renderPickUpInteraction.sqf
index 15cae41585..d45f2add93 100644
--- a/addons/advanced_throwing/functions/fnc_renderPickUpInteraction.sqf
+++ b/addons/advanced_throwing/functions/fnc_renderPickUpInteraction.sqf
@@ -44,8 +44,7 @@
_addedPickUpHelpers pushBack _pickUpHelper;
_throwablesHelped pushBack _x;
};
- nil
- } count _nearThrowables;
+ } forEach _nearThrowables;
_args set [0, getPosASL ACE_player];
_args set [3, _nearThrowables];
@@ -56,11 +55,10 @@
{
// Only handling with attachTo works nicely
_x attachTo [_x getVariable [QGVAR(throwable), objNull], [0, 0, 0]];
- nil
- } count _addedPickUpHelpers;
+ } forEach _addedPickUpHelpers;
} else {
TRACE_1("Cleaning Pick Up Helpers",count _addedPickUpHelpers);
- {deleteVehicle _x} count _addedPickUpHelpers;
+ {deleteVehicle _x} forEach _addedPickUpHelpers;
[_idPFH] call CBA_fnc_removePerFrameHandler;
};
}, 0, [(getPosASL ACE_player) vectorAdd [-100, 0, 0], [], [], []]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/advanced_throwing/stringtable.xml b/addons/advanced_throwing/stringtable.xml
index a63e1e8918..1e0b5ae23f 100644
--- a/addons/advanced_throwing/stringtable.xml
+++ b/addons/advanced_throwing/stringtable.xml
@@ -191,6 +191,8 @@
Mostra informazioni sul vento temporaneamente
一時的に風の情報を表示
바람 정보 임시로 표시
+ Afficher temporairement les informations sur le vent
+ Временно показать информацию о ветре
Temporarily display Wind Info while throwing, to aid in placing smoke grenades effectively.
@@ -198,6 +200,8 @@
Mostra le informazioni sul vento durante il lancio di granate, facilitando il piazzamento ottimale di fumogeni.
投擲行動中に風向きの情報を一時的に表示し、発煙手榴弾の煙幕を効果的に展開しやすくします。
연막탄을 효과적으로 배치하는 데 도움이 되도록 투척하는 동안 일시적으로 바람 정보를 표시합니다.
+ Affiche les informations sur le vent pendant le lancement pour placer les grenades fumigènes plus efficacement.
+ Временно отображайте информацию о ветре во время броска, чтобы помочь эффективно разместить дымовые шашки.
Prepare/Change Throwable
diff --git a/addons/ai/functions/fnc_garrison.sqf b/addons/ai/functions/fnc_garrison.sqf
index 0f9613dd9f..4b8f84fce6 100644
--- a/addons/ai/functions/fnc_garrison.sqf
+++ b/addons/ai/functions/fnc_garrison.sqf
@@ -33,7 +33,7 @@ if (_startingPos isEqualTo [0,0,0]) exitWith {
[LSTRING(GarrisonInvalidPosition)] call EFUNC(common,displayTextStructured);
};
-if (count _unitsArray == 0 || {isNull (_unitsArray select 0)}) exitWith {
+if (_unitsArray isEqualTo [] || {isNull (_unitsArray select 0)}) exitWith {
TRACE_1("fnc_garrison: Units error",_unitsArray);
[LSTRING(GarrisonNoUnits)] call EFUNC(common,displayTextStructured);
};
@@ -43,7 +43,7 @@ if (_fillingRadius >= 50) then {
_buildings = [_buildings] call CBA_fnc_shuffle;
};
-if (count _buildings == 0) exitWith {
+if (_buildings isEqualTo []) exitWith {
TRACE_1("fnc_garrison: Building error",_buildings);
[LSTRING(GarrisonNoBuilding)] call EFUNC(common,displayTextStructured);
};
diff --git a/addons/aircraft/functions/fnc_canShowEject.sqf b/addons/aircraft/functions/fnc_canShowEject.sqf
index 08c55eb781..9239c413a7 100644
--- a/addons/aircraft/functions/fnc_canShowEject.sqf
+++ b/addons/aircraft/functions/fnc_canShowEject.sqf
@@ -30,6 +30,6 @@ _vehicle == vehicle _unit
if (_unit == _x select FULLCREW_UNIT) exitWith {
_ejectVarName = format [QGVAR(ejectAction_%1_%2), _x select FULLCREW_ROLE, _x select FULLCREW_TURRETPATH];
};
- } count fullCrew _vehicle;
+ } forEach fullCrew _vehicle;
_vehicle getVariable [_ejectVarName, false]
}
diff --git a/addons/arsenal/functions/fnc_baseAttachment.sqf b/addons/arsenal/functions/fnc_baseAttachment.sqf
index cf0cbde134..968fd05d9b 100644
--- a/addons/arsenal/functions/fnc_baseAttachment.sqf
+++ b/addons/arsenal/functions/fnc_baseAttachment.sqf
@@ -28,8 +28,8 @@ _item = configName _config;
// If the switch config entries are inherited, ignore
if (
- (inheritsFrom (_config >> "MRT_SwitchItemNextClass") isNotEqualTo (_config >> "MRT_SwitchItemNextClass")) ||
- {inheritsFrom (_config >> "MRT_SwitchItemPrevClass") isNotEqualTo (_config >> "MRT_SwitchItemPrevClass")}
+ (inheritsFrom (_config >> "MRT_SwitchItemNextClass") isNotEqualTo _config) ||
+ {inheritsFrom (_config >> "MRT_SwitchItemPrevClass") isNotEqualTo _config}
) exitWith {
_item // return
};
diff --git a/addons/arsenal/stringtable.xml b/addons/arsenal/stringtable.xml
index 39f7936d58..02c35266db 100644
--- a/addons/arsenal/stringtable.xml
+++ b/addons/arsenal/stringtable.xml
@@ -1244,6 +1244,7 @@
熱画像装置内蔵
Интегрирован тепловизор.
열화상 내장
+ Thermique intégrée
Thermal & Primary integrated
@@ -1251,6 +1252,7 @@
熱画像装置内蔵・プライマリに内蔵
Интегрирован тепловизор и осн.прицел.
열화상과 주무기 내장
+ Thermique et primaire intégrés
Not Supported
diff --git a/addons/casings/CfgVehicles.hpp b/addons/casings/CfgVehicles.hpp
new file mode 100644
index 0000000000..73d06bc0ac
--- /dev/null
+++ b/addons/casings/CfgVehicles.hpp
@@ -0,0 +1,6 @@
+class CfgVehicles {
+ class FxCartridge;
+ class FxCartridge_65_caseless: FxCartridge {
+ GVAR(model) = ""; // note: the vanilla 6.5 caseless don't actually use this, just being safe
+ };
+};
diff --git a/addons/casings/config.cpp b/addons/casings/config.cpp
index 815048a082..29d0b7cb89 100644
--- a/addons/casings/config.cpp
+++ b/addons/casings/config.cpp
@@ -15,3 +15,4 @@ class CfgPatches {
};
#include "CfgEventHandlers.hpp"
+#include "CfgVehicles.hpp"
diff --git a/addons/casings/functions/fnc_createCasing.sqf b/addons/casings/functions/fnc_createCasing.sqf
index b21e568100..fe35ad5945 100644
--- a/addons/casings/functions/fnc_createCasing.sqf
+++ b/addons/casings/functions/fnc_createCasing.sqf
@@ -20,33 +20,30 @@ params ["_unit", "", "", "", "_ammo"];
if (!isNull objectParent _unit) exitWith {};
-private _modelPath = GVAR(cachedCasings) get _ammo;
-if (isNil "_modelPath") then {
+private _modelPath = GVAR(cachedCasings) getOrDefaultCall [_ammo, {
private _cartridge = getText (configFile >> "CfgAmmo" >> _ammo >> "cartridge");
- //Default cartridge is a 5.56mm model
- _modelPath = switch (_cartridge) do {
- case "FxCartridge_9mm": { "A3\Weapons_f\ammo\cartridge_small.p3d" };
- case "FxCartridge_65": { "A3\weapons_f\ammo\cartridge_65.p3d" };
- case "FxCartridge_762": { "A3\weapons_f\ammo\cartridge_762.p3d" };
- case "FxCartridge_762x39": { "A3\weapons_f_enoch\ammo\cartridge_762x39.p3d" };
- case "FxCartridge_93x64_Ball": { "A3\Weapons_F_Mark\Ammo\cartridge_93x64.p3d" };
- case "FxCartridge_338_Ball": { "A3\Weapons_F_Mark\Ammo\cartridge_338_LM.p3d" };
- case "FxCartridge_338_NM": { "A3\Weapons_F_Mark\Ammo\cartridge_338_NM.p3d" };
- case "FxCartridge_127": { "A3\weapons_f\ammo\cartridge_127.p3d" };
- case "FxCartridge_127x54": { "A3\Weapons_F_Mark\Ammo\cartridge_127x54.p3d" };
- case "FxCartridge_slug": { "A3\weapons_f\ammo\cartridge_slug.p3d" };
- case "FxCartridge_12Gauge_HE_lxWS": { "lxWS\weapons_1_f_lxws\Ammo\cartridge_he_lxws.p3d" };
- case "FxCartridge_12Gauge_Slug_lxWS": { "lxWS\weapons_1_f_lxws\Ammo\cartridge_slug_lxws.p3d" };
- case "FxCartridge_12Gauge_Smoke_lxWS": { "lxWS\weapons_1_f_lxws\Ammo\cartridge_smoke_lxws.p3d" };
- case "FxCartridge_12Gauge_Pellet_lxWS": { "lxWS\weapons_1_f_lxws\Ammo\cartridge_pellet_lxws.p3d" };
- case "CUP_FxCartridge_545": { "CUP\Weapons\CUP_Weapons_Ammunition\magazines\cartridge545.p3d" };
- case "CUP_FxCartridge_939": { "CUP\Weapons\CUP_Weapons_Ammunition\magazines\cartridge939.p3d" };
- case "": { "" };
- default { "A3\Weapons_f\ammo\cartridge.p3d" };
+ if (_cartridge == "") then { // return (note: can't use exitWith)
+ ""
+ } else {
+ private _cartridgeConfig = configFile >> "CfgVehicles" >> _cartridge;
+
+ // if explicitly defined, use ACE's config
+ if (isText (_cartridgeConfig >> QGVAR(model))) exitWith {
+ getText (_cartridgeConfig >> QGVAR(model))
+ };
+ // use casing's default model
+ private _model = getText (_cartridgeConfig >> "model");
+ if ("a3\weapons_f\empty" in toLowerANSI _model) exitWith { "" };
+
+ // Add file extension if missing (fileExists needs file extension)
+ if ((_model select [count _model - 4]) != ".p3d") then {
+ _model = _model + ".p3d";
+ };
+
+ ["", _model] select (fileExists _model)
};
- GVAR(cachedCasings) set [_ammo, _modelPath];
-};
+}, true];
if (_modelPath isEqualTo "") exitWith {};
diff --git a/addons/common/XEH_postInit.sqf b/addons/common/XEH_postInit.sqf
index 1f259c2e3d..f97009808f 100644
--- a/addons/common/XEH_postInit.sqf
+++ b/addons/common/XEH_postInit.sqf
@@ -145,8 +145,7 @@ if (isServer) then {
INFO_3("[%1] DC - Was Zeus [%2] while controlling unit [%3] - manually clearing `bis_fnc_moduleRemoteControl_owner`",[_x] call FUNC(getName),_dcPlayer,_x);
_x setVariable ["bis_fnc_moduleRemoteControl_owner", nil, true];
};
- nil
- } count (curatorEditableObjects _zeusLogic);
+ } forEach (curatorEditableObjects _zeusLogic);
};
}];
};
diff --git a/addons/common/functions/fnc__handleRequestSyncedEvent.sqf b/addons/common/functions/fnc__handleRequestSyncedEvent.sqf
index 299dff8373..1924ed22ff 100644
--- a/addons/common/functions/fnc__handleRequestSyncedEvent.sqf
+++ b/addons/common/functions/fnc__handleRequestSyncedEvent.sqf
@@ -43,8 +43,7 @@ if (isServer) then {
{
_x params ["", "_eventArgs","_ttl"];
[_eventName, _eventArgs, _ttl] call FUNC(_handleSyncedEvent);
- false
- } count _eventLog;
+ } forEach _eventLog;
INFO_1("[%1] synchronized",_eventName);
};
diff --git a/addons/common/functions/fnc_assignObjectsInList.sqf b/addons/common/functions/fnc_assignObjectsInList.sqf
index 23d373c310..0928812cd4 100644
--- a/addons/common/functions/fnc_assignObjectsInList.sqf
+++ b/addons/common/functions/fnc_assignObjectsInList.sqf
@@ -28,18 +28,13 @@ if (_list isEqualType "") then {
};
{
- if (!isNil "_x") then {
- if (_x isEqualType objNull) then {
- if (local _x) then {
- if (_vehicle) then {
- (vehicle _x) setVariable [_variable, _setting, _global];
- TRACE_6("Set variable vehicle",_x,vehicle _x,typeOf (vehicle _x),_variable,_setting,_global);
- } else {
- _x setVariable [_variable, _setting, _global];
- TRACE_5("Set variable",_x,typeOf _x,_variable,_setting,_global);
- };
- };
+ if (!isNil "_x" && {_x isEqualType objNull} && {local _x}) then {
+ if (_vehicle) then {
+ (vehicle _x) setVariable [_variable, _setting, _global];
+ TRACE_6("Set variable vehicle",_x,vehicle _x,typeOf (vehicle _x),_variable,_setting,_global);
+ } else {
+ _x setVariable [_variable, _setting, _global];
+ TRACE_5("Set variable",_x,typeOf _x,_variable,_setting,_global);
};
};
- false
-} count _list;
+} forEach _list;
diff --git a/addons/common/functions/fnc_cbaSettings.sqf b/addons/common/functions/fnc_cbaSettings.sqf
index 6be8f60505..29e4d532b1 100644
--- a/addons/common/functions/fnc_cbaSettings.sqf
+++ b/addons/common/functions/fnc_cbaSettings.sqf
@@ -66,8 +66,7 @@ GVAR(settingsMovedToSQF) = [];
INFO_1("%1 delayed functions running.",count GVAR(runAtSettingsInitialized));
{
(_x select 1) call (_x select 0);
- false
- } count GVAR(runAtSettingsInitialized);
+ } forEach GVAR(runAtSettingsInitialized);
GVAR(runAtSettingsInitialized) = nil; //cleanup
#ifdef DEBUG_MODE_FULL
diff --git a/addons/common/functions/fnc_displayIcon.sqf b/addons/common/functions/fnc_displayIcon.sqf
index 1b307fdf33..da08fa832a 100644
--- a/addons/common/functions/fnc_displayIcon.sqf
+++ b/addons/common/functions/fnc_displayIcon.sqf
@@ -53,8 +53,7 @@ private _refresh = {
{
ctrlDelete _x;
- false
- } count _allControls;
+ } forEach _allControls;
_allControls = [];
@@ -80,7 +79,6 @@ private _refresh = {
_ctrl ctrlSetTextColor _xcolor;
_ctrl ctrlCommit 0;
_allControls pushBack _ctrl;
- false
} forEach (missionNamespace getVariable [QGVAR(displayIconList),[]]);
};
@@ -116,8 +114,7 @@ if (_show) then {
if (_x select 0 != _iconId) then {
_newList pushBack _x;
};
- false
- } count _list;
+ } forEach _list;
missionNamespace setVariable [QGVAR(displayIconList), _newList];
call _refresh;
diff --git a/addons/common/functions/fnc_dumpArray.sqf b/addons/common/functions/fnc_dumpArray.sqf
index 754b811314..87437c37e2 100644
--- a/addons/common/functions/fnc_dumpArray.sqf
+++ b/addons/common/functions/fnc_dumpArray.sqf
@@ -34,8 +34,7 @@ if (IS_ARRAY(_var)) then {
{
[_x, _depth] call FUNC(dumpArray);
- false
- } count _var;
+ } forEach _var;
diag_log text format ["%1],", _pad];
};
diff --git a/addons/common/functions/fnc_dumpPerformanceCounters.sqf b/addons/common/functions/fnc_dumpPerformanceCounters.sqf
index fa0b4e4e6d..309b82c673 100644
--- a/addons/common/functions/fnc_dumpPerformanceCounters.sqf
+++ b/addons/common/functions/fnc_dumpPerformanceCounters.sqf
@@ -25,8 +25,7 @@ if (!isNil "ACE_PFH_COUNTER") then {
private _isActive = ["ACTIVE", "REMOVED"] select isNil {CBA_common_PFHhandles select (_pfh select 0)};
diag_log text format ["Registered PFH: id=%1 [%2, delay %3], %4:%5", _pfh select 0, _isActive, _parameters select 1, _pfh select 1, _pfh select 2];
- false
- } count ACE_PFH_COUNTER;
+ } forEach ACE_PFH_COUNTER;
};
diag_log text format ["ACE COUNTER RESULTS"];
@@ -50,8 +49,7 @@ diag_log text format ["-------------------------------------------"];
};
_iter = _iter + 1;
- false
- } count _counterEntry;
+ } forEach _counterEntry;
// results
_averageResult = (_total / _count) * 1000;
@@ -61,8 +59,7 @@ diag_log text format ["-------------------------------------------"];
} else {
diag_log text format ["%1: No results", _counterEntry select 0];
};
- false
-} count ACE_COUNTERS;
+} forEach ACE_COUNTERS;
/*
// Dump PFH Trackers
diff --git a/addons/common/functions/fnc_firedEH.sqf b/addons/common/functions/fnc_firedEH.sqf
index cee874782a..2c0c32994d 100644
--- a/addons/common/functions/fnc_firedEH.sqf
+++ b/addons/common/functions/fnc_firedEH.sqf
@@ -50,8 +50,7 @@ if (_unit isKindOf "CAManBase") then {
_gunner = _unit turretUnit _x;
_turret = _x;
};
- false
- } count allTurrets [_unit, true];
+ } forEach allTurrets [_unit, true];
// Ensure that at least the pilot is returned if there is no gunner
if (isManualFire _unit && {isNull _gunner}) then {
_gunner = effectiveCommander _unit;
diff --git a/addons/common/functions/fnc_getAllDefinedSetVariables.sqf b/addons/common/functions/fnc_getAllDefinedSetVariables.sqf
index 6642a09789..081836c196 100644
--- a/addons/common/functions/fnc_getAllDefinedSetVariables.sqf
+++ b/addons/common/functions/fnc_getAllDefinedSetVariables.sqf
@@ -35,7 +35,6 @@ private _return = [];
_return pushBack [_x select 0, typeName _val, _val, _x select 2, _x select 5];
};
};
- false
-} count GVAR(OBJECT_VARIABLES_STORAGE);
+} forEach GVAR(OBJECT_VARIABLES_STORAGE);
_return
diff --git a/addons/common/functions/fnc_getDoorTurrets.sqf b/addons/common/functions/fnc_getDoorTurrets.sqf
index fb652cfd1a..1b6f22152a 100644
--- a/addons/common/functions/fnc_getDoorTurrets.sqf
+++ b/addons/common/functions/fnc_getDoorTurrets.sqf
@@ -29,7 +29,6 @@ private _doorTurrets = [];
if (((getNumber (_config >> "isCopilot")) == 0) && {count getArray (_config >> "weapons") > 0}) then {
_doorTurrets pushBack _x;
};
- false
-} count _turrets;
+} forEach _turrets;
_doorTurrets
diff --git a/addons/common/functions/fnc_getGunner.sqf b/addons/common/functions/fnc_getGunner.sqf
index bb3ebb23e9..376f18070e 100644
--- a/addons/common/functions/fnc_getGunner.sqf
+++ b/addons/common/functions/fnc_getGunner.sqf
@@ -28,8 +28,7 @@ private _gunner = objNull;
if (_weapon in (_vehicle weaponsTurret _x)) exitWith {
_gunner = _vehicle turretUnit _x;
};
- false
-} count allTurrets [_vehicle, true];
+} forEach allTurrets [_vehicle, true];
// ensure that at least the pilot is returned if there is no gunner
if (isManualFire _vehicle && {isNull _gunner}) then {
diff --git a/addons/common/functions/fnc_getInPosition.sqf b/addons/common/functions/fnc_getInPosition.sqf
index 6a95725e6e..076fd7a23c 100644
--- a/addons/common/functions/fnc_getInPosition.sqf
+++ b/addons/common/functions/fnc_getInPosition.sqf
@@ -38,8 +38,7 @@ private _enemiesInVehicle = false; //Possible Side Restriction
{
if (side _unit getFriend side _x < 0.6) exitWith {_enemiesInVehicle = true};
- false
-} count crew _vehicle;
+} forEach crew _vehicle;
switch (_position) do {
case "driver" : {
diff --git a/addons/common/functions/fnc_getMapGridData.sqf b/addons/common/functions/fnc_getMapGridData.sqf
index bce6351af0..daa4bd86cd 100644
--- a/addons/common/functions/fnc_getMapGridData.sqf
+++ b/addons/common/functions/fnc_getMapGridData.sqf
@@ -38,8 +38,7 @@ private _stepY = 1e10;
_stepX = getNumber (_x >> "stepX");
_stepY = getNumber (_x >> "stepY");
};
- false
-} count configProperties [_cfgGrid, "isClass _x", false];
+} forEach configProperties [_cfgGrid, "isClass _x", false];
private _letterGrid = false;
diff --git a/addons/common/functions/fnc_getNumberMagazinesIn.sqf b/addons/common/functions/fnc_getNumberMagazinesIn.sqf
index fc2c3d0605..b71e6729dd 100644
--- a/addons/common/functions/fnc_getNumberMagazinesIn.sqf
+++ b/addons/common/functions/fnc_getNumberMagazinesIn.sqf
@@ -25,8 +25,7 @@ if (_unit isKindOf "CAManBase") then {
} else {
{
_return = _return + ({_x == _magazine} count magazines _x);
- false
- } count crew _unit;
+ } forEach crew _unit;
(getMagazineCargo _unit) params [["_magNames", []], ["_magCount", []]];
{
diff --git a/addons/common/functions/fnc_getTurretIndex.sqf b/addons/common/functions/fnc_getTurretIndex.sqf
index dcbaafb3b2..75deced412 100644
--- a/addons/common/functions/fnc_getTurretIndex.sqf
+++ b/addons/common/functions/fnc_getTurretIndex.sqf
@@ -24,7 +24,6 @@ scopeName "main";
{
if (_unit == (_vehicle turretUnit _x)) then {_x breakOut "main"};
- nil
-} count allTurrets [_vehicle, true];
+} forEach allTurrets [_vehicle, true];
[]
diff --git a/addons/common/functions/fnc_getVehicleCrew.sqf b/addons/common/functions/fnc_getVehicleCrew.sqf
index 3e5e015785..a1bc06f6ab 100644
--- a/addons/common/functions/fnc_getVehicleCrew.sqf
+++ b/addons/common/functions/fnc_getVehicleCrew.sqf
@@ -33,7 +33,6 @@ private _crew = [];
_crew pushBack (_x select 0);
};
};
- false
-} count fullCrew _vehicle;
+} forEach fullCrew _vehicle;
_crew
diff --git a/addons/common/functions/fnc_getWeaponModes.sqf b/addons/common/functions/fnc_getWeaponModes.sqf
index 55e260ef27..c1ca241cab 100644
--- a/addons/common/functions/fnc_getWeaponModes.sqf
+++ b/addons/common/functions/fnc_getWeaponModes.sqf
@@ -29,7 +29,6 @@ private _modes = [];
if (_x == "this") then {
_modes pushBack _weapon;
};
- false
-} count getArray (_config >> "modes");
+} forEach getArray (_config >> "modes");
_modes
diff --git a/addons/common/functions/fnc_getWeaponState.sqf b/addons/common/functions/fnc_getWeaponState.sqf
index 7ccb016c7a..2fadbd23ea 100644
--- a/addons/common/functions/fnc_getWeaponState.sqf
+++ b/addons/common/functions/fnc_getWeaponState.sqf
@@ -42,7 +42,6 @@ private _ammo = _muzzles apply {0};
_ammo set [_index, _x select 1];
};
};
- false
-} count magazinesAmmoFull _unit;
+} forEach magazinesAmmoFull _unit;
[_attachments, _muzzles, _magazines, _ammo];
diff --git a/addons/common/functions/fnc_moduleLSDVehicles.sqf b/addons/common/functions/fnc_moduleLSDVehicles.sqf
index fde230b0ca..35e1f07eba 100644
--- a/addons/common/functions/fnc_moduleLSDVehicles.sqf
+++ b/addons/common/functions/fnc_moduleLSDVehicles.sqf
@@ -28,8 +28,7 @@ if (isNil QGVAR(LSD_Vehicles)) then {
if (_hSCount > 0) then {
GVAR(LSD_Vehicles) pushBack [_x, _hSCount];
};
- nil
-} count _units;
+} forEach _units;
if (isNil QGVAR(LSD_Colors)) then {
GVAR(LSD_Colors) = [
@@ -51,8 +50,7 @@ if (isNil QGVAR(LSD_PFH)) then {
for "_i" from 0 to (_hSCount - 1) do {
_vehicle setObjectTexture [_i, GVAR(LSD_Colors) select _index];
};
- nil
- } count GVAR(LSD_Vehicles);
+ } forEach GVAR(LSD_Vehicles);
_index = ((_index + 1) % 7) mod count GVAR(LSD_Colors);
(_this select 0) set [0, _index];
diff --git a/addons/common/functions/fnc_parseList.sqf b/addons/common/functions/fnc_parseList.sqf
index 93ceccf17d..a559994bfa 100644
--- a/addons/common/functions/fnc_parseList.sqf
+++ b/addons/common/functions/fnc_parseList.sqf
@@ -32,8 +32,7 @@ private _whitespaceList = [];
} else {
_whitespaceList pushBack ([_x] call CBA_fnc_trim);
};
- false
-} count _list;
+} forEach _list;
_list = _whitespaceList;
TRACE_1("Whitespace List",_list);
@@ -46,8 +45,7 @@ if (_checkNil) then {
if (!isNil _x) then {
_nilCheckedList pushBack (missionNamespace getVariable _x);
};
- false
- } count _list;
+ } forEach _list;
_list = _nilCheckedList;
};
diff --git a/addons/common/functions/fnc_resetAllDefaults.sqf b/addons/common/functions/fnc_resetAllDefaults.sqf
index 4d9f42a13b..ef74724183 100644
--- a/addons/common/functions/fnc_resetAllDefaults.sqf
+++ b/addons/common/functions/fnc_resetAllDefaults.sqf
@@ -27,8 +27,7 @@ if (isPlayer _unit) then {
// clear all disable user input
{
[_x, false] call FUNC(setDisableUserInputStatus);
- false
- } count GVAR(DISABLE_USER_INPUT_COLLECTION);
+ } forEach GVAR(DISABLE_USER_INPUT_COLLECTION);
};
};
@@ -36,5 +35,4 @@ if (isPlayer _unit) then {
if !(_x select 4) then {
_unit setVariable [_x select 0, nil, _x select 3];
};
- false
-} count ([_unit] call FUNC(getAllDefinedSetVariables));
+} forEach ([_unit] call FUNC(getAllDefinedSetVariables));
diff --git a/addons/common/functions/fnc_restoreVariablesJIP.sqf b/addons/common/functions/fnc_restoreVariablesJIP.sqf
index 905353d8ab..ac22cd3fa0 100644
--- a/addons/common/functions/fnc_restoreVariablesJIP.sqf
+++ b/addons/common/functions/fnc_restoreVariablesJIP.sqf
@@ -24,6 +24,4 @@ _respawnVariables pushBack "ACE_PersistentFunctions";
{
_unit setVariable [_x, _unit getVariable _x, true];
- false
-} count _respawnVariables;
-nil
+} forEach _respawnVariables;
diff --git a/addons/common/functions/fnc_sanitizeString.sqf b/addons/common/functions/fnc_sanitizeString.sqf
index c30cbe1292..7d0b2dd2f1 100644
--- a/addons/common/functions/fnc_sanitizeString.sqf
+++ b/addons/common/functions/fnc_sanitizeString.sqf
@@ -47,7 +47,6 @@ private _array = [];
_array pushBack _x;
};
};
- false
-} count toArray _string;
+} forEach toArray _string;
toString _array // return
diff --git a/addons/common/functions/fnc_switchToGroupSide.sqf b/addons/common/functions/fnc_switchToGroupSide.sqf
index 94d8c52701..1a3e588855 100644
--- a/addons/common/functions/fnc_switchToGroupSide.sqf
+++ b/addons/common/functions/fnc_switchToGroupSide.sqf
@@ -58,7 +58,7 @@ if (_switch) then {
private _newGroup = createGroup (_x select 1);
[_unit] joinSilent _newGroup;
};
- if (count units _currentGroup == 0) then {
+ if (units _currentGroup isEqualTo []) then {
deleteGroup _currentGroup;
};
_previousGroupsList set [_forEachIndex, objNull];
diff --git a/addons/common/functions/fnc_throttledPublicVariable.sqf b/addons/common/functions/fnc_throttledPublicVariable.sqf
index 3c1ed2761b..e6b1fdbaf6 100644
--- a/addons/common/functions/fnc_throttledPublicVariable.sqf
+++ b/addons/common/functions/fnc_throttledPublicVariable.sqf
@@ -29,8 +29,7 @@ if (isNil QGVAR(publishSchedId)) then {
{
_x params ["_unit", "_varName"];
_unit setVariable [_varName, _unit getVariable _varName, true];
- false
- } count GVAR(publishVarNames);
+ } forEach GVAR(publishVarNames);
GVAR(publishVarNames) = [];
GVAR(publishNextTime) = 1e7;
diff --git a/addons/common/stringtable.xml b/addons/common/stringtable.xml
index 7138c8da95..4afdf2ad89 100644
--- a/addons/common/stringtable.xml
+++ b/addons/common/stringtable.xml
@@ -1833,18 +1833,21 @@
手ぶれ
무기 흔들림
Oscillation de l'arme
+ Колебание оружия
Enable Weapon Sway
手ぶれを有効化
무기 흔들림 추가
Activer l'oscillation de l'arme
+ Включить колебание оружия
Enables weapon sway influenced by sway factors, such as stance, fatigue and medical condition.\nDisabling this setting will defer sway to vanilla or other mods.
姿勢、疲労、負傷状態などの手ぶれ要因に影響を受ける武器照準の揺れを有効にします。\nこの設定を無効にすると、手ぶれの揺れはバニラまたは他のMODの処理に任されます。
흔들림 계수, 자세, 피로도, 건강 상태 등의 요인에 영향을 받는 무기 흔들림을 활성화합니다.\n이 설정을 비활성화하면 바닐라 또는 다른 모드의 흔들림으로 대체됩니다.
Active l'oscillation de l'arme influencé par les facteurs d'oscillation, tels que la position, la fatigue et l'état de santé.\nLa désactivation de ce paramètre reportera l'oscillation à vanilla ou à d'autres mods.
+ Активируйте колебание оружия в зависимости от таких факторов, как стойка, усталость и состояние здоровья.\nОтключение этого параметра приведет к переносу раскачивания на vanilla или другие моды.
Sway factor
diff --git a/addons/compat_cup_vehicles/CfgVehicles.hpp b/addons/compat_cup_vehicles/CfgVehicles.hpp
index 47c7f901f5..5334987fff 100644
--- a/addons/compat_cup_vehicles/CfgVehicles.hpp
+++ b/addons/compat_cup_vehicles/CfgVehicles.hpp
@@ -148,5 +148,141 @@ class CfgVehicles {
roles[]={"cargo"};
};
};
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "hitera_l1", "hitera_l2", "hitera_l3", "hitera_l4", "hitera_l5",
+ "hitera_l6", "hitera_l7", "hitera_l8", "hitera_r1", "hitera_r2",
+ "hitera_r3", "hitera_r4", "hitera_r5", "hitera_r6", "hitera_r7",
+ "hitera_r8", "hitera_t1", "hitera_t2", "hitera_t3", "hitera_t4",
+ "hitera_t5", "hitera_t6", "hitera_t7", "hitera_t8", "hitera_fr1",
+ "hitera_fr2", "hitera_fr3", "hitera_fr4", "hitera_fr5", "hitera_fr6",
+ "hitera_fr7", "hitera_fr8", "hitera_fr9", "hitera_fl1", "hitera_fl2",
+ "hitera_fl3", "hitera_fl4", "hitera_fl5"
+ };
+ EGVAR(vehicle_damage,slatHitpoints)[] = {};
+ };
+ class CUP_T90_Base: Tank_F {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "hitera_l1", "hitera_l2", "hitera_l3", "hitera_r1", "hitera_r2",
+ "hitera_r3", "hitera_1_t_l", "hitera_1_t_r", "hitera_2_t_l",
+ "hitera_2_t_r"
+ };
+ EGVAR(vehicle_damage,slatHitpoints)[] = {};
+ };
+ class CUP_T90M_Base: Tank_F {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "hitera_t1", "hitera_t2", "hitera_t3", "hitera_t4", "hitera_t5",
+ "hitera_t6", "hitera_t7", "hitera_t8", "hitera_t9", "hitera_t10",
+ "hitera_t11", "hitera_t12", "hitera_t13", "hitera_t14", "hitera_t15",
+ "hitera_t16", "hitera_t17", "hitera_t18", "hitera_t19", "hitera_t20",
+ "hitera_t21", "hitera_f1", "hitera_f2", "hitera_f3", "hitera_f4",
+ "hitera_f5", "hitera_f6", "hitera_f7", "hitera_s1", "hitera_s2",
+ "hitera_s3", "hitera_s4", "hitera_s5", "hitera_s6", "hitera_s7",
+ "hitera_s8", "hitera_s9", "hitera_s10", "hitera_s11", "hitera_s12",
+ "hitera_t22", "hitera_t23", "hitera_t24", "hitera_t25", "hitera_t26",
+ "hitera_t27", "hitera_t28", "hitera_t29", "hitera_t30", "hitera_t31",
+ "hitera_t32", "hitera_t33"
+ };
+ EGVAR(vehicle_damage,slatHitpoints)[] = {
+ "hitslat_left", "hitslat_right", "hitslat_turret_rear",
+ "hitslat_turret_left", "hitslat_rear"
+ };
+ };
+
+ class CUP_T72_ACR_Base;
+ class CUP_B_T72_CZ: CUP_T72_ACR_Base {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "hitera_top_l1", "hitera_top_l2", "hitera_top_l3", "hitera_top_l4",
+ "hitera_top_r1", "hitera_top_r2", "hitera_top_r3", "hitera_top_r4",
+ "hitera_front_r1", "hitera_front_r2", "hitera_front_l1",
+ "hitera_front_l2", "hitera_top_rear"
+ };
+ EGVAR(vehicle_damage,slatHitpoints)[] = {};
+ };
+
+ class CUP_Leopard2_Base;
+ class CUP_Leopard2_ERA_Base: CUP_Leopard2_Base {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "hitera_1", "hitera_2", "hitera_3", "hitera_4", "hitera_5", "hitera_6",
+ "hitera_7", "hitera_8", "hitera_9", "hitera_10", "hitera_11", "hitera_12",
+ "hitera_13", "hitera_14", "hitera_15", "hitera_16", "hitera_17", "hitera_18",
+ "hitera_19", "hitera_20", "hitera_21", "hitera_22", "hitera_23", "hitera_24",
+ "hitera_25", "hitera_26", "hitera_27", "hitera_28", "hitera_29", "hitera_30",
+ "hitera_31", "hitera_32", "hitera_33", "hitera_34", "hitera_35", "hitera_36",
+ "hitera_37", "hitera_38", "hitera_39", "hitera_40", "hitera_41", "hitera_42",
+ "hitera_43", "hitera_44", "hitera_45", "hitera_46", "hitera_47"
+ };
+ EGVAR(vehicle_damage,slatHitpoints)[] = {};
+ };
+
+ class CUP_M1_Abrams_base;
+ class CUP_M1A2_TUSK_base: CUP_M1_Abrams_base {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "hitera_l1", "hitera_l2", "hitera_l3", "hitera_l4", "hitera_r1",
+ "hitera_r2", "hitera_r3", "hitera_r4"
+ };
+ EGVAR(vehicle_damage,slatHitpoints)[] = {
+ "hitslat_rear"
+ };
+ };
+
+ class CUP_M1Abrams_Base;
+ class CUP_M1Abrams_TUSK_Base: CUP_M1Abrams_Base {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "hitera_l01", "hitera_l02", "hitera_l03", "hitera_l04", "hitera_l05",
+ "hitera_l06", "hitera_l07", "hitera_l08", "hitera_l09", "hitera_l10",
+ "hitera_l11", "hitera_l12", "hitera_l13", "hitera_l14", "hitera_l15",
+ "hitera_l16", "hitera_r01", "hitera_r02", "hitera_r03", "hitera_r04",
+ "hitera_r05", "hitera_r06", "hitera_r07", "hitera_r08", "hitera_r09",
+ "hitera_r10", "hitera_r11", "hitera_r12", "hitera_r13", "hitera_r14",
+ "hitera_r15", "hitera_r16"
+ };
+ EGVAR(vehicle_damage,slatHitpoints)[] = {
+ "hitslat_rear"
+ };
+ };
+
+ class CUP_M1Abrams_A2_Base;
+ class CUP_M1Abrams_A2_TUSK_Base: CUP_M1Abrams_A2_Base {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "hitera_l01", "hitera_l02", "hitera_l03", "hitera_l04", "hitera_l05",
+ "hitera_l06", "hitera_l07", "hitera_l08", "hitera_l09", "hitera_l10",
+ "hitera_l11", "hitera_l12", "hitera_l13", "hitera_l14", "hitera_l15",
+ "hitera_l16", "hitera_l17", "hitera_l18", "hitera_l19", "hitera_l20",
+ "hitera_r01", "hitera_r02", "hitera_r03", "hitera_r04", "hitera_r05",
+ "hitera_r06", "hitera_r07", "hitera_r08", "hitera_r09", "hitera_r10",
+ "hitera_r11", "hitera_r12", "hitera_r13", "hitera_r14", "hitera_r15",
+ "hitera_r16", "hitera_r17", "hitera_r18", "hitera_r19", "hitera_r20"
+ };
+ EGVAR(vehicle_damage,slatHitpoints)[] = {
+ "hitslat_rear"
+ };
+ };
+
+ class CUP_M1A2Abrams_Base;
+ class CUP_M1A2Abrams_TUSK_Base: CUP_M1A2Abrams_Base {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "hitera_l01", "hitera_l02", "hitera_l03", "hitera_l04", "hitera_l05",
+ "hitera_l06", "hitera_l07", "hitera_l08", "hitera_l09", "hitera_l10",
+ "hitera_l11", "hitera_l12", "hitera_l13", "hitera_l14", "hitera_l15",
+ "hitera_l16", "hitera_r01", "hitera_r02", "hitera_r03", "hitera_r04",
+ "hitera_r05", "hitera_r06", "hitera_r07", "hitera_r08", "hitera_r09",
+ "hitera_r10", "hitera_r11", "hitera_r12", "hitera_r13", "hitera_r14",
+ "hitera_r15", "hitera_r16"
+ };
+ EGVAR(vehicle_damage,slatHitpoints)[] = {
+ "hitslat_rear"
+ };
+ };
+ class CUP_M1A2Abrams_TUSK_II_Base: CUP_M1A2Abrams_TUSK_Base {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "hitera_l01", "hitera_l02", "hitera_l03", "hitera_l04", "hitera_l05",
+ "hitera_l06", "hitera_l07", "hitera_l08", "hitera_l09", "hitera_l10",
+ "hitera_l11", "hitera_l12", "hitera_l13", "hitera_l14", "hitera_l15",
+ "hitera_l16", "hitera_l17", "hitera_l18", "hitera_l19", "hitera_l20",
+ "hitera_r01", "hitera_r02", "hitera_r03", "hitera_r04", "hitera_r05",
+ "hitera_r06", "hitera_r07", "hitera_r08", "hitera_r09", "hitera_r10",
+ "hitera_r11", "hitera_r12", "hitera_r13", "hitera_r14", "hitera_r15",
+ "hitera_r16", "hitera_r17", "hitera_r18", "hitera_r19", "hitera_r20"
+ };
};
};
diff --git a/addons/compat_cup_weapons/compat_cup_weapons_csw/stringtable.xml b/addons/compat_cup_weapons/compat_cup_weapons_csw/stringtable.xml
index 0e88b468ca..a23cf87af0 100644
--- a/addons/compat_cup_weapons/compat_cup_weapons_csw/stringtable.xml
+++ b/addons/compat_cup_weapons/compat_cup_weapons_csw/stringtable.xml
@@ -42,66 +42,77 @@
[CSW] M1 榴弾
[CSW] M1 HE
[CSW] M1 고폭탄
+ [CSW] M1 HE
[CSW] M84 Smoke
[CSW] M84 白煙弾
[CSW] M84 Дымовая
[CSW] M84 연막탄
+ [CSW] M84 Fumigène
[CSW] M60A2 WP
[CSW] M60A2 白リン弾
[CSW] M60A2 WP
[CSW] M60A2 백린연막탄
+ [CSW] M60A2 WP
[CSW] M67 AT Laser Guided
[CSW] M67 対戦車レーザー誘導弾
[CSW] M67 AT Laser Guided
[CSW] M67 레이저유도 대전차탄
+ [CSW] M67 AT Guidé laser
[CSW] M314 Illumination
[CSW] M314 照明弾
[CSW] M314 Осветительная
[CSW] M314 조명탄
+ [CSW] M314 Illumination
[CSW] 3OF56 HE
[CSW] 3OF56 榴弾
[CSW] 3OF56 HE
[CSW] 3OF56 고폭탄
+ [CSW] 3OF56 HE
[CSW] 3OF69M Laser Guided
[CSW] 3OF69M レーザー誘導弾
[CSW] 3OF69M Laser Guided
[CSW] 3OF69M 레이저유도탄
+ [CSW] 3OF69M Guidé laser
[CSW] 122mm WP
[CSW] 122mm 白リン弾
[CSW] 122mm WP
[CSW] 122mm 백린탄
+ [CSW] 122mm WP
[CSW] D-462 Smoke
[CSW] D-462 白煙弾
[CSW] D-462 Дымовая
[CSW] D-462 연막탄
+ [CSW] D-462 Fumigène
[CSW] S-463 Illumination
[CSW] S-463 照明弾
[CSW] S-463 Осветительная
[CSW] S-463 조명탄
+ [CSW] S-463 Eclairante
[CSW] BK-6M HEAT
[CSW] BK-6M HEAT弾
[CSW] BK-6M HEAT
[CSW] BK-6M 대전차고폭탄
+ [CSW] BK-6M HEAT
diff --git a/addons/compat_cup_weapons/compat_cup_weapons_nightvision/stringtable.xml b/addons/compat_cup_weapons/compat_cup_weapons_nightvision/stringtable.xml
index f217bc1d2f..a52bea0e31 100644
--- a/addons/compat_cup_weapons/compat_cup_weapons_nightvision/stringtable.xml
+++ b/addons/compat_cup_weapons/compat_cup_weapons_nightvision/stringtable.xml
@@ -46,6 +46,7 @@
AN/PVS-15 (冬季迷彩, WP)
AN/PVS-15 (설상, 백색광)
AN/PVS-15 (Белый, БФ)
+ AN/PVS-15 (Blanc, WP)
GPNVG (Black, WP)
@@ -82,6 +83,7 @@
GPNVG (冬季迷彩, WP)
GPNVG (설상, 백색광)
AN/PVS-15 (Белый, БФ)
+ GPNVG (Blanc, WP)
diff --git a/addons/compat_cup_weapons/config.cpp b/addons/compat_cup_weapons/config.cpp
index e5fd022555..54dd0271cc 100644
--- a/addons/compat_cup_weapons/config.cpp
+++ b/addons/compat_cup_weapons/config.cpp
@@ -15,6 +15,6 @@ class CfgPatches {
};
};
+#include "CfgEventHandlers.hpp"
#include "CfgMagazines.hpp"
#include "CfgWeapons.hpp"
-#include "CfgEventHandlers.hpp"
diff --git a/addons/compat_rhs_afrf3/CfgVehicles.hpp b/addons/compat_rhs_afrf3/CfgVehicles.hpp
index 622d764ad2..1cf5029bc3 100644
--- a/addons/compat_rhs_afrf3/CfgVehicles.hpp
+++ b/addons/compat_rhs_afrf3/CfgVehicles.hpp
@@ -434,7 +434,11 @@ class CfgVehicles {
"era_13_hitpoint", "era_14_hitpoint", "era_15_hitpoint", "era_16_hitpoint", "era_17_hitpoint", "era_18_hitpoint",
"era_19_hitpoint", "era_20_hitpoint", "era_21_hitpoint", "era_22_hitpoint", "era_23_hitpoint", "era_24_hitpoint",
"era_25_hitpoint", "era_26_hitpoint", "era_27_hitpoint", "era_28_hitpoint", "era_29_hitpoint", "era_30_hitpoint",
- "era_31_hitpoint", "era_32_hitpoint"
+ "era_31_hitpoint", "era_32_hitpoint", "era_33_hitpoint", "era_34_hitpoint", "era_35_hitpoint", "era_36_hitpoint",
+ "era_37_hitpoint", "era_38_hitpoint", "era_39_hitpoint", "era_40_hitpoint", "era_41_hitpoint", "era_42_hitpoint",
+ "era_43_hitpoint", "era_44_hitpoint", "era_45_hitpoint", "era_46_hitpoint", "era_47_hitpoint", "era_48_hitpoint",
+ "era_49_hitpoint", "era_50_hitpoint", "era_58_hitpoint", "era_59_hitpoint", "era_60_hitpoint", "era_61_hitpoint",
+ "era_62_hitpoint", "era_63_hitpoint", "era_64_hitpoint", "era_65_hitpoint", "era_66_hitpoint", "era_67_hitpoint"
};
EGVAR(vehicle_damage,slatHitpoints)[] = {
"SLAT_51_hitpoint", "SLAT_52_hitpoint", "SLAT_53_hitpoint",
@@ -470,6 +474,9 @@ class CfgVehicles {
"era_43_hitpoint", "era_44_hitpoint", "era_45_hitpoint", "era_46_hitpoint", "era_47_hitpoint", "era_48_hitpoint",
"era_49_hitpoint", "era_50_hitpoint"
};
+ EGVAR(vehicle_damage,slatHitpoints)[] = {
+ "slat_51_hitpoint", "slat_52_hitpoint", "slat_53_hitpoint", "slat_54_hitpoint"
+ };
};
class rhs_t90am_tv: rhs_t90_tv {
EGVAR(vehicle_damage,eraHitpoints)[] = {
@@ -483,7 +490,7 @@ class CfgVehicles {
"era_43_hitpoint", "era_44_hitpoint", "era_45_hitpoint", "era_46_hitpoint", "era_47_hitpoint", "era_48_hitpoint",
"era_49_hitpoint", "era_50_hitpoint", "era_51_hitpoint", "era_52_hitpoint", "era_53_hitpoint", "era_54_hitpoint",
"era_55_hitpoint", "era_56_hitpoint", "era_57_hitpoint", "era_58_hitpoint", "era_59_hitpoint", "era_60_hitpoint",
- "era_51_hitpoint", "era_62_hitpoint", "era_63_hitpoint", "era_64_hitpoint", "era_65_hitpoint", "era_66_hitpoint"
+ "era_61_hitpoint", "era_62_hitpoint", "era_63_hitpoint", "era_64_hitpoint", "era_65_hitpoint", "era_66_hitpoint"
};
EGVAR(vehicle_damage,slatHitpoints)[] = {
"SLAT_18_hitpoint", "SLAT_19_hitpoint", "SLAT_20_hitpoint", "SLAT_21_hitpoint",
@@ -492,10 +499,31 @@ class CfgVehicles {
};
};
class rhs_t90sm_tv: rhs_t90am_tv {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "era_1_hitpoint", "era_2_hitpoint", "era_3_hitpoint", "era_4_hitpoint",
+ "era_5_hitpoint", "era_6_hitpoint", "era_7_hitpoint", "era_8_hitpoint",
+ "era_9_hitpoint", "era_10_hitpoint", "era_11_hitpoint", "era_12_hitpoint",
+ "era_13_hitpoint", "era_14_hitpoint", "era_15_hitpoint", "era_16_hitpoint",
+ "era_17_hitpoint", "era_18_hitpoint", "era_19_hitpoint", "era_20_hitpoint",
+ "era_21_hitpoint", "era_22_hitpoint", "era_24_hitpoint", "era_25_hitpoint",
+ "era_27_hitpoint", "era_28_hitpoint", "era_29_hitpoint", "era_30_hitpoint",
+ "era_31_hitpoint", "era_32_hitpoint", "era_33_hitpoint", "era_34_hitpoint",
+ "era_35_hitpoint", "era_36_hitpoint", "era_37_hitpoint", "era_38_hitpoint",
+ "era_39_hitpoint", "era_40_hitpoint", "era_41_hitpoint", "era_42_hitpoint",
+ "era_43_hitpoint", "era_44_hitpoint", "era_45_hitpoint", "era_46_hitpoint",
+ "era_47_hitpoint", "era_48_hitpoint", "era_49_hitpoint", "era_50_hitpoint",
+ "era_26_hitpoint", "era_55_hitpoint", "era_56_hitpoint", "era_57_hitpoint",
+ "era_58_hitpoint", "era_59_hitpoint", "era_60_hitpoint", "era_61_hitpoint",
+ "era_62_hitpoint", "era_63_hitpoint", "era_64_hitpoint", "era_65_hitpoint",
+ "era_66_hitpoint", "era_23_hitpoint"
+ };
EGVAR(vehicle_damage,slatHitpoints)[] = {
- "SLAT_23_hitpoint", "SLAT_26_hitpoint", "SLAT_51_hitpoint", "SLAT_52_hitpoint",
- "SLAT_53_hitpoint", "SLAT_54_hitpoint", "SLAT_55_hitpoint", "SLAT_56_hitpoint",
- "SLAT_57_hitpoint"
+ "slat_23_hitpoint", "slat_26_hitpoint", "slat_51_hitpoint",
+ "slat_52_hitpoint", "slat_53_hitpoint", "slat_54_hitpoint",
+ "slat_55_hitpoint", "slat_56_hitpoint", "slat_57_hitpoint",
+ "slat_18_hitpoint", "slat_19_hitpoint", "slat_20_hitpoint",
+ "slat_21_hitpoint", "slat_22_hitpoint", "slat_24_hitpoint",
+ "slat_25_hitpoint"
};
};
@@ -539,6 +567,35 @@ class CfgVehicles {
"era_31_hitpoint", "era_32_hitpoint", "era_33_hitpoint", "era_34_hitpoint", "era_35_hitpoint", "era_36_hitpoint"
};
};
+ class rhs_t80um: rhs_t80u {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "era_1_hitpoint", "era_2_hitpoint", "era_3_hitpoint", "era_4_hitpoint", "era_5_hitpoint", "era_6_hitpoint",
+ "era_7_hitpoint", "era_8_hitpoint", "era_9_hitpoint", "era_10_hitpoint", "era_11_hitpoint", "era_12_hitpoint",
+ "era_13_hitpoint", "era_14_hitpoint", "era_15_hitpoint", "era_16_hitpoint", "era_17_hitpoint", "era_18_hitpoint",
+ "era_19_hitpoint", "era_20_hitpoint", "era_21_hitpoint", "era_22_hitpoint", "era_23_hitpoint", "era_24_hitpoint",
+ "era_25_hitpoint", "era_26_hitpoint", "era_27_hitpoint", "era_28_hitpoint", "era_29_hitpoint", "era_30_hitpoint",
+ "era_31_hitpoint", "era_32_hitpoint", "era_33_hitpoint", "era_34_hitpoint", "era_35_hitpoint", "era_36_hitpoint"
+ };
+ };
+
+ class rhs_t15_base;
+ class rhs_t15_tv: rhs_t15_base {
+ EGVAR(vehicle_damage,eraHitpoints)[] = {
+ "era_1_hitpoint", "era_2_hitpoint", "era_3_hitpoint", "era_4_hitpoint",
+ "era_5_hitpoint", "era_6_hitpoint", "era_7_hitpoint", "era_8_hitpoint",
+ "era_9_hitpoint", "era_10_hitpoint", "era_11_hitpoint", "era_12_hitpoint",
+ "era_13_hitpoint", "era_14_hitpoint", "era_15_hitpoint", "era_16_hitpoint",
+ "era_17_hitpoint", "era_18_hitpoint", "era_19_hitpoint", "era_20_hitpoint",
+ "era_21_hitpoint", "era_22_hitpoint", "era_23_hitpoint", "era_24_hitpoint",
+ "era_25_hitpoint", "era_26_hitpoint", "era_27_hitpoint", "era_28_hitpoint",
+ "era_29_hitpoint", "era_30_hitpoint", "era_31_hitpoint", "era_32_hitpoint",
+ "era_33_hitpoint", "era_34_hitpoint", "era_35_hitpoint", "era_36_hitpoint",
+ "era_37_hitpoint"
+ };
+ EGVAR(vehicle_damage,slatHitpoints)[] = {
+ "slat_38_hitpoint", "slat_39_hitpoint", "slat_40_hitpoint", "slat_41_hitpoint"
+ };
+ };
// Wirecutter Backpacks
class rhs_assault_umbts;
diff --git a/addons/compat_rhs_usf3/compat_rhs_usf3_csw/stringtable.xml b/addons/compat_rhs_usf3/compat_rhs_usf3_csw/stringtable.xml
index bb185513a7..bc2413a2ca 100644
--- a/addons/compat_rhs_usf3/compat_rhs_usf3_csw/stringtable.xml
+++ b/addons/compat_rhs_usf3/compat_rhs_usf3_csw/stringtable.xml
@@ -10,6 +10,7 @@
[CSW] BGM-71A TOW
[CSW] BGM-71A TOW
[CSW] BGM-71A TOW
+ [CSW] BGM-71A TOW
[CSW] BGM-71B TOW
@@ -20,6 +21,7 @@
[CSW] BGM-71B TOW
[CSW] BGM-71B TOW
[CSW] BGM-71B TOW
+ [CSW] BGM-71B TOW
[CSW] BGM-71C ITOW
@@ -30,6 +32,7 @@
[CSW] BGM-71C ITOW
[CSW] BGM-71C ITOW
[CSW] BGM-71C ITOW
+ [CSW] BGM-71C ITOW
[CSW] BGM-71D TOW-2
@@ -40,6 +43,7 @@
[CSW] BGM-71D TOW-2
[CSW] BGM-71D TOW-2
[CSW] BGM-71D TOW-2
+ [CSW] BGM-71D TOW-2
[CSW] BGM-71E TOW-2A
@@ -50,6 +54,7 @@
[CSW] BGM-71E TOW-2A
[CSW] BGM-71E TOW-2A
[CSW] BGM-71E TOW-2A
+ [CSW] BGM-71E TOW-2A
[CSW] BGM-71F TOW-2B
@@ -60,6 +65,7 @@
[CSW] BGM-71F TOW-2B
[CSW] BGM-71F TOW-2B
[CSW] BGM-71F TOW-2B
+ [CSW] BGM-71F TOW-2B
[CSW] BGM-71F-3 TOW-2B AERO
@@ -70,6 +76,7 @@
[CSW] BGM-71F-3 TOW-2B AERO
[CSW] BGM-71F-3 TOW-2B AERO
[CSW] BGM-71F-3 TOW-2B AERO
+ [CSW] BGM-71F-3 TOW-2B AERO
[CSW] BGM-71H Bunker Buster
@@ -80,6 +87,7 @@
[CSW] BGM-71H Anti-Búnquer
[CSW] BGM-71H Bunker Buster
[CSW] BGM-71H Anti-Bunker
+ [CSW] BGM-71H Bunker Buster
[CSW] Mk. 19 40mm M384 HE
@@ -90,6 +98,7 @@
[CSW] Mk. 19 40mm M384 HE
[CSW] Mk. 19 40mm M384 HE
[CSW] Mk. 19 40mm M384 HE
+ [CSW] Mk. 19 40mm M384 HE
[CSW] Mk. 19 40mm M430I HEDP
@@ -100,6 +109,7 @@
[CSW] Mk. 19 40mm M430I HEDP
[CSW] Mk. 19 40mm M430I HEDP
[CSW] Mk. 19 40mm M430I HEDP
+ [CSW] Mk. 19 40mm M430I HEDP
[CSW] Mk. 19 40mm M430A1 HEDP
@@ -110,6 +120,7 @@
[CSW] Mk. 19 40mm M430A1 HEDP
[CSW] Mk. 19 40mm M430A1 HEDP
[CSW] Mk. 19 40mm M430A1 HEDP
+ [CSW] Mk. 19 40mm M430A1 HEDP
[CSW] Mk. 19 40mm M1001 Canister
@@ -120,6 +131,7 @@
[CSW] Mk. 19 40mm M1001 Bote de metralla
[CSW] Mk. 19 40mm M1001 Kanister
[CSW] Mk. 19 40mm M1001 Pallettoni
+ [CSW] Mk. 19 40 mm M1001 Chevrotine
diff --git a/addons/compat_ws/compat_ws_realisticnames/stringtable.xml b/addons/compat_ws/compat_ws_realisticnames/stringtable.xml
index b38f1a867e..092fd2a9ea 100644
--- a/addons/compat_ws/compat_ws_realisticnames/stringtable.xml
+++ b/addons/compat_ws/compat_ws_realisticnames/stringtable.xml
@@ -8,6 +8,7 @@
AA12
AA12
AA12
+ AA12
AA12 (Sand)
@@ -16,6 +17,7 @@
AA12 (Sabbia)
AA12 (サンド)
AA12 (Песочный)
+ AA12 (Sable)
AA12 (Snake)
@@ -32,6 +34,7 @@
Galil ARM
ガリル ARM
Galil ARM
+ Galil ARM
Galil ARM (Old)
@@ -40,6 +43,7 @@
Galil ARM (Vecchio)
ガリル ARM (使い古し)
Galil ARM (Старый)
+ Galil ARM (Ancien)
GLX 160
@@ -48,6 +52,7 @@
GLX-160
GLX 160
GLX 160
+ GLX 160
GLX 160 (Snake)
@@ -64,6 +69,7 @@
GLX-160 (Hex)
GLX 160 (六角形迷彩)
GLX 160 (Гекс)
+ GLX 160 (Hex)
GLX 160 (Green Hex)
@@ -72,6 +78,7 @@
GLX-160 (Hex Verde)
GLX 160 (緑六角形迷彩)
GLX 160 (Зеленый Гекс)
+ GLX 160 (Vert Hex)
GLX 160 (Camo)
@@ -80,6 +87,7 @@
GLX-160 (Mimetica)
GLX 160 (迷彩)
GLX 160 (Камуфляж)
+ GLX 160 (Camo)
GLX 160 (Sand)
@@ -88,6 +96,7 @@
GLX-160 (Sabbia)
GLX 160 (サンド)
GLX 160 (Песочный)
+ GLX 160 (Sable)
Mk14 Mod 1 EBR (Black)
@@ -96,6 +105,7 @@
Mk14 Mod 1 EBR (Nero)
Mk14 Mod 1 EBR (ブラック)
Mk14 Mod 1 EBR (Черный)
+ Mk14 Mod 1 EBR (Noir)
Mk14 Mod 1 EBR (Snake)
@@ -111,6 +121,7 @@
Vektor SS-77
ヴェクター SS-77
Vektor SS-77
+ Vektor SS-77
Vektor SS-77 (Camo)
@@ -119,6 +130,7 @@
Vektor SS-77 (Mimetica)
ヴェクター SS-77 (迷彩)
Vektor SS-77 (Камуфляж)
+ Vektor SS-77 (Camo)
Vektor SS-77 (Hex)
@@ -127,6 +139,7 @@
Vektor SS-77 (Hex)
ヴェクター SS-77 (六角形迷彩)
Vektor SS-77 (гекс)
+ Vektor SS-77 (Hex)
Vektor SS-77 (Green Hex)
@@ -135,6 +148,7 @@
Vektor SS-77 (Hex Verde)
ヴェクター SS-77 (緑六角形迷彩)
Vektor SS-77 (зеленый гекс)
+ Vektor SS-77 (VertHex)
Vektor SS-77 (Desert)
@@ -143,6 +157,7 @@
Vektor SS-77 (Deserto)
ヴェクター SS-77 (砂漠迷彩)
Vektor SS-77 (песочныйt)
+ Vektor SS-77 (Désert)
Vektor SS-77 Compact
@@ -151,6 +166,7 @@
Vektor SS-77 Compatto
ヴェクター SS-77 コンパクト
Vektor SS-77 Compact
+ Vektor SS-77 Compacte
Vektor SS-77 Compact (Snake)
@@ -167,6 +183,7 @@
FN FAL 50.00 (Legno)
FN FAL 50.00 (森林迷彩)
FN FAL 50.00 (лесной)
+ FN FAL 50.00 (Bois)
FN FAL 50.00 GL (Wood)
@@ -175,6 +192,7 @@
FN FAL 50.00 GL (Legno)
FN FAL 50.00 GL (森林迷彩)
FN FAL 50.00 GL (лесной)
+ FN FAL 50.00 GL (Bois)
FN FAL 50.00
@@ -183,6 +201,7 @@
FN FAL 50.00
FN FAL 50.00
FN FAL 50.00
+ FN FAL 50.00
FN FAL 50.00 GL
@@ -191,6 +210,7 @@
FN FAL 50.00 GL
FN FAL 50.00 GL
FN FAL 50.00 GL
+ FN FAL 50.00 GL
FN FAL 50.00 (Desert)
@@ -199,6 +219,7 @@
FN FAL 50.00 (Deserto)
FN FAL 50.00 (砂漠迷彩)
FN FAL 50.00 (песочный)
+ FN FAL 50.00 (Désert)
FN FAL 50.00 (Jungle)
@@ -207,6 +228,7 @@
FN FAL 50,00 (Giungla)
FN FAL 50.00 (熱帯迷彩)
FN FAL 50.00 (джунгли)
+ FN FAL 50.00 (Jungle)
Vektor R4
@@ -215,6 +237,7 @@
Vektor R4
ヴェクター R5
Vektor R4
+ Vektor R4
Vektor R5 Carbine
@@ -223,6 +246,7 @@
Vektor R5 Carabina
ヴェクター R5 カービン
Vektor R5 Carbine
+ Vektor R5 Carbine
Vektor R5 Carbine GL
@@ -231,6 +255,7 @@
Vektor R5 Carabina GL
ヴェクター R5 カービン GL
Vektor R5 Carbine GL
+ Vektor R5 Carbine GL
Vektor R5 Carbine (Snake)
diff --git a/addons/concertina_wire/functions/fnc_deploy.sqf b/addons/concertina_wire/functions/fnc_deploy.sqf
index 579bc73f97..c915109e1b 100644
--- a/addons/concertina_wire/functions/fnc_deploy.sqf
+++ b/addons/concertina_wire/functions/fnc_deploy.sqf
@@ -22,7 +22,7 @@ params ["_wirecoil", "_unit"];
private _wireNoGeo = "ACE_ConcertinaWireNoGeo" createVehicle [0,0,0];
{
_wireNoGeo animate [_x, 1];
-} count WIRE_FAST;
+} forEach WIRE_FAST;
GVAR(placer) = _unit;
private _dir = getDir _unit;
@@ -51,7 +51,7 @@ GVAR(deployPFH) = [{
private _wire = "ACE_ConcertinaWire" createvehicle [0, 0, 0];
{
_wire animate [_x, _anim];
- } count WIRE_FAST;
+ } forEach WIRE_FAST;
[{
params ["_args", "_idPFH"];
@@ -74,7 +74,7 @@ GVAR(deployPFH) = [{
_wireNoGeo setDir _dir;
{
_wireNoGeo animate [_x, _anim];
- } count WIRE_FAST;
+ } forEach WIRE_FAST;
}, 0, [_wireNoGeo, _wireNoGeoPos, _unit]] call CBA_fnc_addPerFrameHandler;
[LLSTRING(RollWire), "", ""] call EFUNC(interaction,showMouseHint);
diff --git a/addons/concertina_wire/functions/fnc_dismountSuccess.sqf b/addons/concertina_wire/functions/fnc_dismountSuccess.sqf
index 3a90b62a91..86aac9e8bf 100644
--- a/addons/concertina_wire/functions/fnc_dismountSuccess.sqf
+++ b/addons/concertina_wire/functions/fnc_dismountSuccess.sqf
@@ -20,7 +20,7 @@ params ["_wire"];
{
_wire animate [_x, 1];
-} count WIRE_FAST;
+} forEach WIRE_FAST;
[{
params ["_args", "_idPFH"];
diff --git a/addons/disarming/functions/fnc_disarmDropItems.sqf b/addons/disarming/functions/fnc_disarmDropItems.sqf
index 26e00dfa5f..e1a4c379b4 100644
--- a/addons/disarming/functions/fnc_disarmDropItems.sqf
+++ b/addons/disarming/functions/fnc_disarmDropItems.sqf
@@ -50,7 +50,7 @@ if (!_doNotDropAmmo) then {
if ((_x getVariable [QGVAR(disarmUnit), objNull]) == _target) exitWith {
_holder = _x;
};
- } count ((getpos _target) nearObjects [DISARM_CONTAINER, 3]);
+ } forEach ((getpos _target) nearObjects [DISARM_CONTAINER, 3]);
};
//Create a new weapon holder
diff --git a/addons/disarming/functions/fnc_openDisarmDialog.sqf b/addons/disarming/functions/fnc_openDisarmDialog.sqf
index 27a7dbc521..da9a860678 100644
--- a/addons/disarming/functions/fnc_openDisarmDialog.sqf
+++ b/addons/disarming/functions/fnc_openDisarmDialog.sqf
@@ -93,7 +93,7 @@ GVAR(disarmTarget) = _target;
if ((_x getVariable [QGVAR(disarmUnit), objNull]) == _target) exitWith {
_holder = _x;
};
- } count ((getpos _target) nearObjects [DISARM_CONTAINER, 3]);
+ } forEach ((getpos _target) nearObjects [DISARM_CONTAINER, 3]);
//If a holder exists, show it's inventory
if (!isNull _holder) then {
diff --git a/addons/explosives/functions/fnc_addCellphoneIED.sqf b/addons/explosives/functions/fnc_addCellphoneIED.sqf
index 2ac69b73ae..d35b303fc1 100644
--- a/addons/explosives/functions/fnc_addCellphoneIED.sqf
+++ b/addons/explosives/functions/fnc_addCellphoneIED.sqf
@@ -29,10 +29,10 @@ private _hasRequired = true;
private _detonators = [_unit] call FUNC(getDetonators);
{
- if !(_x in _detonators) exitWith{
+ if !(_x in _detonators) exitWith {
_hasRequired = false;
};
-} count _requiredItems;
+} forEach _requiredItems;
private _code = "";
while {true} do {
diff --git a/addons/explosives/functions/fnc_addTriggerActions.sqf b/addons/explosives/functions/fnc_addTriggerActions.sqf
index d3632d5bb7..b6b6e0ce41 100644
--- a/addons/explosives/functions/fnc_addTriggerActions.sqf
+++ b/addons/explosives/functions/fnc_addTriggerActions.sqf
@@ -31,7 +31,7 @@ private _children = [];
if !(_x in _detonators) exitWith {
_hasRequiredItems = false;
};
- } count _required;
+ } forEach _required;
if (_hasRequiredItems && {(!_isAttached) || {(getNumber (_x >> "isAttachable")) == 1}}) then {
_children pushBack
[
diff --git a/addons/explosives/functions/fnc_getSpeedDialExplosive.sqf b/addons/explosives/functions/fnc_getSpeedDialExplosive.sqf
index 8490eab452..0f4e5d923f 100644
--- a/addons/explosives/functions/fnc_getSpeedDialExplosive.sqf
+++ b/addons/explosives/functions/fnc_getSpeedDialExplosive.sqf
@@ -24,7 +24,6 @@ private _explosive = [];
if ((_x select 1) == _code) exitWith {
_explosive = _x;
};
- false
-} count GVAR(CellphoneIEDs);
+} forEach GVAR(CellphoneIEDs);
_explosive
diff --git a/addons/fastroping/functions/fnc_cutRopes.sqf b/addons/fastroping/functions/fnc_cutRopes.sqf
index cbd01b5661..40d2416049 100644
--- a/addons/fastroping/functions/fnc_cutRopes.sqf
+++ b/addons/fastroping/functions/fnc_cutRopes.sqf
@@ -34,8 +34,8 @@ private _deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
//Only delete the hook first so the rope falls down.
//Note: ropeDetach was used here before, but the command seems a bit broken.
deleteVehicle _hook;
- [{{deleteVehicle _x} count _this}, [_ropeTop, _ropeBottom, _dummy], 60] call CBA_fnc_waitAndExecute;
-} count _deployedRopes;
+ [{{deleteVehicle _x} forEach _this}, [_ropeTop, _ropeBottom, _dummy], 60] call CBA_fnc_waitAndExecute;
+} forEach _deployedRopes;
_vehicle setVariable [QGVAR(deployedRopes), [], true];
diff --git a/addons/fastroping/functions/fnc_deployRopes.sqf b/addons/fastroping/functions/fnc_deployRopes.sqf
index 71cfbbbc21..eea81a7746 100644
--- a/addons/fastroping/functions/fnc_deployRopes.sqf
+++ b/addons/fastroping/functions/fnc_deployRopes.sqf
@@ -67,9 +67,7 @@ if (GVAR(requireRopeItems) && {_ropeClass != ""}) then {
//deployedRopes format: attachment point, top part of the rope, bottom part of the rope, attachTo helper object, occupied, broken
_deployedRopes pushBack [_ropeOrigin, _ropeTop, _ropeBottom, _dummy, _hook, false, false];
-
- false
-} count _ropeOrigins;
+} forEach _ropeOrigins;
_vehicle setVariable [QGVAR(deployedRopes), _deployedRopes, true];
_vehicle setVariable [QGVAR(deploymentStage), 3, true];
diff --git a/addons/fastroping/functions/fnc_moduleEquipFRIES.sqf b/addons/fastroping/functions/fnc_moduleEquipFRIES.sqf
index 970194ab63..892997bf80 100644
--- a/addons/fastroping/functions/fnc_moduleEquipFRIES.sqf
+++ b/addons/fastroping/functions/fnc_moduleEquipFRIES.sqf
@@ -22,5 +22,4 @@ private _synchedUnits = synchronizedObjects _module;
_x = vehicle _x;
};
[_x] call FUNC(equipFRIES);
- false
-} count _synchedUnits;
+} forEach _synchedUnits;
diff --git a/addons/fcs/functions/fnc_calculateSolution.sqf b/addons/fcs/functions/fnc_calculateSolution.sqf
index b89122f65d..b0cb2ea1c4 100644
--- a/addons/fcs/functions/fnc_calculateSolution.sqf
+++ b/addons/fcs/functions/fnc_calculateSolution.sqf
@@ -44,8 +44,7 @@ private _turretConfig = [configOf _vehicle, _turret] call EFUNC(common,getTurret
if (_x != "this") then {
_weaponMagazines append getArray (configFile >> "CfgWeapons" >> _weapon >> _x >> "magazines");
};
- false
- } count _muzzles;
+ } forEach _muzzles;
// Fix the `in` operator being case sensitive and BI fucking up the spelling of their own classnames
private _weaponMagazinesCheck = _weaponMagazines apply {toLowerANSI _x};
@@ -62,8 +61,7 @@ private _turretConfig = [configOf _vehicle, _turret] call EFUNC(common,getTurret
_initSpeed = _initSpeedCoef;
};
};
- false
- } count (_vehicle weaponsTurret _turret);
+ } forEach (_vehicle weaponsTurret _turret);
private _offset = "ace_fcs" callExtension format ["%1,%2,%3,%4", _initSpeed, _airFriction, _angleTarget, _distance];
_offset = parseNumber _offset;
@@ -72,8 +70,7 @@ private _turretConfig = [configOf _vehicle, _turret] call EFUNC(common,getTurret
_FCSMagazines pushBack _magazine;
_FCSElevation pushBack _offset;
};
- false
-} count (_vehicle magazinesTurret _turret);
+} forEach (_vehicle magazinesTurret _turret);
[_vehicle, format ["%1_%2", QGVAR(Distance), _turret], _distance] call EFUNC(common,setVariablePublic);
[_vehicle, format ["%1_%2", QGVAR(InitSpeed), _turret], _FCSInitSpeed] call EFUNC(common,setVariablePublic);
diff --git a/addons/field_rations/stringtable.xml b/addons/field_rations/stringtable.xml
index bd8eb3f97f..482f347598 100644
--- a/addons/field_rations/stringtable.xml
+++ b/addons/field_rations/stringtable.xml
@@ -266,6 +266,7 @@
다시 채우기만 가능
Sólo rellenar
Apenas reabastecer
+ Remplissage uniquement
Terrain Object Actions
@@ -279,6 +280,7 @@
지형 물체 상호작용
Acciones sobre objetos del terreno
Ações para objetos do terreno
+ Actions sur les objets du terrain
Enables water source actions for terrain objects.
@@ -292,6 +294,7 @@
지형 물체에서 물을 얻는 게 가능해집니다.
Habilitar acciones de suministros de agua para los objetos en el suelo.
Habilita ações para suprimentos de água para objetos do terreno.
+ Active les actions relatives aux sources d'eau pour les objets de terrain.
Affect Advanced Fatigue
@@ -306,6 +309,7 @@
고급 피로도에 영향을 끼침
Afecta a la Fatiga Avanzada
Afeta a Fadiga Avançada
+ Affectation Fatigue avancée
Controls if thirst and hunger should affect ACE Advanced Fatigue.
@@ -320,6 +324,7 @@
배고픔과 목마름이 고급 피로도에 영향을 끼칠지를 정합니다
Controla si la sed y el hambre afectan a la Fatiga Avanzada de ACE
Controla se a sede e a fome afetam a Fadiga Avançada do ACE.
+ Contrôle si la soif et la faim doivent affecter la fatigue avancée ACE.
HUD Type
@@ -334,6 +339,7 @@
HUD 종류
Tipo de HUD
Tipo de HUD
+ Type de HUD
Selects which HUD style will be used.
@@ -348,6 +354,7 @@
사용될 HUD 스타일을 고르십시오.
Selecciona qué estilo de HUD será utilizado.
Seleciona qual estilo de HUD será usado.
+ Sélectionne le style HUD à utiliser.
Colored Icons
@@ -362,6 +369,7 @@
색깔 아이콘
Iconos coloreados
Ícones coloridos
+ Icônes de couleur
Draining Icons
@@ -376,6 +384,7 @@
빠지는 아이콘
Iconos de drenado
Ícones de drenagem
+ Icônes incolores
HUD Show Level
@@ -390,6 +399,7 @@
HUD 표시
Mostrar nivel en HUD
Mostrar nível no HUD
+ Afficher le niveau dans le HUD
Automatically show the HUD when either thirst or hunger are above this level.
@@ -404,6 +414,7 @@
정한 퍼센트 이하로 내려가면 HUD가 나타나게 합니다.
Mostrar automáticamente el HUD cuando la sed o el hambre están por encima de este nivel.
Mostrar automaticamente o HUD quando a sede ou a fome estão acima deste nível.
+ Affiche automatiquement le HUD dès que la soif ou la faim sont au-dessus de ce niveau.
Always
@@ -435,6 +446,7 @@
색깔 아이콘 - 투명도
Iconos coloreados - Transparencia
Ícones coloridos - Transparência
+ Icônes de couleur - Transparence
Controls the transparency of the Colored Icons HUD. Dynamic setting makes the HUD less transparent as thirst or hunger increase.
@@ -449,6 +461,7 @@
색깔 아이콘의 투명도를 조절합니다. 동적 설정의 경우 배고픔이나 목마름이 해결되면 덜 투명하게 바뀝니다.
Controla la transparencia de los Iconos coloreados en el HUD. La opción dinámica muestra el HUD menos transparente cuando la sed o el hambre aumentan.
Controla a transparência dos ícones coloridos no HUD. A configuração dinâmica torna o HUD menos transparente à medida que a sede ou a fome aumentam.
+ Contrôle la transparence du HUD des icônes colorées. Un réglage dynamique rend le HUD moins transparent lorsque la soif ou la faim augmentent.
Dynamic
@@ -479,6 +492,7 @@
식수 보급량
Suministro de agua
Suprimentos de água
+ Réserve d'eau
The amount of water available for ACE Field Rations water source actions (-1 disabled, -10 infinite)
@@ -492,6 +506,7 @@
ACE 전투식량 물 근처 행동에서 얼마나 물을 얻어 갈 수 있는지를 정합니다 (-1은 비활성화, -10은 무한대)
La cantidad de agua disponible para las acciones de suministro de agua de las Raciones de Combate de ACE (-1 deshabilitado, -10 infinito)
A quantidade de água disponível para as ações de suprimentos de água das Rações de Campo do ACE (-1 desativado, -10 infinito)
+ Quantité d'eau disponible pour les actions relatives aux sources d'eau des rations de campagne ACE (-1 désactivé, -10 infini).
Water Source
@@ -506,6 +521,7 @@
수원지
Suministro de agua
Fonte de água
+ Source d'eau
Check Remaining Water
@@ -520,6 +536,7 @@
남은 물 확인
Comprobar agua restante
Verificar água restante
+ Vérifier l'eau restante
Checking remaining water...
@@ -534,6 +551,7 @@
남은 물 확인 중...
Comprobando agua restante...
Verificando água restante...
+ Vérification de l'eau restante...
There are %1 litres left.
@@ -548,6 +566,7 @@
%1 리터의 물이 남아있습니다.
Quedan %1 litros.
Ainda há %1 litros.
+ Il reste %1 litres.
There is no water left.
@@ -562,6 +581,7 @@
물이 한 방울도 없습니다.
No queda agua.
Não há mais água.
+ Il n'y a plus d'eau.
Drink From Source
@@ -575,6 +595,7 @@
수원에서 물 마시기
Beber desde el suministro
Beber da fonte
+ Boire à la source
Refill
@@ -640,6 +661,7 @@
%1 먹는 중...
Comiendo %1...
Comendo %1...
+ Manger %1...
Drinking %1...
@@ -654,6 +676,7 @@
%1 마시는 중...
Bebiendo %1...
Bebendo %1...
+ Boire %1...
Drinking from %1...
@@ -668,6 +691,7 @@
%1 으로 부터 마시는 중...
Bebiendo desde %1...
Bebendo de %1...
+ Boire à %1...
Drinking from source...
@@ -681,6 +705,7 @@
수원에서 마시는 중...
Bebiendo desde el suministro...
Bebendo da fonte...
+ Boire à la source...
Water Bottle
@@ -899,6 +924,7 @@
상쾌한 레몬라임향의 탄산음료
Bebida refrescante de sabor lima y limón
Bebida refrescante de sabor limão e lima
+ Une boisson gazeuse rafraîchissante au goût de citron et de citron vert.
Orange flavored soft drink with a tingly, fruity taste
@@ -913,6 +939,7 @@
오렌지 향의 톡쏘는 탄산음료
Bebida refrescante de sabor naranja, con un chispeante y afrutado sabor.
Bebida refrescante de sabor laranja, com um sabor frutado e formigante.
+ Une boisson gazeuse aromatisée à l'orange
Red Gull gives you wings
@@ -927,6 +954,7 @@
레드굴은 날개를 달아줘요
Red Gull te da alas
Red Gull te dá asas
+ Red Gull vous donne des ailes
MRE Lamb Curry
@@ -975,6 +1003,7 @@
MRE 비프스튜
MRE Estofado de ternera
MRE ensopado de carne
+ MRE Ragoût de bœuf
An MRE containing Beef Stew. Heat for best effect
@@ -989,6 +1018,7 @@
비프스튜가 들어있는 MRE입니다. 뜨겁게 먹을 때 가장 좋습니다
Un MRE que contiene estofado de ternera. Calentar para mejor efecto.
Um MRE contendo ensopado de carne. Aquecer para melhor efeito
+ Un MRE contenant du ragoût de bœuf. Chauffer pour un meilleur effet
MRE Cream Tomato Soup
@@ -1237,6 +1267,7 @@
Семечки подсолнуха
Pipas de girasol
Sementes de girassol
+ Graines de tournesol
Roasted And Salted
@@ -1249,6 +1280,7 @@
Поджаренные и солёные
Tostadas y saladas
Torradas e salgadas
+ Grillé et salé
diff --git a/addons/fieldmanual/stringtable.xml b/addons/fieldmanual/stringtable.xml
index a4474dc2d4..05c7414f17 100644
--- a/addons/fieldmanual/stringtable.xml
+++ b/addons/fieldmanual/stringtable.xml
@@ -38,6 +38,7 @@
%3Fame%4 aumenta linearmente con la velocità di movimento del soldato. Si rigenera consumando cibo.<br/><br/>%3Usa:%4<br/>%2Raccogli cibo.<br/>%2Usa [%3%12%4] e scegli %3sopravvivenza%4.<br />%2Scegli un articolo da mangiare.
%3空腹度%4は兵士の移動速度に比例して増加します。食べ物を食べることで回復します。<br/><br/>%3使用方法:%4<br/>%2食べ物を持つ。<br/>%2[%3%12%4] を使って%3サバイバル%4を選択。<br/>%2食べたいものを選ぶ。
%3Голод%4 линейно увеличивается со скоростью передвижения солдата. Восстанавливайтесь, употребляя пищу.<br/><br/>%3 Использование:%4<br/>%2Возьмите еду.<br/>%2Используйте [%3%12%4] и выберите %3Выживание% 4.<br/>%2Выберите продукт для потребления.
+ %3La faim%4 augmente linéairement avec la vitesse de déplacement du soldat. Il se régénère en consommant de la nourriture.<br/><br/>%3Utilisation:%4<br/>%2Ramasser la nourriture.<br/>%2Utilisez [%3%12%4] et sélectionnez %3Survie%4.<br/>%2Choisissez un article à consommer.
Thirst
@@ -59,6 +60,7 @@
%3Sete%4 aumenta linearmente con la velocità di movimento del soldato. Si rigenera bevendo liquidi.<br/><br/>%3Usa:%4<br/>%2Raccogli bevanda.<br/>%2Usa [%3%12%4] e scegli %3sopravvivenza%4.<br />%2Scegli un articolo da bere.
%3喉の渇き%4は兵士の移動速度に比例して増加します。飲み物を飲むことで回復します。<br/><br/>%3使用方法:%4<br/>%2飲み物を持つ。<br/>%2[%3%12%4] を使って%3サバイバル%4を選択。<br/>%2飲みたいものを選ぶ。
%3Жажда%4 линейно увеличивается со скоростью передвижения солдата. Восстанавливайтесь, употребляя напитки.<br/><br/>%3 Использование:%4<br/>%2Возьмите напиток.<br/>%2Используйте [%3%12%4] и выберите %3Выживание% 4.<br/>%2Выберите напиток для потребления.
+ %3La soif%4 augmente linéairement avec la vitesse de déplacement du soldat. Elle se régénère en buvant des liquides.<br/><br/>%3Utilisez [%3%12%4] et choisissez %3survival%4.<br />%2Choisissez un article à boire.
Medical Treatment
@@ -91,6 +93,7 @@
%3Adenosina%4 è usata per rallentare il ritmo cardiaco.<br/><br/>%3Utilizzo:%4<br/>%2Usa [%3%13%4] o [%3%14%4] e seleziona un arto.<br/>%2Inject %3Adenosina%4.
%3アデノシン%4は心拍数を下げるのに使われます。<br/><br/>%3使用方法:%4<br/>%2[%3%13%4] または [%3%14%4] を使って四肢を選択します。<br/>%2そして%3アデノシン%4を注射します。
%3Аденозин%4 используется для снижения частоты сердечных сокращений.<br/><br/>%3Применение:%4<br/>%2Используйте [%3%13%4] или [%3%14%4] и выберите конечность.<br/>%2Введите %3Аденозин%4.
+ L'%3adénosine%4 est utilisée pour réduire la fréquence cardiaque.<br/><br/>%3Utilisation:%4<br/>%2Utilisez [%3%13%4] ou [%3%14%4] et sélectionnez un membre.<br/>%2Injectez l'%3Adénosine%4.
Bandages
@@ -131,6 +134,7 @@
IV-Flüssigkeiten
Fluidi EV
IV 輸液
+ IV Fluides
Restore Blood Volume
@@ -141,6 +145,7 @@
Ristorano Volume di Sangue
血液量を回復する
Внутривенные жидкости
+ Restaurer le volume sanguin
%3IV fluids%4 restore lost blood volume. Blood, Plasma, and Saline are functionally the same.<br/><br/>%3Usage:%4<br/>%2Use [%3%13%4] or [%3%14%4] and select an appendage.<br/>%2Restore blood volume by selecting desired %3IV Fluid%4 type.
@@ -150,6 +155,7 @@
%3IV-Flüssigkeiten%4 stellen das verlorene Blutvolumen wieder her. Blut, Plasma und Kochsalzlösung sind funktionell gleich.<br/><br/>%3Verwende:%4<br/>%2Verwende [%3%13%4] oder [%3%14%4] und wählen ein Körperteil aus..<br/>%2Stelle das Blutvolumen wieder her, indem der gewünschte %3IV Flüssigkeitstyp%4 ausgewählt wird.
%3Fluidi EV%4 ristorano volume di sangue perso. Sangue, Plasma, e Salina sono funzionalmente identiche.<br/><br/>%3Utilizzo:%4<br/>%2Usa [%3%13%4] o [%3%14%4] e seleziona un arto.<br/>%2Ristora il volume di sangue selezionando il tipo di %3Fluido EV%4 desiderato.
%3IV 輸液%4は失われた血液を回復します。血液、血漿、生理食塩水は機能的には同じです。<br/><br/>%3使用方法:%4<br/>%2[%3%13%4] または [%3%14%4] を使って四肢を選択します。<br/>%2希望の%3IV 輸液%4の種類を選択して、血液量を復元します。
+ %%3Внутривенные жидкости%4восстанавливают потерянный объем крови. Кровь, плазма и физраствор функционально идентичны.<br/><br/>%3 Использование:%4<br/>%2 Используйте [%3%13%4] или [%3%14%4] и выберите добавку.<br/>%2 Восстановите объем крови выбрав желаемый %4тип %3жидкости
Increase Heart Rate | Wake Up Faster
@@ -200,6 +206,7 @@
Risolvi frattura
骨折を治す
Исправлять переломы
+ Réparation des fractures
A %3Splint%4 is used to fix fractures. The %3Splint%4 is consumed when used.<br/><br/>%3Usage:%4<br/>%2Use [%3%13%4] or [%3%14%4] and select an affected appendage.<br/>%2Select %3Apply Splint%4.
@@ -524,6 +531,7 @@
휴대용 기상 관측 장비입니다
携帯気象予報所
Карманная метеостанция
+ Station météo de poche
The %3Kestrel 4500 Pocket Weather Tracker%4 is a mini weather station useful for collecting the the following weather data:<br/>%2Heading and wind direction<br/>%2Crosswind and headwind<br/>%2Altitude and barometric pressure<br/>%2Wet bulb temperature<br/>%2Humidity and dewpoint<br/>%2Density altitude<br/>%2Wind chill and temperature<br/>%2Time and date<br/>%2Minimum, maximum, and average values<br/><br/>%3Usage:%4<br/>%2Equip a %3Kestrel%4.<br/>%2Use [%3%12%4] and select %3Equipment%4.<br/>%2Select %3Open%4.
@@ -539,6 +547,7 @@
위치를 삼각측량합니다
三角測量で位置を特定
Передавайте свое местоположение
+ Trianguler votre position
The %3Map Tools%4 are a set of tools that allows a soldier to measure distances and angles. Useful for land, and calculating firing solutions for artillery.<br/><br/>%3Usage:%4<br/>%2Open %3Map%4.<br/>%2Use [%3%12%4] and select %3Map Tools%4.<br/>%2 The Tool can be moved by dragging with [%3Left-Click%4] while holding [%3ALT%4].
@@ -546,6 +555,7 @@
Gli %3Strumenti Cartografici%4 permettono al soldato di misurare distanze e angoli sulla mappa. Utile a terra e per calculare direzioni di tiro per artiglieria.<br/><br/>%3Utilizzo:%4<br/>%2Apri %3Mappa%4.<br/>%2Usa [%3%12%4] e seleziona %3Strumenti Cartografici%4.<br/>%2 Lo strumento può essere spostato trascinandolo con [%3Click-Sinistro%4] premendo [%3ALT%4].
%3독도용 도구%4는 병사가 거리와 각도를 측정할 수 있는 도구 세트입니다. 지상에서 유용하며 포병 사격 솔루션 계산에 유용합니다,<br/><br/>%3사용 방법:%4<br/>%2%3지도%4를 여십시오.<br/>%2[%3%12%4]를 사용하여 %3독도용 도구%4를 선택하십시오.<br/>%2도구는 [%3Alt 키%4]를 누른 상태에서 [%3마우스 왼쪽 클릭%4]으로 드래그하여 이동할 수 있습니다.
%3マップ ツール%4は、兵士が距離と角度を測定できるようにするツールのセットです。陸上や大砲の射撃工程の計算を解くのに役立ちます。<br/><br/>%3使用方法:%4<br/>%2%3マップ%4を開きます。<br/>%2[%3%12%4] を使って%3マップ ツール%4を選択します。<br/>%2 [%3ALT%4] を押しながら [%3左クリック%4] でドラッグするとツールを移動できます。
+ Les %3Outils cartographiques%4 sont un ensemble d'outils permettant au soldat de mesurer des distances et des angles. Utile pour la terre et le calcul des solutions de tir pour l'artillerie.<br/><br/>%3Utilisation:%4<br/>%2Ouvrir la%3Carte%4.<br/>%2Utiliser [%3%12%4] et sélectionner %3Outils cartographiques%4.<br/>%2 L'outil peut être déplacé en le faisant glisser avec [%3Clic gauche%4] tout en maintenant [%3ALT%4].
Advanced DAGR
@@ -554,6 +564,7 @@
고급형 DAGR입니다
より高度なDAGR
Продвинутый DAGR
+ DAGR avancé
The %3MicroDAGR GPS%4 is an advanced version of the %3DAGR%4. It provides position, navigation, and timing (PNT) data to include:<br/>%2Compass and heading<br/>%2Date and hour synced to the mission<br/>%2Elevation (relative to sea level)<br/>%2Current speed<br/>%2GPS with topographic and satellite view<br/>%2Creating, naming, and deleting waypoints<br/>%2Friendly identification (Requires ACE BLUFOR Tracker Setting)<br/>Connection to the Vector-21 Rangefinder for data import (waypoint creation and grid reference of ranged targets)<br/><br/>%3Usage:%4<br/>%2For usage instructions, please visit the dedicated %3MicroDAGR%4 wiki.
@@ -569,6 +580,7 @@
사거리표
射表
Таблицы диапазонов
+ Tables de tir
Get A Firing Solution
@@ -577,6 +589,7 @@
사격 솔루션을 제공합니다
撃ち方の解を得る
Получите расчёт
+ Obtenir une solution de tir
%3Range Tables%4 allow for a soldier to estimate accurate shot placement on direct or indirect targets (depending on asset). The %3Range Table%4 will automatically fill depending on the soldiers selected weapon/vehicle.<br/><br/>%3Usage:%4<br/>%2Use [%3%12%4] and select %3Equipment%4.<br/>%2Select the desired %3Range Table%4.
@@ -592,6 +605,7 @@
로프
ロープ
Канаты
+ Corde
Tow With Ease
@@ -690,6 +704,7 @@
空の目を維持する
Не Отрывай Глаз От Неба
Gardez les yeux au ciel
+ Gardez les yeux au ciel
%3UAV Batteries%4 are used to recharge a UAV's energy storage. Especially useful for small UAVs.<br/><br/>%3Usage:%4<br/>%2Equip a %3UAV Battery%4<br/>%2Approach a %3UAV%4 with its %3Engine Off%4.<br/>%2Use [%3%13%4] and select %3Recharge%4.
@@ -705,6 +720,7 @@
진입로를 만듭니다
堂々入場する
Создание собственного входа
+ Faire son entrée
%3Wirecutters%4 are a tool that allows a soldier to bypass wired fencing. Useful for creating backdoor entrances into secure areas.<br/><br/>%3Usage:%4<br/>%2Move close to a fence.<br/>%2Use [%3%12%4] and select %3Cut Fence%4.
@@ -785,6 +801,7 @@
차량 열쇠
車両キー
Взлом и проникновение
+ Clés de véhicule
Lock/Unlock Vehicles
@@ -793,6 +810,7 @@
차량을 잠그거나 해제합니다
車両のロック/ロック解除
Взлом и проникновение
+ Verrouiller/déverrouiller un véhicule
%3Vehicle Keys%4 are used to lock/unlock your vehicles. Vehicle keys can exist for the whole side, or keys can be created for a particular vehicle itself.<br/><br/>%3Usage:%4<br/>%2Equip a %3Vehicle Key%4.<br/>%2Approach the vehicle that the key belongs to.<br/>Use [%3%13%4] and select %3Lock/Unlock Vehicle%4.<br/><br/><t underline='1'>%3Note:%4</t> Lockpicks and keys are only available via scripting or ACE Vehicle Key modules.
diff --git a/addons/finger/functions/fnc_keyPress.sqf b/addons/finger/functions/fnc_keyPress.sqf
index 59405b57a5..2445986d15 100644
--- a/addons/finger/functions/fnc_keyPress.sqf
+++ b/addons/finger/functions/fnc_keyPress.sqf
@@ -42,7 +42,7 @@ private _sendFingerToPlayers = [];
private _nearbyMen = (ACE_player nearObjects ["CAManBase", (GVAR(maxRange) + 2)]);
{
_nearbyMen append (crew _x);
-} count (ACE_player nearObjects ["StaticWeapon", (GVAR(maxRange) + 2)]);
+} forEach (ACE_player nearObjects ["StaticWeapon", (GVAR(maxRange) + 2)]);
{
if ((((eyePos _x) vectorDistance _playerEyePosASL) < GVAR(maxRange)) &&
{alive _x} &&
@@ -53,8 +53,7 @@ private _nearbyMen = (ACE_player nearObjects ["CAManBase", (GVAR(maxRange) + 2)]
_sendFingerToPlayers pushBack _x;
};
- true
-} count _nearbyMen;
+} forEach _nearbyMen;
TRACE_1("sending finger to",_sendFingerToPlayers);
diff --git a/addons/gestures/XEH_postInit.sqf b/addons/gestures/XEH_postInit.sqf
index 935b81aa61..5133f48c41 100644
--- a/addons/gestures/XEH_postInit.sqf
+++ b/addons/gestures/XEH_postInit.sqf
@@ -31,9 +31,7 @@ if (!hasInterface) exitWith {};
[_key, [false, (_key != -1), false]],
false
] call CBA_fnc_addKeybind;
-
- false
-} count [
+} forEach [
["Freeze", 80], // Numpad 2
["Cover", 81], // Numpad 3
["Forward", 75], // Numpad 4
diff --git a/addons/goggles/functions/fnc_isInRotorWash.sqf b/addons/goggles/functions/fnc_isInRotorWash.sqf
index 8c3b29723d..6784e9db12 100644
--- a/addons/goggles/functions/fnc_isInRotorWash.sqf
+++ b/addons/goggles/functions/fnc_isInRotorWash.sqf
@@ -36,7 +36,6 @@ private _rotorWash = [false, 0];
_rotorWash set [1, _distance];
};
};
- false
-} count (position _unit nearEntities [["Helicopter"], _radius]);
+} forEach (position _unit nearEntities [["Helicopter"], _radius]);
_rotorWash
diff --git a/addons/grenades/functions/fnc_flashbangExplosionEH.sqf b/addons/grenades/functions/fnc_flashbangExplosionEH.sqf
index e39a7730ce..6a7b683e6b 100644
--- a/addons/grenades/functions/fnc_flashbangExplosionEH.sqf
+++ b/addons/grenades/functions/fnc_flashbangExplosionEH.sqf
@@ -85,7 +85,7 @@ _affected = _affected - [ACE_player];
}, [_unit]] call CBA_fnc_waitUntilAndExecute;
};
};
-} count _affected;
+} forEach _affected;
// Affect local player, independently of distance
if (hasInterface && {!isNull ACE_player} && {alive ACE_player}) then {
diff --git a/addons/headless/XEH_postInit.sqf b/addons/headless/XEH_postInit.sqf
index 63c7fd5038..d1c76a332b 100644
--- a/addons/headless/XEH_postInit.sqf
+++ b/addons/headless/XEH_postInit.sqf
@@ -1,12 +1,12 @@
#include "script_component.hpp"
-["ace_settingsInitialized", {
+["CBA_settingsInitialized", {
// Register and remove HCs if not client that is not server and distribution or end mission enabled
if ((!hasInterface || isServer) && {XGVAR(enabled) || XGVAR(endMission) != 0}) then {
if (isServer) then {
// Request rebalance on any unit spawn (only if distribution enabled)
if (XGVAR(enabled)) then {
- ["AllVehicles", "initPost", LINKFUNC(handleSpawn), nil, nil, true] call CBA_fnc_addClassEventHandler;
+ ["CAManBase", "initPost", LINKFUNC(handleSpawn), nil, nil, true] call CBA_fnc_addClassEventHandler;
};
// Add disconnect EH
addMissionEventHandler ["HandleDisconnect", {call FUNC(handleDisconnect)}];
diff --git a/addons/headless/XEH_preInit.sqf b/addons/headless/XEH_preInit.sqf
index d3b2c8ff5c..c51b62cf57 100644
--- a/addons/headless/XEH_preInit.sqf
+++ b/addons/headless/XEH_preInit.sqf
@@ -12,7 +12,6 @@ if (isServer) then {
GVAR(headlessClients) = [];
GVAR(inRebalance) = false;
GVAR(endMissionCheckDelayed) = false;
- GVAR(blacklistType) = [BLACKLIST_UAV];
[QXGVAR(headlessClientJoined), LINKFUNC(handleConnectHC)] call CBA_fnc_addEventHandler;
};
diff --git a/addons/headless/functions/fnc_handleConnectHC.sqf b/addons/headless/functions/fnc_handleConnectHC.sqf
index b19ef25012..e5acaf48fc 100644
--- a/addons/headless/functions/fnc_handleConnectHC.sqf
+++ b/addons/headless/functions/fnc_handleConnectHC.sqf
@@ -19,17 +19,14 @@ params ["_headlessClient"];
// Exit if HC already registered
// No need to check if distribution or end mission enabled, as if disabled this will never run
-if (_headlessClient in GVAR(headlessClients)) exitWith {};
-
-// Register for use
-GVAR(headlessClients) pushBack _headlessClient;
+if (GVAR(headlessClients) pushBackUnique _headlessClient == -1) exitWith {};
if (XGVAR(log)) then {
INFO_1("Registered HC: %1",_headlessClient);
};
// Exit if AI distribution is disabled
-if (!XGVAR(enabled)) exitWith {true};
+if (!XGVAR(enabled)) exitWith {};
// Rebalance
[true] call FUNC(rebalance);
diff --git a/addons/headless/functions/fnc_handleDisconnect.sqf b/addons/headless/functions/fnc_handleDisconnect.sqf
index c94cec2599..a18f22a3bd 100644
--- a/addons/headless/functions/fnc_handleDisconnect.sqf
+++ b/addons/headless/functions/fnc_handleDisconnect.sqf
@@ -17,7 +17,7 @@
*/
params ["_object"];
-TRACE_1("HandleDisconnect",_this);
+TRACE_1("HandleDisconnect",_object);
// Exit if not HC
if !(_object in GVAR(headlessClients)) exitWith {
@@ -28,9 +28,7 @@ if !(_object in GVAR(headlessClients)) exitWith {
if (CBA_missionTime < 150) then {
TRACE_1("Mission start delay",CBA_missionTime);
GVAR(endMissionCheckDelayed) = true;
- [{
- call FUNC(endMissionNoPlayers);
- }, [], 150 - CBA_missionTime] call CBA_fnc_waitAndExecute;
+ [LINKFUNC(endMissionNoPlayers), [], 150 - CBA_missionTime] call CBA_fnc_waitAndExecute;
} else {
// End instantly or after delay
if (XGVAR(endMission) == 1) then {
@@ -39,7 +37,7 @@ if !(_object in GVAR(headlessClients)) exitWith {
} else {
TRACE_2("Delayed 60s end",GVAR(endMission),CBA_missionTime);
GVAR(endMissionCheckDelayed) = true;
- [FUNC(endMissionNoPlayers), [], 60] call CBA_fnc_waitAndExecute;
+ [LINKFUNC(endMissionNoPlayers), [], 60] call CBA_fnc_waitAndExecute;
};
};
};
diff --git a/addons/headless/functions/fnc_handleSpawn.sqf b/addons/headless/functions/fnc_handleSpawn.sqf
index 50277e3845..56b74f407d 100644
--- a/addons/headless/functions/fnc_handleSpawn.sqf
+++ b/addons/headless/functions/fnc_handleSpawn.sqf
@@ -4,27 +4,22 @@
* Handles AI spawn and requests a rebalance if applicable.
*
* Arguments:
- * 0: Object
+
+ Only units with heavy weapons
+ Uniquement les unités dotées d'armes lourdes
+ Только юниты с тяжелым вооружением
+
diff --git a/addons/huntir/functions/fnc_cam.sqf b/addons/huntir/functions/fnc_cam.sqf
index c306595fc7..411dbfe30e 100644
--- a/addons/huntir/functions/fnc_cam.sqf
+++ b/addons/huntir/functions/fnc_cam.sqf
@@ -77,8 +77,7 @@ GVAR(no_cams) sort true;
if (((getPosVisual _x) select 2) > 20 && {!(_x in GVAR(no_cams))} && {_x getHitPointDamage "HitCamera" < 0.25}) then {
GVAR(no_cams) pushBack _x;
};
- true
- } count GVAR(nearHuntIRs);
+ } forEach GVAR(nearHuntIRs);
{
if (((getPosVisual _x) select 2) <= 20 || {!(_x in GVAR(nearHuntIRs))} || {_x getHitPointDamage "HitCamera" >= 0.25}) then {
GVAR(no_cams) deleteAt _forEachIndex;
diff --git a/addons/interact_menu/functions/fnc_collectActiveActionTree.sqf b/addons/interact_menu/functions/fnc_collectActiveActionTree.sqf
index 82235493e6..ebb02caa11 100644
--- a/addons/interact_menu/functions/fnc_collectActiveActionTree.sqf
+++ b/addons/interact_menu/functions/fnc_collectActiveActionTree.sqf
@@ -43,12 +43,21 @@ _origActionData params [
"_distance"
];
+private _result = [_target, ACE_player, _customParams] call _conditionCode;
+
+// Handle nil as false
+if (isNil "_result") then {
+ ERROR_1("Action [%1] bad condition return",_actionName);
+
+ _result = false;
+};
+
// Return nothing if the action itself is not active
-if !([_target, ACE_player, _customParams] call _conditionCode) exitWith {
+if (!_result) exitWith {
[]
};
-// Return nothing if the action is to far (including checking sub actions) [DISABLED FOR NOW ref #2196]
+// Return nothing if the action is too far (including checking sub actions) [DISABLED FOR NOW ref #2196]
// if (_distanceToBasePoint > _distance) exitWith {
// []
// };
@@ -64,21 +73,19 @@ if (_insertChildrenCode isNotEqualTo {}) then {
// Collect dynamic children class actions
{
private _action = [_x select 2, _x, _fullPath, _distanceToBasePoint] call FUNC(collectActiveActionTree);
- if ((count _action) > 0) then {
+ if (_action isNotEqualTo []) then {
_activeChildren pushBack _action;
};
- nil
- } count _dynamicChildren;
+ } forEach _dynamicChildren;
};
// Collect children class actions
{
private _action = [_object, _x, _fullPath, _distanceToBasePoint] call FUNC(collectActiveActionTree);
- if ((count _action) > 0) then {
+ if (_action isNotEqualTo []) then {
_activeChildren pushBack _action;
};
- nil
-} count _origActionChildren;
+} forEach _origActionChildren;
// Collect children object actions
{
@@ -87,12 +94,11 @@ if (_insertChildrenCode isNotEqualTo {}) then {
// Check if the action is children of the original action
if (_pPath isEqualTo _fullPath) then {
private _action = [_object, [_actionData,[]], _fullPath, _distanceToBasePoint] call FUNC(collectActiveActionTree);
- if ((count _action) > 0) then {
+ if (_action isNotEqualTo []) then {
_activeChildren pushBack _action;
};
};
- nil
-} count GVAR(objectActionList);
+} forEach GVAR(objectActionList);
// If the original action has no statement, and no children, don't display it
diff --git a/addons/interact_menu/functions/fnc_compileMenu.sqf b/addons/interact_menu/functions/fnc_compileMenu.sqf
index 5290d8f284..75d759465c 100644
--- a/addons/interact_menu/functions/fnc_compileMenu.sqf
+++ b/addons/interact_menu/functions/fnc_compileMenu.sqf
@@ -114,8 +114,7 @@ private _recurseFnc = {
];
_actions pushBack _entry;
};
- nil
- } count (configProperties [_actionsCfg, "isClass _x", true]);
+ } forEach (configProperties [_actionsCfg, "isClass _x", true]);
_actions
};
diff --git a/addons/interact_menu/functions/fnc_compileMenuSelfAction.sqf b/addons/interact_menu/functions/fnc_compileMenuSelfAction.sqf
index 75fdb93819..ed3a02dd14 100644
--- a/addons/interact_menu/functions/fnc_compileMenuSelfAction.sqf
+++ b/addons/interact_menu/functions/fnc_compileMenuSelfAction.sqf
@@ -84,8 +84,7 @@ private _recurseFnc = {
];
_actions pushBack _entry;
};
- nil
- } count (configProperties [_actionsCfg, "isClass _x", true]);
+ } forEach (configProperties [_actionsCfg, "isClass _x", true]);
_actions
};
diff --git a/addons/interaction/functions/fnc_addPassengerActions.sqf b/addons/interaction/functions/fnc_addPassengerActions.sqf
index 112919ee80..a3d8c2eff0 100644
--- a/addons/interaction/functions/fnc_addPassengerActions.sqf
+++ b/addons/interaction/functions/fnc_addPassengerActions.sqf
@@ -33,7 +33,6 @@ private _actions = [];
_x params ["_actionData", "_children"];
_actions pushBack [_actionData, _children, _unit];
- false
-} count (_actionTrees select 0 select 1);
+} forEach (_actionTrees select 0 select 1);
_actions
diff --git a/addons/interaction/functions/fnc_getDown.sqf b/addons/interaction/functions/fnc_getDown.sqf
index b8f6d7c50d..531cd23c54 100644
--- a/addons/interaction/functions/fnc_getDown.sqf
+++ b/addons/interaction/functions/fnc_getDown.sqf
@@ -22,11 +22,10 @@ params ["_unit", "_target"];
[_unit, "GestureGo"] call EFUNC(common,doGesture);
-private _chance = [0.5, 0.8] select (count weapons _unit > 0);
+private _chance = [0.5, 0.8] select (weapons _unit isNotEqualTo []);
{
- if (count weapons _x == 0 && {random 1 < _chance}) then {
+ if (weapons _x isEqualTo [] && {random 1 < _chance}) then {
[QGVAR(getDown), [_x], [_x]] call CBA_fnc_targetEvent;
};
- false
-} count (_target nearEntities ["Civilian", SEND_RADIUS]);
+} forEach (_target nearEntities ["Civilian", SEND_RADIUS]);
diff --git a/addons/interaction/functions/fnc_openDoor.sqf b/addons/interaction/functions/fnc_openDoor.sqf
index 2afb438a60..11b9c67c91 100644
--- a/addons/interaction/functions/fnc_openDoor.sqf
+++ b/addons/interaction/functions/fnc_openDoor.sqf
@@ -35,12 +35,12 @@ if (_animations isEqualTo []) exitWith {};
private _lockedVariable = format ["bis_disabled_%1", _door];
private _lockedVariableAlt = _lockedVariable; // GM Buildings may have door names like door_01 but locking expects door_1
-if ((count _door == 7) && {(_door select [0, 6]) == "door_0"}) then {
+if ((count _door == 7) && {(_door select [0, 6]) == "door_0"}) then {
_lockedVariableAlt = format ["bis_disabled_door_%1", _door select [6, 1]]; // stip off the leading zero then check both vars
};
// Check if the door can be locked aka have locked variable, otherwhise cant lock it
-if ((_house animationPhase (_animations select 0) <= 0) &&
+if ((_house animationPhase (_animations select 0) <= 0) &&
{(_house getVariable [_lockedVariable, 0] == 1) || {_house getVariable [_lockedVariableAlt, 0] == 1}}) exitWith {
private _lockedAnimation = format ["%1_locked_source", _door];
TRACE_3("locked",_house,_lockedAnimation,isClass (configOf _house >> "AnimationSources" >> _lockedAnimation));
@@ -76,7 +76,7 @@ GVAR(usedScrollWheel) = false;
if !(GVAR(usedScrollWheel)) then {
private _phase = parseNumber (_house animationPhase (_animations select 0) < 0.5);
- {_house animate [_x, _phase]; false} count _animations;
+ {_house animate [_x, _phase]} forEach _animations;
};
// Raise local stopped opening event
@@ -93,5 +93,5 @@ GVAR(usedScrollWheel) = false;
GVAR(usedScrollWheel) = true;
};
// do incremental door opening
- {_house animate [_x, GVAR(doorTargetPhase)]; false} count _animations;
+ {_house animate [_x, GVAR(doorTargetPhase)]} forEach _animations;
}, 0.1, [_house, _animations, getPosASL ACE_player, CBA_missionTime + 0.2, diag_frameno + 2, _door]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/interaction/functions/fnc_sendAway.sqf b/addons/interaction/functions/fnc_sendAway.sqf
index cef314756f..b986ea2661 100644
--- a/addons/interaction/functions/fnc_sendAway.sqf
+++ b/addons/interaction/functions/fnc_sendAway.sqf
@@ -22,14 +22,13 @@ params ["_unit"];
[_unit, "GestureGo"] call EFUNC(common,doGesture);
-private _chance = [0.5, 0.8] select (count weapons _unit > 0);
+private _chance = [0.5, 0.8] select (weapons _unit isNotEqualTo []);
{
- if (count weapons _x == 0 && {random 1 < _chance}) then {
+ if (weapons _x isEqualTo [] && {random 1 < _chance}) then {
private _position = getPosASL _unit vectorAdd (eyeDirection _unit vectorMultiply SEND_DISTANCE);
_position set [2, 0];
[QGVAR(sendAway), [_x, _position], [_x]] call CBA_fnc_targetEvent;
};
- false
-} count (_unit nearEntities ["Civilian", SEND_RADIUS]);
+} forEach (_unit nearEntities ["Civilian", SEND_RADIUS]);
diff --git a/addons/killtracker/stringtable.xml b/addons/killtracker/stringtable.xml
index 8bc6ab13a2..24c7bcdd56 100644
--- a/addons/killtracker/stringtable.xml
+++ b/addons/killtracker/stringtable.xml
@@ -102,6 +102,7 @@
Отслеживание юнитов ИИ, убитых игроком
プレイヤーに殺害されたAIユニットを追跡
플레이어가 죽인 AI 트래킹
+ Suivi de l'IA tuée par les joueurs
Defines if killed AIs will be shown in the kill tracker during mission debriefing.
@@ -110,6 +111,7 @@
Определяет, будут ли убитые ИИ отображаться в трекере убийств во время дебрифинга миссии.
ミッションデブリーフィングのキルトラッカーに殺害されたAIが表示されるかどうかを定義します。
사후강평 중 살해된 AI가 킬트래킹에 표시되는지 여부를 정의합니다.
+ Définit si les IA tuées seront affichées dans le tracker pendant le débriefing de la mission.
diff --git a/addons/laser/functions/fnc_seekerFindLaserSpot.sqf b/addons/laser/functions/fnc_seekerFindLaserSpot.sqf
index d1e4626d53..aa3e43d35a 100644
--- a/addons/laser/functions/fnc_seekerFindLaserSpot.sqf
+++ b/addons/laser/functions/fnc_seekerFindLaserSpot.sqf
@@ -103,7 +103,7 @@ private _finalOwner = objNull;
TRACE_2("",count _spots,_spots);
-if ((count _spots) > 0) then {
+if (_spots isNotEqualTo []) then {
private _bucketList = nil;
private _bucketPos = nil;
private _c = 0;
diff --git a/addons/map/XEH_postInitClient.sqf b/addons/map/XEH_postInitClient.sqf
index 72637e3092..ea3ce19464 100644
--- a/addons/map/XEH_postInitClient.sqf
+++ b/addons/map/XEH_postInitClient.sqf
@@ -73,8 +73,7 @@ GVAR(hasWatch) = true;
GVAR(hasWatch) = false;
{
if (_x isKindOf ["ItemWatch", configFile >> "CfgWeapons"]) exitWith {GVAR(hasWatch) = true;};
- false
- } count (assignedItems _unit);
+ } forEach (assignedItems _unit);
}, true] call CBA_fnc_addPlayerEventHandler;
diff --git a/addons/maptools/functions/fnc_canUseMapGPS.sqf b/addons/maptools/functions/fnc_canUseMapGPS.sqf
index 317eee6c42..0bdd0d0ea6 100644
--- a/addons/maptools/functions/fnc_canUseMapGPS.sqf
+++ b/addons/maptools/functions/fnc_canUseMapGPS.sqf
@@ -15,6 +15,10 @@
* Public: No
*/
-visibleMap &&
-{alive ACE_player} &&
-{"ItemGPS" in (assignedItems ACE_player)}
+if (!visibleMap || {!alive ACE_player}) exitWith {false};
+
+private _gpsOpened = visibleGPS;
+private _gpsAvailable = openGPS true;
+if (!_gpsOpened) then {openGPS false};
+
+_gpsAvailable // return
diff --git a/addons/maptools/stringtable.xml b/addons/maptools/stringtable.xml
index 9d23c4ffff..cca7aa98a8 100644
--- a/addons/maptools/stringtable.xml
+++ b/addons/maptools/stringtable.xml
@@ -41,6 +41,7 @@
標定盤
Tavola di calcolo
Графическая доска
+ Tableau de calcul
The Plotting Board is a map tool designed for use in the directing of short range indirect fires.
@@ -48,6 +49,7 @@
標定盤(プロッティング・ボード)は、短距離の間接射撃の指示に使用するために設計されたマップツールです。
La tavola di calcolo è uno strumento utilizzato per dirigere fuoco di artiglieria a corto raggio.
Графическая доска - это картографический инструмент, предназначенный для использования при ведении непрямого огня с малой дистанции.
+ La table de calcul est un instrument utilisé pour diriger les tirs d'artillerie à courte portée.
Channels in which plotting board drawing is enabled.
@@ -279,6 +282,7 @@
플로팅 보드 그리기가 활성화된 채널입니다.
Canali in cui si può disegnare sulla tavola di calcolo.
Каналы, в которых включено рисование на миллиметровой доске.
+ Canaux dans lesquels vous pouvez dessiner sur le tableau.
Allow Direct Comms Only (Polylines Only)
@@ -286,6 +290,7 @@
직접교신만 허용 (선 긋기만)
Comunicazioni Dirette (solo linee)
Разрешать только прямую связь (только полилинии)
+ Communications directes uniquement (lignes uniquement)
Allow Direct/Group Comms (Polylines and Group Markers)
@@ -293,6 +298,7 @@
직접교신/그룹무전망 허용 (선 긋기와 그룹 마커)
Comunicazioni dirette/gruppo (linee e marker)
Разрешить прямую/групповую связь (полилинии и групповые маркеры)
+ Autoriser les communications directes/de groupe (polylignes et marqueurs de groupe)
Plotting Board
@@ -300,6 +306,7 @@
플로팅 보드
Tavola di calcolo
Миллиметровая доска
+ Table de calcul
Plotting Board Acrylic
@@ -307,6 +314,7 @@
플로팅 보드 (아크릴)
Acrilico tavola di calcolo
Миллиметровая доска акрилловая
+ Table de calcul Acrylique
Plotting Board Ruler
@@ -314,6 +322,7 @@
플로팅 보드 (자)
Righello tavola di calcolo
Линейка для миллиметровой доски
+ Règle de la table de calcul
To Plotting Board
@@ -321,6 +330,7 @@
플로팅 보드에
Su tavola di calcolo
К миллиметровой доске.
+ Sur la table de calcul
To Plotting Board Acrylic
@@ -328,6 +338,7 @@
플로팅 보드 (아크릴)에
Su acrilico tavola di calcolo
К миллиметровой доске акрилловой
+ Sur la table de calcul Acrylique
To Plotting Board Ruler
@@ -335,6 +346,7 @@
플로팅 보드 (자)에
Su righello tavola di calcolo
К линейке миллиметровой доски.
+ Sur la règle de la table à calcul
Wipe all markers off Plotting Board
@@ -342,6 +354,7 @@
플로팅 보드에 있는 모든 마커 지우기
Cancella tutti i disegni dalla tavola
Сотрите все маркеры с миллиметровой доски.
+ Effacer tous les dessins de la planche
Show Plotting Board
@@ -349,6 +362,7 @@
플로팅 보드 보이기
Mostra tavola di calcolo
Показать миллиметровую доску.
+ Afficher la table de calcul
Hide Plotting Board
@@ -356,6 +370,7 @@
플로팅 보드 숨기기
Nascondi tavola di calcolo
Скрыть миллиметровую доску.
+ Masquer la table de calcul
Toggle Plotting Board Ruler
@@ -363,6 +378,7 @@
플로팅 보드 (자) 토글
Mostra/Nascondi Righello
Переключить линейку миллиметровой доски.
+ Afficher/masquer la règle
Align
@@ -412,6 +428,7 @@
위로
Su
Вверх
+ Monter
To Maptool
@@ -419,6 +436,7 @@
독도용 도구로
Su strumento cartografico
К инструментам карты
+ Outil cartographique
diff --git a/addons/markers/functions/fnc_setMarkerJIP.sqf b/addons/markers/functions/fnc_setMarkerJIP.sqf
index 8536b90a90..12dfe5de77 100644
--- a/addons/markers/functions/fnc_setMarkerJIP.sqf
+++ b/addons/markers/functions/fnc_setMarkerJIP.sqf
@@ -49,5 +49,4 @@ TRACE_2("params",_allMapMarkers,_allMapMarkersProperties);
_x setMarkerDirLocal _dir;
_x setMarkerSizeLocal [_scale, _scale];
};
- false
-} count allMapMarkers;
+} forEach allMapMarkers;
diff --git a/addons/medical_damage/functions/fnc_interpolatePoints.sqf b/addons/medical_damage/functions/fnc_interpolatePoints.sqf
index a84f079f30..b343417837 100644
--- a/addons/medical_damage/functions/fnc_interpolatePoints.sqf
+++ b/addons/medical_damage/functions/fnc_interpolatePoints.sqf
@@ -19,7 +19,7 @@
*/
params ["_input", "_points", ["_randomRound", false]];
-if (count _points < 1) exitWith {
+if (_points isEqualTo []) exitWith {
//TODO: sensible default/error value
0
};
diff --git a/addons/medical_engine/XEH_postInit.sqf b/addons/medical_engine/XEH_postInit.sqf
index 5557807629..2514c62254 100644
--- a/addons/medical_engine/XEH_postInit.sqf
+++ b/addons/medical_engine/XEH_postInit.sqf
@@ -86,12 +86,6 @@
if (!isNull objectParent _unit && {local objectParent _unit}) exitWith {
[_unit] call FUNC(lockUnconsciousSeat);
};
-
- // Prevent second ragdoll of uncon units when they're killed
- if (IS_UNCONSCIOUS(_unit) && !isAwake _unit) then {
- _unit enableSimulation false;
- [{_this enableSimulation true}, _unit, 2] call CBA_fnc_waitAndExecute;
- };
}] call CBA_fnc_addEventHandler;
["CAManBase", "deleted", {
diff --git a/addons/medical_gui/stringtable.xml b/addons/medical_gui/stringtable.xml
index 6d7e819b29..5a41bba671 100644
--- a/addons/medical_gui/stringtable.xml
+++ b/addons/medical_gui/stringtable.xml
@@ -1366,6 +1366,7 @@
出血状態の表示
출혈 상태 표시
Afficher l'état des saignements
+ Показать состояние кровотечения
Display if the patient is bleeding, optionally with rate
@@ -1376,6 +1377,7 @@
患者が出血しているかどうかを表示します。オプションで出血速度も表示します
환자가 출혈 중인지 여부를 표시합니다(선택적으로 출혈 속도 포함)
Indique si le patient saigne, éventuellement avec le taux de saignement
+ Показывает, есть ли у пациента кровотечение, опционально с указанием частоты
Show Bleeding Rate
@@ -1386,6 +1388,7 @@
出血速度の表示
출혈 속도 표시
Afficher le taux de saignement
+ Показать частоту кровотечения
Peek Medical Info on Hit
diff --git a/addons/medical_statemachine/CfgEventHandlers.hpp b/addons/medical_statemachine/CfgEventHandlers.hpp
index 98c29f77dc..b9150d8564 100644
--- a/addons/medical_statemachine/CfgEventHandlers.hpp
+++ b/addons/medical_statemachine/CfgEventHandlers.hpp
@@ -10,6 +10,12 @@ class Extended_PreInit_EventHandlers {
};
};
+class Extended_PostInit_EventHandlers {
+ class ADDON {
+ init = QUOTE(call COMPILE_SCRIPT(XEH_postInit));
+ };
+};
+
class Extended_Respawn_EventHandlers {
class CAManBase {
class ADDON {
diff --git a/addons/medical_statemachine/XEH_postInit.sqf b/addons/medical_statemachine/XEH_postInit.sqf
new file mode 100644
index 0000000000..a7c7740a39
--- /dev/null
+++ b/addons/medical_statemachine/XEH_postInit.sqf
@@ -0,0 +1,14 @@
+#include "script_component.hpp"
+
+["ace_killed", { // global event
+ params ["_unit"];
+
+ // Prevent second ragdoll of uncon units when they're killed
+ if (
+ IS_UNCONSCIOUS(_unit) && !isAwake _unit // uncon and not ragdolling
+ && {isPlayer _unit || {_unit getVariable [QGVAR(AIUnconsciousness), GVAR(AIUnconsciousness)]}}
+ ) then {
+ _unit enableSimulation false;
+ [{_this enableSimulation true}, _unit, 2] call CBA_fnc_waitAndExecute;
+ };
+}] call CBA_fnc_addEventHandler;
diff --git a/addons/medical_status/functions/fnc_getBloodLoss.sqf b/addons/medical_status/functions/fnc_getBloodLoss.sqf
index fd02f9042b..c2a6604679 100644
--- a/addons/medical_status/functions/fnc_getBloodLoss.sqf
+++ b/addons/medical_status/functions/fnc_getBloodLoss.sqf
@@ -23,4 +23,10 @@ if (_woundBleeding == 0) exitWith {0};
private _cardiacOutput = [_unit] call FUNC(getCardiacOutput);
// even if heart stops blood will still flow slowly (gravity)
-(_woundBleeding * (_cardiacOutput max CARDIAC_OUTPUT_MIN) * EGVAR(medical,bleedingCoefficient))
+private _bloodLoss = (_woundBleeding * (_cardiacOutput max CARDIAC_OUTPUT_MIN) * EGVAR(medical,bleedingCoefficient));
+
+private _eventArgs = [_unit, _bloodLoss]; // Pass by reference
+
+[QGVAR(getBloodLoss), _eventArgs] call CBA_fnc_localEvent;
+
+_eventArgs select 1 // return
diff --git a/addons/medical_status/functions/fnc_setDead.sqf b/addons/medical_status/functions/fnc_setDead.sqf
index 9dfc07d114..cb1e1f1d6f 100644
--- a/addons/medical_status/functions/fnc_setDead.sqf
+++ b/addons/medical_status/functions/fnc_setDead.sqf
@@ -17,10 +17,14 @@
params ["_unit", ["_reason", "#setDead"], ["_instigator", objNull]];
TRACE_3("setDead",_unit,_reason,_instigator);
+
// No heart rate or blood pressure to measure when dead
_unit setVariable [VAR_HEART_RATE, 0, true];
_unit setVariable [VAR_BLOOD_PRESS, [0, 0], true];
+// Clear uncon variable just to be safe
+_unit setVariable [VAR_UNCON, nil, true];
+
_unit setVariable [QEGVAR(medical,causeOfDeath), _reason, true];
// Send a local event before death
diff --git a/addons/medical_treatment/functions/fnc_bandage.sqf b/addons/medical_treatment/functions/fnc_bandage.sqf
index 2152e81a3b..8657936a66 100644
--- a/addons/medical_treatment/functions/fnc_bandage.sqf
+++ b/addons/medical_treatment/functions/fnc_bandage.sqf
@@ -10,7 +10,8 @@
* 3: Treatment
* 4: Item User
* 5: Used Item
- * 6: Bandage effectiveness coefficient (default: 1)
+ * 6: Create litter
+ * 7: Bandage effectiveness coefficient (default: 1)
*
* Return Value:
* None
@@ -21,10 +22,10 @@
* Public: No
*/
-_this set [6, _this param [6, 1]]; // set default Bandage effectiveness coefficient
+_this set [7, _this param [7, 1]]; // set bandage effectiveness coefficient
[QGVAR(bandaged), _this] call CBA_fnc_localEvent; // Raise event with reference so mods can modify this
-params ["_medic", "_patient", "_bodyPart", "_classname", "", "", "_bandageEffectiveness"];
+params ["_medic", "_patient", "_bodyPart", "_classname", "", "", "", "_bandageEffectiveness"];
[_patient, "activity", LSTRING(Activity_bandagedPatient), [[_medic, false, true] call EFUNC(common,getName)]] call FUNC(addToLog);
diff --git a/addons/medical_treatment/functions/fnc_bandageLocal.sqf b/addons/medical_treatment/functions/fnc_bandageLocal.sqf
index 4cecbb2f17..2c59540fd1 100644
--- a/addons/medical_treatment/functions/fnc_bandageLocal.sqf
+++ b/addons/medical_treatment/functions/fnc_bandageLocal.sqf
@@ -18,7 +18,7 @@
* Public: No
*/
-params ["_patient", "_bodyPart", "_bandage", ["_bandageEffectiveness", 1]];
+params ["_patient", "_bodyPart", "_bandage", ["_bandageEffectiveness", 1, [0]]];
TRACE_4("bandageLocal",_patient,_bodyPart,_bandage,_bandageEffectiveness);
_bodyPart = toLowerANSI _bodyPart;
diff --git a/addons/medical_treatment/functions/fnc_medicationLocal.sqf b/addons/medical_treatment/functions/fnc_medicationLocal.sqf
index 31884dac20..0b23b365e8 100644
--- a/addons/medical_treatment/functions/fnc_medicationLocal.sqf
+++ b/addons/medical_treatment/functions/fnc_medicationLocal.sqf
@@ -19,6 +19,9 @@
// todo: move this macro to script_macros_medical.hpp?
#define MORPHINE_PAIN_SUPPRESSION 0.6
+// 0.2625 = 0.6/0.8 * 0.35
+// 0.6 = basic medication morph. pain suppr., 0.8 = adv. medication morph. pain suppr., 0.35 = adv. medication painkillers. pain suppr.
+#define PAINKILLERS_PAIN_SUPPRESSION 0.2625
params ["_patient", "_bodyPart", "_classname"];
TRACE_3("medicationLocal",_patient,_bodyPart,_classname);
@@ -36,6 +39,10 @@ if (!GVAR(advancedMedication)) exitWith {
case "Epinephrine": {
[QEGVAR(medical,WakeUp), _patient] call CBA_fnc_localEvent;
};
+ case "Painkillers": {
+ private _painSuppress = GET_PAIN_SUPPRESS(_patient);
+ _patient setVariable [VAR_PAIN_SUPP, (_painSuppress + PAINKILLERS_PAIN_SUPPRESSION) min 1, true];
+ };
};
};
TRACE_1("Running treatmentMedicationLocal with Advanced configuration for",_patient);
diff --git a/addons/medical_treatment/functions/fnc_treatment.sqf b/addons/medical_treatment/functions/fnc_treatment.sqf
index b7ebbfd8b0..4222d69a4b 100644
--- a/addons/medical_treatment/functions/fnc_treatment.sqf
+++ b/addons/medical_treatment/functions/fnc_treatment.sqf
@@ -52,7 +52,7 @@ private _userAndItem = if (GET_NUMBER_ENTRY(_config >> "consumeItem") == 1) then
[objNull, ""]; // Treatment does not require items to be consumed
};
-_userAndItem params ["_itemUser", "_usedItem"];
+_userAndItem params ["_itemUser", "_usedItem", "_createLitter"];
private _isInZeus = !isNull findDisplay 312;
@@ -161,7 +161,7 @@ if (_callbackProgress isEqualTo {}) then {
[
_treatmentTime,
- [_medic, _patient, _bodyPart, _classname, _itemUser, _usedItem],
+ [_medic, _patient, _bodyPart, _classname, _itemUser, _usedItem, _createLitter],
FUNC(treatmentSuccess),
FUNC(treatmentFailure),
getText (_config >> "displayNameProgress"),
diff --git a/addons/medical_treatment/functions/fnc_treatmentSuccess.sqf b/addons/medical_treatment/functions/fnc_treatmentSuccess.sqf
index 96f0d11ead..a400fa98dc 100644
--- a/addons/medical_treatment/functions/fnc_treatmentSuccess.sqf
+++ b/addons/medical_treatment/functions/fnc_treatmentSuccess.sqf
@@ -11,6 +11,7 @@
* 3: Treatment
* 4: Item User
* 5: Used Item
+ * 6: Create Litter
*
* Return Value:
* None
@@ -19,7 +20,8 @@
*/
params ["_args"];
-_args params ["_medic", "_patient", "_bodyPart", "_classname", "_itemUser", "_usedItem"];
+_args params ["_medic", "_patient", "_bodyPart", "_classname", "_itemUser", "_usedItem", "_createLitter"];
+TRACE_7("",_medic,_patient,_bodyPart,_classname,_itemUser,_usedItem,_createLitter);
// Switch medic to end animation immediately
private _endInAnim = _medic getVariable QGVAR(endInAnim);
@@ -45,7 +47,7 @@ GET_FUNCTION(_callbackSuccess,configFile >> QGVAR(actions) >> _classname >> "cal
_args call _callbackSuccess;
// Call litter creation handler
-_args call FUNC(createLitter);
+if (_createLitter) then { _args call FUNC(createLitter); };
// Emit local event for medical API
["ace_treatmentSucceded", [_medic, _patient, _bodyPart, _classname, _itemUser, _usedItem]] call CBA_fnc_localEvent;
diff --git a/addons/medical_treatment/functions/fnc_useItem.sqf b/addons/medical_treatment/functions/fnc_useItem.sqf
index 9bba3d1c90..33ac9f98f4 100644
--- a/addons/medical_treatment/functions/fnc_useItem.sqf
+++ b/addons/medical_treatment/functions/fnc_useItem.sqf
@@ -10,7 +10,7 @@
* 2: Items
*
* Return Value:
- * User and Item
+ * User and Item and Litter Created
*
* Example:
* [player, cursorObject, ["bandage"]] call ace_medical_treatment_fnc_useItem
@@ -40,22 +40,24 @@ private _useOrder = [[_patient, _medic], [_medic, _patient], [_medic]] select GV
switch (true) do {
case (_x in _vehicleItems): {
_unitVehicle addItemCargoGlobal [_x, -1];
- [_unit, _x] breakOut "Main";
+ [_unit, _x, false] breakOut "Main";
};
case (_x in _vehicleMagazines): {
[_unitVehicle, _x] call EFUNC(common,adjustMagazineAmmo);
- [_unit, _x] breakOut "Main";
+ [_unit, _x, false] breakOut "Main";
};
case (_x in _unitItems): {
_unit removeItem _x;
- [_unit, _x] breakOut "Main";
+ [_unit, _x, true] breakOut "Main";
};
case (_x in _unitMagazines): {
+ private _magsStart = count magazines _unit;
[_unit, _x] call EFUNC(common,adjustMagazineAmmo);
- [_unit, _x] breakOut "Main";
+ private _magsEnd = count magazines _unit;
+ [_unit, _x, (_magsEnd < _magsStart)] breakOut "Main";
};
};
} forEach _items;
} forEach _useOrder;
-[objNull, ""]
+[objNull, "", false]
diff --git a/addons/medical_treatment/stringtable.xml b/addons/medical_treatment/stringtable.xml
index 4e186edc85..be421eff36 100644
--- a/addons/medical_treatment/stringtable.xml
+++ b/addons/medical_treatment/stringtable.xml
@@ -3574,7 +3574,7 @@
Receiving Saline IV [%1ml]
Erhalte Saline IV [%1ml]
Recibiendo Salina IV [%1ml]
- Принимается солевой раствор IV [%1 мл]
+ Принимается физраствор [%1 мл]
Otrzymywanie soli IV [%1ml]
Transfusion de sérum salé : [%1 ml]
Přijímání soli IV [%1ml]
@@ -3590,7 +3590,7 @@
Receiving Blood IV [%1ml]
Erhalte Blut IV [%1ml]
Recibiendo Sangre IV [%1ml]
- Принимается кровь IV [%1 мл]
+ Принимается кровь [%1 мл]
Otrzymywanie krwi IV [%1ml]
Transfusion de sang : [%1 ml]
Přijímání krve IV [%1ml]
@@ -3606,7 +3606,7 @@
Receiving Plasma IV [%1ml]
Erhalte Plasma IV [%1ml]
Recibiendo Plasma IV [%1ml]
- Принимается плазма IV [%1 мл]
+ Принимается плазма [%1 мл]
Otrzymywanie plazmy IV [%1ml]
Transfusion de plasma : [%1 ml]
Přijímání plazmy IV [%1ml]
diff --git a/addons/missileguidance/functions/fnc_seekerType_ARH.sqf b/addons/missileguidance/functions/fnc_seekerType_ARH.sqf
index 20571e3d65..54e487a9a0 100644
--- a/addons/missileguidance/functions/fnc_seekerType_ARH.sqf
+++ b/addons/missileguidance/functions/fnc_seekerType_ARH.sqf
@@ -72,7 +72,7 @@ if (_isActive || { CBA_missionTime >= _timeWhenActive }) then {
};
_nearestObjects = _nearestObjects select { !isNull _x };
// Select closest object to the expected position to be the current radar target
- if ((count _nearestObjects) <= 0) exitWith {
+ if (_nearestObjects isEqualTo []) exitWith {
_projectile setMissileTarget objNull;
_searchPos
};
@@ -117,4 +117,3 @@ if !(isNull _target) then {
_launchParams set [0, _target];
_expectedTargetPos
-
diff --git a/addons/missionmodules/functions/fnc_moduleAmbianceSound.sqf b/addons/missionmodules/functions/fnc_moduleAmbianceSound.sqf
index 63465a6588..88e2ba02d5 100644
--- a/addons/missionmodules/functions/fnc_moduleAmbianceSound.sqf
+++ b/addons/missionmodules/functions/fnc_moduleAmbianceSound.sqf
@@ -55,11 +55,9 @@ private _missionRoot = str missionConfigFile select [0, count str missionConfigF
ERROR_1("Ambient Sounds: Sound ""%1"" not found.",_x);
};
};
+} forEach _splittedList;
- false
-} count _splittedList;
-
-if (count _ambianceSounds == 0) exitWith {};
+if (_ambianceSounds isEqualTo []) exitWith {};
{
if ((_x find ".") == -1) then {
_ambianceSounds set [_forEachIndex, _x + ".wss"];
@@ -82,7 +80,7 @@ TRACE_1("",_ambianceSounds);
private _allUnits = if (isMultiplayer) then {playableUnits} else {[ACE_player]};
// Check if there are enough players to even start playing this sound.
- if (count _allUnits > 0) then {
+ if (_allUnits isNotEqualTo []) then {
// find the position from which we are going to play this sound from.
private _newPosASL = if (_followPlayers) then {
// Select a target unit at random.
diff --git a/addons/nametags/functions/fnc_onDraw3d.sqf b/addons/nametags/functions/fnc_onDraw3d.sqf
index 7e9d156014..f831a3209f 100644
--- a/addons/nametags/functions/fnc_onDraw3d.sqf
+++ b/addons/nametags/functions/fnc_onDraw3d.sqf
@@ -138,8 +138,7 @@ if (_enabledTagsNearby) then {
[ACE_player, _target, _alpha, _distance * 0.026, _drawName, _drawRank, _drawSoundwave] call FUNC(drawNameTagIcon);
};
};
- nil
- } count _targets;
+ } forEach _targets;
};
END_COUNTER(GVAR(onDraw3d));
diff --git a/addons/overheating/functions/fnc_loadCoolestSpareBarrel.sqf b/addons/overheating/functions/fnc_loadCoolestSpareBarrel.sqf
index 29b7191471..a5fb95cf31 100644
--- a/addons/overheating/functions/fnc_loadCoolestSpareBarrel.sqf
+++ b/addons/overheating/functions/fnc_loadCoolestSpareBarrel.sqf
@@ -31,7 +31,7 @@ if (_weaponBarrelClass == "") then {
// Find all spare barrel the player has
private _allBarrels = [_assistant, _weaponBarrelClass] call CBA_fnc_getMagazineIndex;
TRACE_1("_allBarrels",_allBarrels);
-if ((count _allBarrels) < 1) exitWith {};
+if (_allBarrels isEqualTo []) exitWith {};
// Determine which on is coolest
private _coolestTemp = 10000;
diff --git a/addons/overheating/functions/fnc_sendSpareBarrelsTemperaturesHint.sqf b/addons/overheating/functions/fnc_sendSpareBarrelsTemperaturesHint.sqf
index 9204b58124..5f75423f2e 100644
--- a/addons/overheating/functions/fnc_sendSpareBarrelsTemperaturesHint.sqf
+++ b/addons/overheating/functions/fnc_sendSpareBarrelsTemperaturesHint.sqf
@@ -32,7 +32,7 @@ if (_weaponBarrelClass == "") then {
};
private _allBarrels = [_unit, _weaponBarrelClass] call CBA_fnc_getMagazineIndex;
TRACE_1("_allBarrels",_allBarrels);
-if ((count _allBarrels) < 1) exitWith {};
+if (_allBarrels isEqualTo []) exitWith {};
// Determine the temp of each barrel
private _temps = [];
diff --git a/addons/rangecard/functions/fnc_updateRangeCard.sqf b/addons/rangecard/functions/fnc_updateRangeCard.sqf
index 999dfc5a2e..c2c8673844 100644
--- a/addons/rangecard/functions/fnc_updateRangeCard.sqf
+++ b/addons/rangecard/functions/fnc_updateRangeCard.sqf
@@ -100,7 +100,7 @@ private _barrelLength = _weaponConfig select 2;
private _muzzleVelocity = 0;
private _bc = 0;
-if (count (_ammoConfig select 6) > 0) then {
+if ((_ammoConfig select 6) isNotEqualTo []) then {
_bc = (_ammoConfig select 6) select 0;
};
private _transonicStabilityCoef = _ammoConfig select 4;
diff --git a/addons/rearm/functions/fnc_hasEnoughSupply.sqf b/addons/rearm/functions/fnc_hasEnoughSupply.sqf
index c7efb7eca6..8b606bdf6f 100644
--- a/addons/rearm/functions/fnc_hasEnoughSupply.sqf
+++ b/addons/rearm/functions/fnc_hasEnoughSupply.sqf
@@ -44,7 +44,6 @@ if (GVAR(supply) == 2) exitWith {
{
_x params ["_magazine", "_rounds"];
if ((_magazine isEqualTo _magazineClass) && (_rounds > 0)) exitWith {_magazinePresent = true; };
- false
- } count _magazineSupply;
+ } forEach _magazineSupply;
_magazinePresent
};
diff --git a/addons/rearm/functions/fnc_readSupplyCounter.sqf b/addons/rearm/functions/fnc_readSupplyCounter.sqf
index 7526fd013a..f298579705 100644
--- a/addons/rearm/functions/fnc_readSupplyCounter.sqf
+++ b/addons/rearm/functions/fnc_readSupplyCounter.sqf
@@ -58,8 +58,7 @@ if (GVAR(supply) == 1) then {
_numChars = _numChars max (count _line);
_text = format ["%1
%2", _text, _line];
_supply = _supply + 0.5;
- false
- } count _magazines;
+ } forEach _magazines;
};
if (_supply > 1.5) then {
[[LSTRING(Hint_RemainingAmmo), _text], _supply, _unit, (_numChars/2.9)] call EFUNC(common,displayTextStructured);
diff --git a/addons/rearm/functions/fnc_rearmEntireVehicleSuccess.sqf b/addons/rearm/functions/fnc_rearmEntireVehicleSuccess.sqf
index d014e9d58d..396b501dab 100644
--- a/addons/rearm/functions/fnc_rearmEntireVehicleSuccess.sqf
+++ b/addons/rearm/functions/fnc_rearmEntireVehicleSuccess.sqf
@@ -28,8 +28,7 @@ if (isServer) then {
} else {
[QGVAR(rearmEntireVehicleSuccessLocalEH), [_truck, _vehicle, _x], _turretOwnerID] call CBA_fnc_ownerEvent;
};
- false
- } count _turrets;
+ } forEach _turrets;
} else {
[QGVAR(rearmEntireVehicleSuccessEH), _this] call CBA_fnc_serverEvent;
};
diff --git a/addons/repair/functions/fnc_canRepair.sqf b/addons/repair/functions/fnc_canRepair.sqf
index 264baf9ef0..f1f4aa7b7c 100644
--- a/addons/repair/functions/fnc_canRepair.sqf
+++ b/addons/repair/functions/fnc_canRepair.sqf
@@ -38,7 +38,7 @@ private _engineerRequired = if (isNumber (_config >> "requiredEngineer")) then {
if !([_caller, _engineerRequired] call FUNC(isEngineer)) exitWith {false};
private _items = _config call FUNC(getRepairItems);
-if (count _items > 0 && {!([_caller, _items] call FUNC(hasItems))}) exitWith {false};
+if (_items isNotEqualTo [] && {!([_caller, _items] call FUNC(hasItems))}) exitWith {false};
private _return = true;
if (getText (_config >> "condition") != "") then {
diff --git a/addons/repair/functions/fnc_getHitPointString.sqf b/addons/repair/functions/fnc_getHitPointString.sqf
index 35270887ad..23a57f8895 100644
--- a/addons/repair/functions/fnc_getHitPointString.sqf
+++ b/addons/repair/functions/fnc_getHitPointString.sqf
@@ -20,17 +20,9 @@
*/
params ["_hitPoint", "_textLocalized", "_textDefault", ["_trackArray", []]];
+_trackArray params [["_trackNames", []], ["_trackStrings", []], ["_trackAmount", []]];
-private _track = (count _trackArray > 0);
-private _trackNames = [];
-private _trackStrings = [];
-private _trackAmount = [];
-
-if (_track) then {
- _trackNames = _trackArray select 0;
- _trackStrings = _trackArray select 1;
- _trackAmount = _trackArray select 2;
-};
+private _track = _trackArray isNotEqualTo [];
// Prepare first part of the string from stringtable
//IGNORE_STRING_WARNING(str_ace_repair_hit);
diff --git a/addons/repair/functions/fnc_moduleAddSpareParts.sqf b/addons/repair/functions/fnc_moduleAddSpareParts.sqf
index bccccdcc22..cb6da371d7 100644
--- a/addons/repair/functions/fnc_moduleAddSpareParts.sqf
+++ b/addons/repair/functions/fnc_moduleAddSpareParts.sqf
@@ -30,8 +30,7 @@ if (!isNull _logic) then {
// Add synchronized objects to list
{
_list pushBack _x;
- nil
- } count (synchronizedObjects _logic);
+ } forEach (synchronizedObjects _logic);
if (_list isEqualTo []) exitWith {};
@@ -40,6 +39,5 @@ if (!isNull _logic) then {
// Add spare parts
{
[_x, _amount, _part, true] call FUNC(addSpareParts);
- false
- } count _list;
+ } forEach _list;
};
diff --git a/addons/repair/functions/fnc_repair.sqf b/addons/repair/functions/fnc_repair.sqf
index 9e6a692fef..86ff191000 100644
--- a/addons/repair/functions/fnc_repair.sqf
+++ b/addons/repair/functions/fnc_repair.sqf
@@ -44,7 +44,7 @@ if ((isEngineOn _target) && {!GVAR(autoShutOffEngineWhenStartingRepair)}) exitWi
};
private _items = _config call FUNC(getRepairItems);
-if (count _items > 0 && {!([_caller, _items] call FUNC(hasItems))}) exitWith {false};
+if (_items isNotEqualTo [] && {!([_caller, _items] call FUNC(hasItems))}) exitWith {false};
private _return = true;
if (getText (_config >> "condition") != "") then {
diff --git a/addons/respawn/functions/fnc_moduleRallypoint.sqf b/addons/respawn/functions/fnc_moduleRallypoint.sqf
index 0af3357201..31ba68f1d6 100644
--- a/addons/respawn/functions/fnc_moduleRallypoint.sqf
+++ b/addons/respawn/functions/fnc_moduleRallypoint.sqf
@@ -23,7 +23,6 @@ if !(_activated) exitWith {};
{
_x setVariable ["ACE_canMoveRallypoint", true];
- false
-} count _units;
+} forEach _units;
INFO("Rallypoint Module Initialized.");
diff --git a/addons/safemode/functions/fnc_unlockSafety.sqf b/addons/safemode/functions/fnc_unlockSafety.sqf
index 8afc6802c1..10372f1a2e 100644
--- a/addons/safemode/functions/fnc_unlockSafety.sqf
+++ b/addons/safemode/functions/fnc_unlockSafety.sqf
@@ -56,8 +56,7 @@ if (inputAction "nextWeapon" > 0) then {
if (_x == "this") then {
_modes pushBack _weapon;
};
- nil
- } count getArray (configFile >> "CfgWeapons" >> _weapon >> "modes");
+ } forEach getArray (configFile >> "CfgWeapons" >> _weapon >> "modes");
// select last mode
private _mode = _modes select (count _modes - 1);
diff --git a/addons/sandbag/functions/fnc_pickup.sqf b/addons/sandbag/functions/fnc_pickup.sqf
index 7c21656ca0..2bcc418f4c 100644
--- a/addons/sandbag/functions/fnc_pickup.sqf
+++ b/addons/sandbag/functions/fnc_pickup.sqf
@@ -34,7 +34,7 @@ _unit setVariable [QGVAR(isUsingSandbag), true];
// Force physx update
{
_x setPosASL (getPosASL _x);
- } count (_unit nearObjects ["ACE_SandbagObject", 5]);
+ } forEach (_unit nearObjects ["ACE_SandbagObject", 5]);
[_unit, "ACE_Sandbag_empty"] call EFUNC(common,addToInventory);
}, [_unit, _sandbag], 1.5] call CBA_fnc_waitAndExecute;
diff --git a/addons/scopes/XEH_postInit.sqf b/addons/scopes/XEH_postInit.sqf
index 9c96281246..997fe8d6dd 100644
--- a/addons/scopes/XEH_postInit.sqf
+++ b/addons/scopes/XEH_postInit.sqf
@@ -9,6 +9,9 @@
if (!hasInterface) exitWith {};
+// Add keybinds
+#include "initKeybinds.inc.sqf"
+
GVAR(Optics) = ["", "", ""];
GVAR(Guns) = ["", "", ""];
GVAR(canAdjustElevation) = [false, false, false];
@@ -16,11 +19,13 @@ GVAR(canAdjustWindage) = [false, false, false];
GVAR(scopeAdjust) = [[[0,0],0,[0,0],0], [[0,0],0,[0,0],0], [[0,0],0,[0,0],0]];
["CBA_settingsInitialized", {
-
if (!GVAR(enabled)) exitWith {};
- if (GVAR(deduceBarometricPressureFromTerrainAltitude)) then {
- GVAR(zeroReferenceBarometricPressure) = 1013.25 * (1 - (0.0065 * EGVAR(common,mapAltitude)) / 288.15) ^ 5.255754495;
+ // Overwrite setting if automatic pressure deduction is wanted
+ if (isServer && GVAR(deduceBarometricPressureFromTerrainAltitude)) then {
+ private _referencePressure = 1013.25 * (1 - (0.0065 * EGVAR(common,mapAltitude)) / 288.15) ^ 5.255754495;
+
+ [QGVAR(zeroReferenceBarometricPressure), _referencePressure, 2, "server"] call CBA_settings_fnc_set;
};
// Check inventory when it changes
@@ -41,106 +46,7 @@ GVAR(scopeAdjust) = [[[0,0],0,[0,0],0], [[0,0],0,[0,0],0], [[0,0],0,[0,0],0]];
};
}] call CBA_fnc_addPlayerEventHandler;
- // Add keybinds
- ["ACE3 Scope Adjustment", QGVAR(AdjustUpMinor), localize LSTRING(AdjustUpMinor), {
- // Conditions: canInteract
- if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
- // Conditions: specific
- if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
-
- [ACE_player] call FUNC(inventoryCheck);
-
- // Statement
- [ACE_player, ELEVATION_UP, MINOR_INCREMENT] call FUNC(adjustScope);
- }, {false}, [201, [false, false, false]], true] call CBA_fnc_addKeybind;
-
- ["ACE3 Scope Adjustment", QGVAR(AdjustDownMinor), localize LSTRING(AdjustDownMinor), {
- // Conditions: canInteract
- if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
- // Conditions: specific
- if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
-
- [ACE_player] call FUNC(inventoryCheck);
-
- // Statement
- [ACE_player, ELEVATION_DOWN, MINOR_INCREMENT] call FUNC(adjustScope);
- }, {false}, [209, [false, false, false]], true] call CBA_fnc_addKeybind;
-
- ["ACE3 Scope Adjustment", QGVAR(AdjustLeftMinor), localize LSTRING(AdjustLeftMinor), {
- // Conditions: canInteract
- if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
- // Conditions: specific
- if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
-
- [ACE_player] call FUNC(inventoryCheck);
-
- // Statement
- [ACE_player, WINDAGE_LEFT, MINOR_INCREMENT] call FUNC(adjustScope);
- }, {false}, [209, [false, true, false]], true] call CBA_fnc_addKeybind;
-
- ["ACE3 Scope Adjustment", QGVAR(AdjustRightMinor), localize LSTRING(AdjustRightMinor), {
- // Conditions: canInteract
- if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
- // Conditions: specific
- if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
-
- [ACE_player] call FUNC(inventoryCheck);
-
- // Statement
- [ACE_player, WINDAGE_RIGHT, MINOR_INCREMENT] call FUNC(adjustScope);
- }, {false}, [201, [false, true, false]], true] call CBA_fnc_addKeybind;
-
- ["ACE3 Scope Adjustment", QGVAR(AdjustUpMajor), localize LSTRING(AdjustUpMajor), {
- // Conditions: canInteract
- if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
- // Conditions: specific
- if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
-
- [ACE_player] call FUNC(inventoryCheck);
-
- // Statement
- [ACE_player, ELEVATION_UP, MAJOR_INCREMENT] call FUNC(adjustScope);
- }, {false}, [201, [true, false, false]], true] call CBA_fnc_addKeybind;
-
- ["ACE3 Scope Adjustment", QGVAR(AdjustDownMajor), localize LSTRING(AdjustDownMajor), {
- // Conditions: canInteract
- if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
- // Conditions: specific
- if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
-
- [ACE_player] call FUNC(inventoryCheck);
-
- // Statement
- [ACE_player, ELEVATION_DOWN, MAJOR_INCREMENT] call FUNC(adjustScope);
- }, {false}, [209, [true, false, false]], true] call CBA_fnc_addKeybind;
-
- ["ACE3 Scope Adjustment", QGVAR(AdjustLeftMajor), localize LSTRING(AdjustLeftMajor), {
- // Conditions: canInteract
- if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
- // Conditions: specific
- if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
-
- [ACE_player] call FUNC(inventoryCheck);
-
- // Statement
- [ACE_player, WINDAGE_LEFT, MAJOR_INCREMENT] call FUNC(adjustScope);
- }, {false}, [209, [true, true, false]], true] call CBA_fnc_addKeybind;
-
- ["ACE3 Scope Adjustment", QGVAR(AdjustRightMajor), localize LSTRING(AdjustRightMajor), {
- // Conditions: canInteract
- if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
- // Conditions: specific
- if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
-
- [ACE_player] call FUNC(inventoryCheck);
-
- // Statement
- [ACE_player, WINDAGE_RIGHT, MAJOR_INCREMENT] call FUNC(adjustScope);
- }, {false}, [201, [true, true, false]], true] call CBA_fnc_addKeybind;
-
-
// Register fire event handler
["ace_firedPlayer", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
["ace_firedPlayerNonLocal", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
-
}] call CBA_fnc_addEventHandler;
diff --git a/addons/scopes/functions/fnc_adjustScope.sqf b/addons/scopes/functions/fnc_adjustScope.sqf
index bd2d2d1da6..0a9d7bd089 100644
--- a/addons/scopes/functions/fnc_adjustScope.sqf
+++ b/addons/scopes/functions/fnc_adjustScope.sqf
@@ -17,12 +17,13 @@
* Public: No
*/
+if (!GVAR(enabled)) exitWith {false};
+
params ["_unit", "_turretAndDirection", "_majorStep"];
TRACE_3("adjustScope",_unit,_turretAndDirection,_majorStep);
if (!(_unit isKindOf "Man")) exitWith {false};
if (currentMuzzle _unit != currentWeapon _unit) exitWith {false};
-if (!GVAR(enabled)) exitWith {false};
private _weaponIndex = [_unit, currentWeapon _unit] call EFUNC(common,getWeaponIndex);
if (_weaponIndex < 0) exitWith {false};
diff --git a/addons/scopes/initKeybinds.inc.sqf b/addons/scopes/initKeybinds.inc.sqf
new file mode 100644
index 0000000000..a147b1b215
--- /dev/null
+++ b/addons/scopes/initKeybinds.inc.sqf
@@ -0,0 +1,95 @@
+["ACE3 Scope Adjustment", QGVAR(AdjustUpMinor), LLSTRING(AdjustUpMinor), {
+ // Conditions: canInteract
+ if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
+ // Conditions: specific
+ if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
+
+ [ACE_player] call FUNC(inventoryCheck);
+
+ // Statement
+ [ACE_player, ELEVATION_UP, MINOR_INCREMENT] call FUNC(adjustScope);
+}, {false}, [201, [false, false, false]], true] call CBA_fnc_addKeybind;
+
+["ACE3 Scope Adjustment", QGVAR(AdjustDownMinor), LLSTRING(AdjustDownMinor), {
+ // Conditions: canInteract
+ if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
+ // Conditions: specific
+ if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
+
+ [ACE_player] call FUNC(inventoryCheck);
+
+ // Statement
+ [ACE_player, ELEVATION_DOWN, MINOR_INCREMENT] call FUNC(adjustScope);
+}, {false}, [209, [false, false, false]], true] call CBA_fnc_addKeybind;
+
+["ACE3 Scope Adjustment", QGVAR(AdjustLeftMinor), LLSTRING(AdjustLeftMinor), {
+ // Conditions: canInteract
+ if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
+ // Conditions: specific
+ if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
+
+ [ACE_player] call FUNC(inventoryCheck);
+
+ // Statement
+ [ACE_player, WINDAGE_LEFT, MINOR_INCREMENT] call FUNC(adjustScope);
+}, {false}, [209, [false, true, false]], true] call CBA_fnc_addKeybind;
+
+["ACE3 Scope Adjustment", QGVAR(AdjustRightMinor), LLSTRING(AdjustRightMinor), {
+ // Conditions: canInteract
+ if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
+ // Conditions: specific
+ if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
+
+ [ACE_player] call FUNC(inventoryCheck);
+
+ // Statement
+ [ACE_player, WINDAGE_RIGHT, MINOR_INCREMENT] call FUNC(adjustScope);
+}, {false}, [201, [false, true, false]], true] call CBA_fnc_addKeybind;
+
+["ACE3 Scope Adjustment", QGVAR(AdjustUpMajor), LLSTRING(AdjustUpMajor), {
+ // Conditions: canInteract
+ if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
+ // Conditions: specific
+ if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
+
+ [ACE_player] call FUNC(inventoryCheck);
+
+ // Statement
+ [ACE_player, ELEVATION_UP, MAJOR_INCREMENT] call FUNC(adjustScope);
+}, {false}, [201, [true, false, false]], true] call CBA_fnc_addKeybind;
+
+["ACE3 Scope Adjustment", QGVAR(AdjustDownMajor), LLSTRING(AdjustDownMajor), {
+ // Conditions: canInteract
+ if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
+ // Conditions: specific
+ if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
+
+ [ACE_player] call FUNC(inventoryCheck);
+
+ // Statement
+ [ACE_player, ELEVATION_DOWN, MAJOR_INCREMENT] call FUNC(adjustScope);
+}, {false}, [209, [true, false, false]], true] call CBA_fnc_addKeybind;
+
+["ACE3 Scope Adjustment", QGVAR(AdjustLeftMajor), LLSTRING(AdjustLeftMajor), {
+ // Conditions: canInteract
+ if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
+ // Conditions: specific
+ if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
+
+ [ACE_player] call FUNC(inventoryCheck);
+
+ // Statement
+ [ACE_player, WINDAGE_LEFT, MAJOR_INCREMENT] call FUNC(adjustScope);
+}, {false}, [209, [true, true, false]], true] call CBA_fnc_addKeybind;
+
+["ACE3 Scope Adjustment", QGVAR(AdjustRightMajor), LLSTRING(AdjustRightMajor), {
+ // Conditions: canInteract
+ if !([ACE_player, objNull, ["isNotInside", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false};
+ // Conditions: specific
+ if (!([ACE_player] call CBA_fnc_canUseWeapon)) exitWith {false};
+
+ [ACE_player] call FUNC(inventoryCheck);
+
+ // Statement
+ [ACE_player, WINDAGE_RIGHT, MAJOR_INCREMENT] call FUNC(adjustScope);
+}, {false}, [201, [true, true, false]], true] call CBA_fnc_addKeybind;
diff --git a/addons/scopes/initSettings.inc.sqf b/addons/scopes/initSettings.inc.sqf
index 917587be8e..40ed62cbcc 100644
--- a/addons/scopes/initSettings.inc.sqf
+++ b/addons/scopes/initSettings.inc.sqf
@@ -5,7 +5,9 @@ private _category = format ["ACE %1", localize LSTRING(DisplayName)];
[LSTRING(enabled_displayName), LSTRING(enabled_description)],
_category,
true,
- 1
+ 1,
+ {[QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged)},
+ true // Needs mission restart
] call CBA_fnc_addSetting;
[
@@ -69,7 +71,9 @@ private _category = format ["ACE %1", localize LSTRING(DisplayName)];
[LSTRING(deduceBarometricPressureFromTerrainAltitude_displayName), LSTRING(deduceBarometricPressureFromTerrainAltitude_description)],
_category,
false,
- 1
+ 1,
+ {[QGVAR(deduceBarometricPressureFromTerrainAltitude), _this] call EFUNC(common,cbaSettings_settingChanged)},
+ true // Needs mission restart
] call CBA_fnc_addSetting;
[
diff --git a/addons/slideshow/functions/fnc_addSlideActions.sqf b/addons/slideshow/functions/fnc_addSlideActions.sqf
index 8ec804d577..409c724943 100644
--- a/addons/slideshow/functions/fnc_addSlideActions.sqf
+++ b/addons/slideshow/functions/fnc_addSlideActions.sqf
@@ -34,7 +34,7 @@ private _actions = [];
(_this select 2) params ["_objects", "_image", "_currentSlideshow", "_selection"];
{
_x setObjectTextureGlobal [_selection, _image]
- } count _objects;
+ } forEach _objects;
[QGVAR(slideChanged), [_image, _currentSlideshow]] call CBA_fnc_localEvent;
},
{true},
diff --git a/addons/slideshow/functions/fnc_autoTransition.sqf b/addons/slideshow/functions/fnc_autoTransition.sqf
index 793b8baf1b..6a18a041c4 100644
--- a/addons/slideshow/functions/fnc_autoTransition.sqf
+++ b/addons/slideshow/functions/fnc_autoTransition.sqf
@@ -36,7 +36,7 @@ private _image = _images select _currentSlide;
// Set slide
{
_x setObjectTextureGlobal [_selection, _image];
-} count _objects;
+} forEach _objects;
[QGVAR(slideChanged), [_image, _currentSlideshow]] call CBA_fnc_localEvent;
diff --git a/addons/slideshow/functions/fnc_createSlideshow.sqf b/addons/slideshow/functions/fnc_createSlideshow.sqf
index 9021a92613..c24d302346 100644
--- a/addons/slideshow/functions/fnc_createSlideshow.sqf
+++ b/addons/slideshow/functions/fnc_createSlideshow.sqf
@@ -50,7 +50,7 @@ if (isServer) then {
// Default images on whiteboards (first image)
{
_x setObjectTextureGlobal [_selection, _images select 0];
- } count _objects;
+ } forEach _objects;
};
// Number of slideshows (multiple modules support)
@@ -89,8 +89,7 @@ if (_duration == 0) then {
2
] call EFUNC(interact_menu,createAction);
[_x, 0, ["ACE_MainActions"], _slidesAction] call EFUNC(interact_menu,addActionToObject);
- nil
- } count _controllers;
+ } forEach _controllers;
} else {
if !(isServer) exitWith {};
diff --git a/addons/slideshow/functions/fnc_moduleInit.sqf b/addons/slideshow/functions/fnc_moduleInit.sqf
index 896c64eb50..7e6a78dc95 100644
--- a/addons/slideshow/functions/fnc_moduleInit.sqf
+++ b/addons/slideshow/functions/fnc_moduleInit.sqf
@@ -37,8 +37,7 @@ private _selection = _logic getVariable ["Selection", 0];
// Objects synced to the module
{
_objects pushBack _x;
- nil
-} count (synchronizedObjects _logic);
+} forEach (synchronizedObjects _logic);
// Prepare with actions
[_objects, _controllers, _images, _names, _duration, _setName, _selection] call FUNC(createSlideshow);
diff --git a/addons/spottingscope/CfgVehicles.hpp b/addons/spottingscope/CfgVehicles.hpp
index 6be6d70d63..93fa00a7bc 100644
--- a/addons/spottingscope/CfgVehicles.hpp
+++ b/addons/spottingscope/CfgVehicles.hpp
@@ -48,7 +48,7 @@ class CfgVehicles {
selection = "";
displayName = CSTRING(PickUp);
distance = 5;
- condition = QUOTE((alive _target) && (count (crew _target) == 0));
+ condition = QUOTE((alive _target) && {(crew _target) isEqualTo []});
statement = QUOTE([ARR_2(_target,_player)] call FUNC(pickup));
showDisabled = 0;
exceptions[] = {};
diff --git a/addons/switchunits/functions/fnc_markAiOnMap.sqf b/addons/switchunits/functions/fnc_markAiOnMap.sqf
index 8c7dc4924c..203ba426ff 100644
--- a/addons/switchunits/functions/fnc_markAiOnMap.sqf
+++ b/addons/switchunits/functions/fnc_markAiOnMap.sqf
@@ -27,7 +27,7 @@ GVAR(AllMarkerNames) = [];
// delete markers
{
deleteMarkerLocal _x;
- } count GVAR(AllMarkerNames);
+ } forEach GVAR(AllMarkerNames);
// reset the array
GVAR(AllMarkerNames) = [];
@@ -58,8 +58,7 @@ GVAR(AllMarkerNames) = [];
};
GVAR(AllMarkerNames) pushBack _markerName;
- nil
};
- } count allUnits;
+ } forEach allUnits;
};
}, 1.5, [_sidesToShow]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/switchunits/functions/fnc_switchUnit.sqf b/addons/switchunits/functions/fnc_switchUnit.sqf
index 6fc8fa35c9..135088d243 100644
--- a/addons/switchunits/functions/fnc_switchUnit.sqf
+++ b/addons/switchunits/functions/fnc_switchUnit.sqf
@@ -27,7 +27,7 @@ if (GVAR(EnableSafeZone)) then {
private _allNearestPlayers = [position _unit, GVAR(SafeZoneRadius)] call FUNC(nearestPlayers);
private _nearestEnemyPlayers = _allNearestPlayers select {((side GVAR(OriginalGroup)) getFriend side _x < 0.6) && !(_x getVariable [QGVAR(IsPlayerControlled), false])};
- if (count _nearestEnemyPlayers > 0) exitWith {
+ if (_nearestEnemyPlayers isNotEqualTo []) exitWith {
_leave = true;
};
};
diff --git a/addons/tacticalladder/functions/fnc_positionTL.sqf b/addons/tacticalladder/functions/fnc_positionTL.sqf
index 1ea19e737b..6d6f78f1a3 100644
--- a/addons/tacticalladder/functions/fnc_positionTL.sqf
+++ b/addons/tacticalladder/functions/fnc_positionTL.sqf
@@ -26,7 +26,7 @@ params ["_unit", "_ladder"];
{
_ladder animate [_x, 0];
-} count __ANIMS;
+} forEach __ANIMS;
[_unit, "amovpercmstpslowwrfldnon_player_idlesteady03", 2] call EFUNC(common,doAnimation);
@@ -35,7 +35,7 @@ _ladder attachTo [_unit, [0, 0.75, 0], ""]; // Position ladder in front of playe
_ladder animate ["rotate", 0];
{
_ladder animate [_x, 1];
-} count ["extract_1", "extract_2", "extract_3"]; // Extract ladder at head height (extract_3)
+} forEach ["extract_1", "extract_2", "extract_3"]; // Extract ladder at head height (extract_3)
GVAR(ladder) = _ladder;
GVAR(cancelTime) = CBA_missionTime + 1; // Workaround to prevent accidental canceling
diff --git a/addons/tripod/functions/fnc_adjust.sqf b/addons/tripod/functions/fnc_adjust.sqf
index db31a0733f..b7cdc842e9 100644
--- a/addons/tripod/functions/fnc_adjust.sqf
+++ b/addons/tripod/functions/fnc_adjust.sqf
@@ -35,8 +35,7 @@ GVAR(adjustPFH) = [{
{
_tripod animate [_x, 1 - GVAR(height)];
- } count ["slide_down_tripod", "retract_leg_1", "retract_leg_2", "retract_leg_3"];
-
+ } forEach ["slide_down_tripod", "retract_leg_1", "retract_leg_2", "retract_leg_3"];
}, 0, [_unit, _tripod]] call CBA_fnc_addPerFrameHandler;
[_unit, "blockThrow", QUOTE(ADDON), true] call EFUNC(common,statusEffect_set);
diff --git a/addons/tripod/functions/fnc_place.sqf b/addons/tripod/functions/fnc_place.sqf
index ecefe12784..0109990ded 100644
--- a/addons/tripod/functions/fnc_place.sqf
+++ b/addons/tripod/functions/fnc_place.sqf
@@ -34,7 +34,7 @@ if (stance _unit == "STAND") then {
{
_tripod animate [_x, 0.5];
- } count ["slide_down_tripod", "retract_leg_1", "retract_leg_2", "retract_leg_3"];
+ } forEach ["slide_down_tripod", "retract_leg_1", "retract_leg_2", "retract_leg_3"];
[{
(_this select 0) params ["_tripod", "_direction", "_position"];
diff --git a/addons/vehicle_damage/functions/fnc_processHit.sqf b/addons/vehicle_damage/functions/fnc_processHit.sqf
index 17575e8f38..73e70bbf57 100644
--- a/addons/vehicle_damage/functions/fnc_processHit.sqf
+++ b/addons/vehicle_damage/functions/fnc_processHit.sqf
@@ -124,7 +124,7 @@ private _chanceOfDetonation = 0;
private _explosiveAmmoCount = 0;
private _nonExplosiveAmmoCount = 0;
-if (count (_currentVehicleAmmo select 0) isNotEqualTo 0) then {
+if ((_currentVehicleAmmo select 0) isNotEqualTo []) then {
private _magConfig = configFile >> "CfgMagazines";
private _ammoConfig = configFile >> "CfgAmmo";
private _countOfExplodableAmmo = 0;
diff --git a/addons/vehiclelock/functions/fnc_addKeyForVehicle.sqf b/addons/vehiclelock/functions/fnc_addKeyForVehicle.sqf
index d730589b36..6461e7fca2 100644
--- a/addons/vehiclelock/functions/fnc_addKeyForVehicle.sqf
+++ b/addons/vehiclelock/functions/fnc_addKeyForVehicle.sqf
@@ -30,7 +30,7 @@ if (_useCustom) then {
private _previousMags = magazinesDetail _unit;
_unit addMagazine ["ACE_key_customKeyMagazine", 1]; //addMagazine array has global effects
private _newMags = (magazinesDetail _unit) - _previousMags;
- if ((count _newMags) == 0) exitWith {ERROR("failed to add magazine (inventory full?)");};
+ if (_newMags isEqualTo []) exitWith {ERROR("failed to add magazine (inventory full?)");};
private _keyMagazine = _newMags select 0;
TRACE_2("setting up key on server",_veh,_keyMagazine);
//Have the server run add the key to the vehicle's key array:
diff --git a/addons/viewdistance/stringtable.xml b/addons/viewdistance/stringtable.xml
index 0d97fe1f96..4404d0efe8 100644
--- a/addons/viewdistance/stringtable.xml
+++ b/addons/viewdistance/stringtable.xml
@@ -128,6 +128,7 @@
0に設定すると、デフォルトのビデオ設定が使用されます
Значение 0 будет использовать настройки видео по умолчанию
Establecer a 0 utiliza las opciones de video por defecto
+ La valeur 0 permet d'utiliser les paramètres vidéo par défaut