diff --git a/addons/advanced_ballistics/CfgVehicles.hpp b/addons/advanced_ballistics/CfgVehicles.hpp
index 27ccb2377b..804a6e9236 100644
--- a/addons/advanced_ballistics/CfgVehicles.hpp
+++ b/addons/advanced_ballistics/CfgVehicles.hpp
@@ -3,7 +3,7 @@ class CfgVehicles {
class GVAR(ModuleSettings): ACE_Module {
scope = 2;
displayName = CSTRING(DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Wind_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Wind_ca.paa);
category = "ACE";
function = QUOTE(DFUNC(initModuleSettings));
functionPriority = 1;
diff --git a/addons/advanced_ballistics/XEH_postInit.sqf b/addons/advanced_ballistics/XEH_postInit.sqf
index 2a9f6c3eb6..7263970fb1 100644
--- a/addons/advanced_ballistics/XEH_postInit.sqf
+++ b/addons/advanced_ballistics/XEH_postInit.sqf
@@ -5,7 +5,7 @@
GVAR(currentbulletID) = -1;
GVAR(Protractor) = false;
-GVAR(ProtractorStart) = ACE_time;
+GVAR(ProtractorStart) = CBA_missionTime;
GVAR(allBullets) = [];
GVAR(currentGrid) = 0;
diff --git a/addons/advanced_ballistics/config.cpp b/addons/advanced_ballistics/config.cpp
index 3f974b18df..692a9391a0 100644
--- a/addons/advanced_ballistics/config.cpp
+++ b/addons/advanced_ballistics/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_ballistics", "ace_weather"};
- author[] = {"Ruthberg"};
- authorUrl = "https://github.com/ulteq";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/advanced_ballistics/functions/fnc_displayProtractor.sqf b/addons/advanced_ballistics/functions/fnc_displayProtractor.sqf
index 8ff21e60cc..62663c843b 100644
--- a/addons/advanced_ballistics/functions/fnc_displayProtractor.sqf
+++ b/addons/advanced_ballistics/functions/fnc_displayProtractor.sqf
@@ -43,13 +43,13 @@ GVAR(Protractor) = true;
__ctrl1 ctrlSetScale 1;
__ctrl1 ctrlCommit 0;
- __ctrl1 ctrlSetText QUOTE(PATHTOF(UI\protractor.paa));
+ __ctrl1 ctrlSetText QPATHTOF(UI\protractor.paa);
__ctrl1 ctrlSetTextColor [1, 1, 1, 1];
__ctrl2 ctrlSetScale 1;
__ctrl2 ctrlSetPosition [SafeZoneX + 0.001, SafeZoneY - 0.001 - 0.1074 * (-0.86 max ((ACE_player weaponDirection currentWeapon ACE_player) select 2) min 0.86), 0.2, 0.2 * 4/3];
__ctrl2 ctrlCommit 0;
- __ctrl2 ctrlSetText QUOTE(PATHTOF(UI\protractor_marker.paa));
+ __ctrl2 ctrlSetText QPATHTOF(UI\protractor_marker.paa);
__ctrl2 ctrlSetTextColor [1, 1, 1, 1];
}, 0.1, []] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/advanced_ballistics/functions/fnc_handleFirePFH.sqf b/addons/advanced_ballistics/functions/fnc_handleFirePFH.sqf
index fc8dc1b8a2..6bc6e234ae 100644
--- a/addons/advanced_ballistics/functions/fnc_handleFirePFH.sqf
+++ b/addons/advanced_ballistics/functions/fnc_handleFirePFH.sqf
@@ -12,7 +12,7 @@
*/
#include "script_component.hpp"
-private _aceTimeSecond = floor ACE_time;
+private _aceTimeSecond = floor CBA_missionTime;
{
private ["_bulletVelocity", "_bulletPosition", "_bulletSpeed"];
@@ -31,7 +31,7 @@ private _aceTimeSecond = floor ACE_time;
drop ["\A3\data_f\ParticleEffects\Universal\Refract","","Billboard",1,0.1,getPos _bullet,[0,0,0],0,1.275,1,0,[0.02*_caliber,0.01*_caliber],[[0,0,0,0.65],[0,0,0,0.2]],[1,0],0,0,"","",""];
};
- call compile ("ace_advanced_ballistics" callExtension format["simulate:%1:%2:%3:%4:%5:%6:%7", _index, _bulletVelocity, _bulletPosition, ACE_wind, ASLToATL(_bulletPosition) select 2, _aceTimeSecond, ACE_time - _aceTimeSecond]);
+ call compile ("ace_advanced_ballistics" callExtension format["simulate:%1:%2:%3:%4:%5:%6:%7", _index, _bulletVelocity, _bulletPosition, ACE_wind, ASLToATL(_bulletPosition) select 2, _aceTimeSecond, CBA_missionTime - _aceTimeSecond]);
};
nil
} count +GVAR(allBullets);
diff --git a/addons/advanced_ballistics/functions/fnc_handleFired.sqf b/addons/advanced_ballistics/functions/fnc_handleFired.sqf
index 7844e8a53a..7085224771 100644
--- a/addons/advanced_ballistics/functions/fnc_handleFired.sqf
+++ b/addons/advanced_ballistics/functions/fnc_handleFired.sqf
@@ -110,8 +110,8 @@ if (_caliber > 0 && _bulletLength > 0 && _bulletMass > 0 && _barrelTwist > 0) th
GVAR(currentbulletID) = (GVAR(currentbulletID) + 1) % 10000;
-_aceTimeSecond = floor ACE_time;
-"ace_advanced_ballistics" callExtension format["new:%1:%2:%3:%4:%5:%6:%7:%8:%9:%10:%11:%12:%13:%14:%15:%16:%17:%18", GVAR(currentbulletID), _airFriction, _ballisticCoefficients, _velocityBoundaries, _atmosphereModel, _dragModel, _stabilityFactor, _twistDirection, _muzzleVelocity, _transonicStabilityCoef, getPosASL _projectile, EGVAR(common,mapLatitude), EGVAR(weather,currentTemperature), EGVAR(common,mapAltitude), EGVAR(weather,currentHumidity), overcast, _aceTimeSecond, ACE_time - _aceTimeSecond];
+_aceTimeSecond = floor CBA_missionTime;
+"ace_advanced_ballistics" callExtension format["new:%1:%2:%3:%4:%5:%6:%7:%8:%9:%10:%11:%12:%13:%14:%15:%16:%17:%18", GVAR(currentbulletID), _airFriction, _ballisticCoefficients, _velocityBoundaries, _atmosphereModel, _dragModel, _stabilityFactor, _twistDirection, _muzzleVelocity, _transonicStabilityCoef, getPosASL _projectile, EGVAR(common,mapLatitude), EGVAR(weather,currentTemperature), EGVAR(common,mapAltitude), EGVAR(weather,currentHumidity), overcast, _aceTimeSecond, CBA_missionTime - _aceTimeSecond];
GVAR(allBullets) pushBack [_projectile, _caliber, _bulletTraceVisible, GVAR(currentbulletID)];
diff --git a/addons/advanced_ballistics/functions/fnc_initializeTerrainExtension.sqf b/addons/advanced_ballistics/functions/fnc_initializeTerrainExtension.sqf
index 25562a71d0..9fed872a6b 100644
--- a/addons/advanced_ballistics/functions/fnc_initializeTerrainExtension.sqf
+++ b/addons/advanced_ballistics/functions/fnc_initializeTerrainExtension.sqf
@@ -18,7 +18,7 @@ if (!GVAR(extensionAvailable)) exitWith {};
private ["_initStartTime", "_mapSize", "_mapGrids", "_gridCells", "_x", "_y", "_gridCenter", "_gridHeight", "_gridNumObjects", "_gridSurfaceIsWater"];
-_initStartTime = ACE_time;
+_initStartTime = CBA_missionTime;
_mapSize = getNumber (configFile >> "CfgWorlds" >> worldName >> "MapSize");
if (("ace_advanced_ballistics" callExtension format["init:%1:%2", worldName, _mapSize]) == "Terrain already initialized") exitWith {
@@ -38,7 +38,7 @@ GVAR(currentGrid) = 0;
if (GVAR(currentGrid) >= _gridCells) exitWith {
#ifdef DEBUG_MODE_FULL
- systemChat format["AdvancedBallistics: Finished terrain initialization in %1 seconds", ceil(ACE_time - _initStartTime)];
+ systemChat format["AdvancedBallistics: Finished terrain initialization in %1 seconds", ceil(CBA_missionTime - _initStartTime)];
#endif
[_idPFH] call CBA_fnc_removePerFrameHandler;
};
diff --git a/addons/ai/config.cpp b/addons/ai/config.cpp
index fdcb6afe9d..504c8b6e3c 100644
--- a/addons/ai/config.cpp
+++ b/addons/ai/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"KoffeinFlummi","commy2"};
- authorUrl = "https://github.com/KoffeinFlummi/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"KoffeinFlummi","commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/aircraft/RscInGameUI.hpp b/addons/aircraft/RscInGameUI.hpp
index 83d46b5a03..d3ef60c6b6 100644
--- a/addons/aircraft/RscInGameUI.hpp
+++ b/addons/aircraft/RscInGameUI.hpp
@@ -145,7 +145,7 @@ class RscInGameUI
sizeEx = "0.038*SafezoneH";
shadow = 0;
font = "EtelkaMonospacePro";
- text = PATHTOF(data\Helo_LaserON.paa);
+ text = QPATHTOF(data\Helo_LaserON.paa);
x = "20.45 * (0.01875 * SafezoneH)";
y = "14.1 * (0.025 * SafezoneH)";
w = "12.5 * (0.01875 * SafezoneH)";
@@ -335,7 +335,7 @@ class RscInGameUI
shadow = 0;
align = "right";
font = "EtelkaMonospacePro";
- text = PATHTOF(data\Helo_LaserON.paa);
+ text = QPATHTOF(data\Helo_LaserON.paa);
x = "20.45 * (0.01875 * SafezoneH)";
y = "14.1 * (0.025 * SafezoneH)";
w = "12.5 * (0.01875 * SafezoneH)";
diff --git a/addons/aircraft/config.cpp b/addons/aircraft/config.cpp
index 2ce2d0dc10..f989749383 100644
--- a/addons/aircraft/config.cpp
+++ b/addons/aircraft/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"KoffeinFlummi","Crusty","commy2","jaynus","Kimi"};
- authorUrl = "https://github.com/KoffeinFlummi/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"KoffeinFlummi","Crusty","commy2","jaynus","Kimi"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/aircraft/flightmodel_thunderbolt.hpp b/addons/aircraft/flightmodel_thunderbolt.hpp
index fa99f40424..2446e166bc 100644
--- a/addons/aircraft/flightmodel_thunderbolt.hpp
+++ b/addons/aircraft/flightmodel_thunderbolt.hpp
@@ -20,4 +20,3 @@ envelope[] = {0,0,0.75,2.4,3.6,3.8,3.7,3.2,2.2,1.7,0.9};
thrustCoef[] = {1,1.2,1.3,1.25,1.06,1.01,1,0.92,0.75,0.65,0.5,0.25,0};
acceleration = 265;
landingSpeed = 220;
-gunAimDown = 0.087266463;
diff --git a/addons/apl/config.cpp b/addons/apl/config.cpp
index 089f4bffe0..3a4743f1ac 100644
--- a/addons/apl/config.cpp
+++ b/addons/apl/config.cpp
@@ -6,8 +6,8 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_main"};
- author[] = {"Bohemia Interactive"};
- authorUrl = "http://ace3mod.com";
+ author = "Bohemia Interactive";
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/atragmx/CfgVehicles.hpp b/addons/atragmx/CfgVehicles.hpp
index cc4a7880fe..6e8a136a03 100644
--- a/addons/atragmx/CfgVehicles.hpp
+++ b/addons/atragmx/CfgVehicles.hpp
@@ -9,7 +9,7 @@ class CfgVehicles {
statement = QUOTE(call FUNC(create_dialog));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\ATRAG_Icon.paa);
+ icon = QPATHTOF(UI\ATRAG_Icon.paa);
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
};
};
diff --git a/addons/atragmx/CfgWeapons.hpp b/addons/atragmx/CfgWeapons.hpp
index 42d1e56ae2..af5e1a9955 100644
--- a/addons/atragmx/CfgWeapons.hpp
+++ b/addons/atragmx/CfgWeapons.hpp
@@ -8,8 +8,8 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(Name);
descriptionShort = CSTRING(Description);
- model = PATHTOF(data\tdsrecon.p3d);
- picture = PATHTOF(UI\ATRAG_Icon.paa);
+ model = QPATHTOF(data\tdsrecon.p3d);
+ picture = QPATHTOF(UI\ATRAG_Icon.paa);
icon = "iconObject_circle";
mapSize = 0.034;
diff --git a/addons/atragmx/config.cpp b/addons/atragmx/config.cpp
index 3abe32ba34..db1b85b761 100644
--- a/addons/atragmx/config.cpp
+++ b/addons/atragmx/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_ATragMX"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ACE_common", "ACE_weather"};
- author = "Ruthberg";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
@@ -14,4 +16,4 @@ class CfgPatches {
#include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp"
#include "CfgWeapons.hpp"
-#include "RscTitles.hpp"
\ No newline at end of file
+#include "RscTitles.hpp"
diff --git a/addons/atragmx/functions/fnc_create_dialog.sqf b/addons/atragmx/functions/fnc_create_dialog.sqf
index 791374c9d0..a9912ccd34 100644
--- a/addons/atragmx/functions/fnc_create_dialog.sqf
+++ b/addons/atragmx/functions/fnc_create_dialog.sqf
@@ -56,7 +56,7 @@ GVAR(DialogPFH) = [{
if (!GVAR(active)) exitWith {
[_this select 1] call CBA_fnc_removePerFrameHandler;
};
- __ctrlBackground ctrlSetText format [QUOTE(PATHTOF(UI\ATRAG_%1.paa)), ["N", "D"] select (call EFUNC(common,ambientBrightness))];
+ __ctrlBackground ctrlSetText format [QPATHTOF(UI\ATRAG_%1.paa), ["N", "D"] select (call EFUNC(common,ambientBrightness))];
}, 60, []] call CBA_fnc_addPerFrameHandler;
true
diff --git a/addons/atragmx/functions/fnc_target_speed_assist_timer.sqf b/addons/atragmx/functions/fnc_target_speed_assist_timer.sqf
index 14a0a276cc..692de386af 100644
--- a/addons/atragmx/functions/fnc_target_speed_assist_timer.sqf
+++ b/addons/atragmx/functions/fnc_target_speed_assist_timer.sqf
@@ -30,7 +30,7 @@ if !(ctrlVisible 9000) then {
if (!(GVAR(speedAssistTimer))) exitWith {
GVAR(speedAssistTimer) = true;
- ctrlSetText [8006, Str(Round((ACE_time - _startTime) * 10) / 10)];
+ ctrlSetText [8006, Str(Round((CBA_missionTime - _startTime) * 10) / 10)];
[] call FUNC(calculate_target_speed_assist);
@@ -40,7 +40,7 @@ if !(ctrlVisible 9000) then {
[_this select 1] call CBA_fnc_removePerFrameHandler;
};
- ctrlSetText [9001, Str(Round((ACE_time - _startTime) * 10) / 10)];
+ ctrlSetText [9001, Str(Round((CBA_missionTime - _startTime) * 10) / 10)];
- }, 0.1, [ACE_time]] call CBA_fnc_addPerFrameHandler;
+ }, 0.1, [CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
};
diff --git a/addons/atragmx/initKeybinds.sqf b/addons/atragmx/initKeybinds.sqf
index 51d2338292..94704e8132 100644
--- a/addons/atragmx/initKeybinds.sqf
+++ b/addons/atragmx/initKeybinds.sqf
@@ -33,4 +33,4 @@ _closeCode = {
closeDialog 0;
};
};
-[(localize LSTRING(Name)), QUOTE(PATHTOF(UI\ATRAG_Icon.paa)), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
+[(localize LSTRING(Name)), QPATHTOF(UI\ATRAG_Icon.paa), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
diff --git a/addons/attach/CfgMagazines.hpp b/addons/attach/CfgMagazines.hpp
index f85cac82b4..7ba8cebbc5 100644
--- a/addons/attach/CfgMagazines.hpp
+++ b/addons/attach/CfgMagazines.hpp
@@ -3,17 +3,17 @@ class CfgMagazines {
class CA_Magazine;
class B_IR_Grenade: CA_Magazine {
ACE_Attachable = "B_IRStrobe";
- model = QUOTE(PATHTOF(data\ace_IRStrobe.p3d));
+ model = QPATHTOF(data\ace_IRStrobe.p3d);
};
class O_IR_Grenade: B_IR_Grenade {
ACE_Attachable = "O_IRStrobe";
- model = QUOTE(PATHTOF(data\ace_IRStrobe.p3d));
+ model = QPATHTOF(data\ace_IRStrobe.p3d);
};
class I_IR_Grenade: B_IR_Grenade {
ACE_Attachable = "I_IRStrobe";
- model = QUOTE(PATHTOF(data\ace_IRStrobe.p3d));
+ model = QPATHTOF(data\ace_IRStrobe.p3d);
};
class SmokeShell;
diff --git a/addons/attach/CfgVehicles.hpp b/addons/attach/CfgVehicles.hpp
index e462c0cefa..1e0c0f3e71 100644
--- a/addons/attach/CfgVehicles.hpp
+++ b/addons/attach/CfgVehicles.hpp
@@ -9,7 +9,7 @@
exceptions[] = {}; \
showDisabled = 0; \
priority = 0; \
- icon = PATHTOF(UI\attach_ca.paa); \
+ icon = QPATHTOF(UI\attach_ca.paa); \
distance = 4.5; \
}; \
class GVAR(DetachVehicle) { \
@@ -19,7 +19,7 @@
exceptions[] = {}; \
showDisabled = 0; \
priority = 0.1; \
- icon = PATHTOF(UI\detach_ca.paa); \
+ icon = QPATHTOF(UI\detach_ca.paa); \
distance = 4.5; \
}; \
}; \
@@ -60,7 +60,7 @@ class CfgVehicles {
exceptions[] = {"isNotDragging"};
showDisabled = 0;
priority = 5;
- icon = PATHTOF(UI\attach_ca.paa);
+ icon = QPATHTOF(UI\attach_ca.paa);
};
class GVAR(Detach) {
displayName = CSTRING(Detach);
@@ -69,7 +69,7 @@ class CfgVehicles {
exceptions[] = {"isNotDragging"};
showDisabled = 0;
priority = 5;
- icon = PATHTOF(UI\detach_ca.paa);
+ icon = QPATHTOF(UI\detach_ca.paa);
};
};
};
diff --git a/addons/attach/CfgWeapons.hpp b/addons/attach/CfgWeapons.hpp
index dfea64678d..cc50b3be5e 100644
--- a/addons/attach/CfgWeapons.hpp
+++ b/addons/attach/CfgWeapons.hpp
@@ -8,8 +8,8 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(IrStrobe_Name);
descriptionShort = CSTRING(IrStrobe_Description);
- model = QUOTE(PATHTOF(data\ace_IRStrobe.p3d));
- picture = PATHTOF(UI\irstrobe_item.paa);
+ model = QPATHTOF(data\ace_IRStrobe.p3d);
+ picture = QPATHTOF(UI\irstrobe_item.paa);
class ItemInfo: InventoryItem_Base_F {
mass = 1;
diff --git a/addons/attach/config.cpp b/addons/attach/config.cpp
index 0ecc37788a..4c06adc3eb 100644
--- a/addons/attach/config.cpp
+++ b/addons/attach/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_IR_Strobe_Item"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"KoffeinFlummi","eRazeri","esteldunedain"};
- authorUrl = "https://github.com/KoffeinFlummi/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"KoffeinFlummi","eRazeri","esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/attach/functions/fnc_attach.sqf b/addons/attach/functions/fnc_attach.sqf
index 305c3c0960..42bfe44dbc 100644
--- a/addons/attach/functions/fnc_attach.sqf
+++ b/addons/attach/functions/fnc_attach.sqf
@@ -51,7 +51,7 @@ if (_unit == _attachToVehicle) then { //Self Attachment
[_unit, "forceWalk", "ACE_Attach", true] call EFUNC(common,statusEffect_set);
- [{[localize LSTRING(PlaceAction), ""] call EFUNC(interaction,showMouseHint)}, []] call EFUNC(common,execNextFrame);
+ [{[localize LSTRING(PlaceAction), ""] call EFUNC(interaction,showMouseHint)}, []] call CBA_fnc_execNextFrame;
_unit setVariable [QGVAR(placeActionEH), [_unit, "DefaultAction", {true}, {GVAR(placeAction) = PLACE_APPROVE;}] call EFUNC(common,AddActionEventHandler)];
_actionID = _unit addAction [format ["%1", localize LSTRING(CancelAction)], {GVAR(placeAction) = PLACE_CANCEL}];
diff --git a/addons/attach/functions/fnc_detach.sqf b/addons/attach/functions/fnc_detach.sqf
index 05c625b374..0cf5c78082 100644
--- a/addons/attach/functions/fnc_detach.sqf
+++ b/addons/attach/functions/fnc_detach.sqf
@@ -57,7 +57,7 @@ if (toLower _itemName in ["b_ir_grenade", "o_ir_grenade", "i_ir_grenade"]) then
detach _attachedObject;
_attachedObject setPos ((getPos _unit) vectorAdd [0, 0, -1000]);
// Delete attached item after 0.5 seconds
- [{deleteVehicle (_this select 0)}, [_attachedObject], 2] call EFUNC(common,waitAndExecute);
+ [{deleteVehicle (_this select 0)}, [_attachedObject], 2] call CBA_fnc_waitAndExecute;
} else {
// Delete attached item
deleteVehicle _attachedObject;
diff --git a/addons/attach/functions/fnc_getChildrenAttachActions.sqf b/addons/attach/functions/fnc_getChildrenAttachActions.sqf
index aeb75c00d4..9f811197e0 100644
--- a/addons/attach/functions/fnc_getChildrenAttachActions.sqf
+++ b/addons/attach/functions/fnc_getChildrenAttachActions.sqf
@@ -31,7 +31,7 @@ _actions = [];
if (getText (_item >> "ACE_Attachable") != "") then {
_displayName = getText(_item >> "displayName");
_picture = getText(_item >> "picture");
- _action = [_x, _displayName, _picture, {[{_this call FUNC(attach)}, _this] call EFUNC(common,execNextFrame)}, {_this call FUNC(canAttach)}, {}, [_x]] call EFUNC(interact_menu,createAction);
+ _action = [_x, _displayName, _picture, {[{_this call FUNC(attach)}, _this] call CBA_fnc_execNextFrame}, {_this call FUNC(canAttach)}, {}, [_x]] call EFUNC(interact_menu,createAction);
_actions pushBack [_action, [], _target];
};
};
@@ -44,7 +44,7 @@ _actions = [];
if (getText (_item >> "ACE_Attachable") != "") then {
_displayName = getText(_item >> "displayName");
_picture = getText(_item >> "picture");
- _action = [_x, _displayName, _picture, {[{_this call FUNC(attach)}, _this] call EFUNC(common,execNextFrame)}, {_this call FUNC(canAttach)}, {}, [_x]] call EFUNC(interact_menu,createAction);
+ _action = [_x, _displayName, _picture, {[{_this call FUNC(attach)}, _this] call CBA_fnc_execNextFrame}, {_this call FUNC(canAttach)}, {}, [_x]] call EFUNC(interact_menu,createAction);
_actions pushBack [_action, [], _target];
};
};
diff --git a/addons/attach/functions/fnc_handleGetIn.sqf b/addons/attach/functions/fnc_handleGetIn.sqf
index d9f469eee2..dd173c4125 100644
--- a/addons/attach/functions/fnc_handleGetIn.sqf
+++ b/addons/attach/functions/fnc_handleGetIn.sqf
@@ -36,7 +36,7 @@ if (!isNull _xObject) then {
params ["_detachedLight"];
TRACE_1("delayed delete",_detachedLight);
deleteVehicle _detachedLight;
- }, [_xObject], 2] call EFUNC(common,waitAndExecute);
+ }, [_xObject], 2] call CBA_fnc_waitAndExecute;
(_attachedList select 0) set [0, objNull];
};
diff --git a/addons/attach/functions/fnc_handleKilled.sqf b/addons/attach/functions/fnc_handleKilled.sqf
index 06c5473c88..69ab31122b 100644
--- a/addons/attach/functions/fnc_handleKilled.sqf
+++ b/addons/attach/functions/fnc_handleKilled.sqf
@@ -32,7 +32,7 @@ if ((count _attachedList) == 0) exitWith {};
//If it's a vehicle, also delete the attached
if (!(_deadUnit isKindOf "CAManBase")) then {
_xObject setPos ((getPos _deadUnit) vectorAdd [0, 0, -1000]);
- [{deleteVehicle (_this select 0)}, [_xObject], 2] call EFUNC(common,waitAndExecute);
+ [{deleteVehicle (_this select 0)}, [_xObject], 2] call CBA_fnc_waitAndExecute;
};
} forEach _attachedList;
diff --git a/addons/backpacks/config.cpp b/addons/backpacks/config.cpp
index ddc7639921..278e3ac452 100644
--- a/addons/backpacks/config.cpp
+++ b/addons/backpacks/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"bux","commy2"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"bux","commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/ballistics/config.cpp b/addons/ballistics/config.cpp
index 768ba63e02..59c29f0a7f 100644
--- a/addons/ballistics/config.cpp
+++ b/addons/ballistics/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2","Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2","Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/ballistics/scripts/initTargetWall.sqf b/addons/ballistics/scripts/initTargetWall.sqf
index d9b16eec10..0ce3950de1 100644
--- a/addons/ballistics/scripts/initTargetWall.sqf
+++ b/addons/ballistics/scripts/initTargetWall.sqf
@@ -11,5 +11,5 @@ if (local _wall) then {
_paper attachTo [_wall, [0,-0.02,0.6]];
_paper setDir getDir _wall;
- _paper setObjectTextureGlobal [0, QUOTE(PATHTOF(textures\target_ca.paa))];
+ _paper setObjectTextureGlobal [0, QPATHTOF(textures\target_ca.paa)];
};
diff --git a/addons/captives/CfgVehicles.hpp b/addons/captives/CfgVehicles.hpp
index a8215c0cdc..2afa1cfea4 100644
--- a/addons/captives/CfgVehicles.hpp
+++ b/addons/captives/CfgVehicles.hpp
@@ -10,7 +10,7 @@ class CfgVehicles {
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canApplyHandcuffs));
statement = QUOTE([ARR_2(_player, _target)] call FUNC(doApplyHandcuffs));
exceptions[] = {};
- icon = QUOTE(PATHTOF(UI\handcuff_ca.paa));
+ icon = QPATHTOF(UI\handcuff_ca.paa);
};
class ACE_MainActions {
@@ -21,7 +21,7 @@ class CfgVehicles {
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canRemoveHandcuffs));
statement = QUOTE([ARR_2(_player, _target)] call FUNC(doRemoveHandcuffs));
exceptions[] = {};
- icon = QUOTE(PATHTOF(UI\handcuff_ca.paa));
+ icon = QPATHTOF(UI\handcuff_ca.paa);
};
class ACE_EscortCaptive {
displayName = CSTRING(EscortCaptive);
@@ -30,7 +30,7 @@ class CfgVehicles {
statement = QUOTE([ARR_3(_player, _target, true)] call FUNC(doEscortCaptive));
exceptions[] = {};
showDisabled = 0;
- icon = QUOTE(PATHTOF(UI\captive_ca.paa));
+ icon = QPATHTOF(UI\captive_ca.paa);
priority = 2.3;
};
class ACE_StopEscorting {
@@ -40,7 +40,7 @@ class CfgVehicles {
statement = QUOTE([ARR_3(_player,_target, false)] call FUNC(doEscortCaptive));
exceptions[] = {"isNotEscorting"};
showDisabled = 0;
- icon = QUOTE(PATHTOF(UI\captive_ca.paa));
+ icon = QPATHTOF(UI\captive_ca.paa);
priority = 2.3;
};
class ACE_LoadCaptive {
@@ -50,7 +50,7 @@ class CfgVehicles {
statement = QUOTE([ARR_3(_player, _target, objNull)] call FUNC(doLoadCaptive));
exceptions[] = {"isNotEscorting"};
showDisabled = 0;
- icon = QUOTE(PATHTOF(UI\captive_ca.paa));
+ icon = QPATHTOF(UI\captive_ca.paa);
priority = 2.2;
};
class GVAR(UnloadCaptive) {
@@ -79,7 +79,7 @@ class CfgVehicles {
exceptions[] = {};
showDisabled = 0;
priority = 0;
- icon = QUOTE(PATHTOF(UI\Surrender_ca.paa));
+ icon = QPATHTOF(UI\Surrender_ca.paa);
};
class ACE_StopSurrenderingSelf {
displayName = CSTRING(StopSurrendering);
@@ -88,7 +88,7 @@ class CfgVehicles {
exceptions[] = {"isNotSurrendering"};
showDisabled = 0;
priority = 0;
- icon = QUOTE(PATHTOF(UI\Surrender_ca.paa));
+ icon = QPATHTOF(UI\Surrender_ca.paa);
};
};
};
@@ -154,7 +154,7 @@ class CfgVehicles {
scope = 2; //show in editor
isGlobal = 0; //run on server
isTriggerActivated = 1; //Wait for triggers
- icon = QUOTE(PATHTOF(UI\Icon_Module_Make_Unit_Surrender_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Make_Unit_Surrender_ca.paa);
functionPriority = 0;
class Arguments {};
class ModuleDescription: ModuleDescription {
@@ -170,7 +170,7 @@ class CfgVehicles {
scope = 2; //show in editor
isGlobal = 0; //run on server
isTriggerActivated = 1; //Wait for triggers
- icon = QUOTE(PATHTOF(UI\Icon_Module_Make_Unit_Handcuffed_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Make_Unit_Handcuffed_ca.paa);
functionPriority = 0;
class Arguments {};
class ModuleDescription: ModuleDescription {
@@ -186,7 +186,7 @@ class CfgVehicles {
displayName = CSTRING(ModuleSettings_DisplayName);
function = QFUNC(moduleSettings);
scope = 2;
- icon = QUOTE(PATHTOF(UI\Icon_Module_settings_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_settings_ca.paa);
isGlobal = 1;
isSingular = 1;
class Arguments {
diff --git a/addons/captives/CfgWeapons.hpp b/addons/captives/CfgWeapons.hpp
index 7092962519..1b65a0a4bf 100644
--- a/addons/captives/CfgWeapons.hpp
+++ b/addons/captives/CfgWeapons.hpp
@@ -5,8 +5,8 @@ class CfgWeapons {
class ACE_CableTie: ACE_ItemCore {
displayName = CSTRING(CableTie);
descriptionShort = CSTRING(CableTieDescription);
- model = QUOTE(PATHTOF(models\ace_cabletie.p3d));
- picture = QUOTE(PATHTOF(UI\ace_cabletie_ca.paa));
+ model = QPATHTOF(models\ace_cabletie.p3d);
+ picture = QPATHTOF(UI\ace_cabletie_ca.paa);
scope = 2;
class ItemInfo: InventoryItem_Base_F {
mass = 1;
diff --git a/addons/captives/XEH_postInit.sqf b/addons/captives/XEH_postInit.sqf
index 5aada0950f..567a107697 100644
--- a/addons/captives/XEH_postInit.sqf
+++ b/addons/captives/XEH_postInit.sqf
@@ -4,7 +4,7 @@
// Hold on a little bit longer to ensure anims will work
[{
GVAR(captivityEnabled) = true;
- }, [], 0.05] call EFUNC(common,waitAndExecute);
+ }, [], 0.05] call CBA_fnc_waitAndExecute;
}] call EFUNC(common,addEventHandler);
//Handles when someone starts escorting and then disconnects, leaving the captive attached
diff --git a/addons/captives/config.cpp b/addons/captives/config.cpp
index c87408b341..a73b604fb2 100644
--- a/addons/captives/config.cpp
+++ b/addons/captives/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_CableTie"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ACE_Interaction"};
- author[] = {"commy2", "KoffeinFlummi"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2", "KoffeinFlummi"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/captives/functions/fnc_moduleHandcuffed.sqf b/addons/captives/functions/fnc_moduleHandcuffed.sqf
index dcb59ff2a1..9d3079262a 100644
--- a/addons/captives/functions/fnc_moduleHandcuffed.sqf
+++ b/addons/captives/functions/fnc_moduleHandcuffed.sqf
@@ -32,7 +32,7 @@ if (!isServer) exitWith {};
TRACE_2("event",_x,local _x);
["SetHandcuffed", [_x], [_x, true]] call EFUNC(common,targetEvent);
} forEach _units;
-}, [_units], 0.05] call EFUNC(common,waitAndExecute);
+}, [_units], 0.05] call CBA_fnc_waitAndExecute;
if (!isNull _logic) then {
deleteVehicle _logic;
diff --git a/addons/captives/functions/fnc_moduleSurrender.sqf b/addons/captives/functions/fnc_moduleSurrender.sqf
index 29659b351e..a15d2e4165 100644
--- a/addons/captives/functions/fnc_moduleSurrender.sqf
+++ b/addons/captives/functions/fnc_moduleSurrender.sqf
@@ -32,7 +32,7 @@ if (!isServer) exitWith {};
TRACE_2("event",_x,local _x);
["SetSurrendered", [_x], [_x, true]] call EFUNC(common,targetEvent);
} forEach _units;
-}, [_units], 0.05] call EFUNC(common,waitAndExecute);
+}, [_units], 0.05] call CBA_fnc_waitAndExecute;
if (!isNull _logic) then {
deleteVehicle _logic;
diff --git a/addons/captives/functions/fnc_setHandcuffed.sqf b/addons/captives/functions/fnc_setHandcuffed.sqf
index d4f84730e6..58291d0689 100644
--- a/addons/captives/functions/fnc_setHandcuffed.sqf
+++ b/addons/captives/functions/fnc_setHandcuffed.sqf
@@ -27,7 +27,7 @@ if !(missionNamespace getVariable [QGVAR(captivityEnabled), false]) exitWith {
// It's to soon to call this function, delay it
if (EGVAR(common,settingsInitFinished)) then {
// Settings are already initialized, but the small wait isn't over
- [DFUNC(setHandCuffed), _this, 0.05] call EFUNC(common,waitAndExecute);
+ [DFUNC(setHandCuffed), _this, 0.05] call CBA_fnc_waitAndExecute;
} else {
// Settings are not initialized yet
[DFUNC(setHandCuffed), _this] call EFUNC(common,runAfterSettingsInit);
@@ -98,7 +98,7 @@ if (_state) then {
TRACE_2("Adding animChangedEH",_unit,_animChangedEHID);
_unit setVariable [QGVAR(handcuffAnimEHID), _animChangedEHID];
- }, [_unit], 0.01] call EFUNC(common,waitAndExecute);
+ }, [_unit], 0.01] call CBA_fnc_waitAndExecute;
} else {
_unit setVariable [QGVAR(isHandcuffed), false, true];
[_unit, "setCaptive", QGVAR(Handcuffed), false] call EFUNC(common,statusEffect_set);
diff --git a/addons/captives/functions/fnc_setSurrendered.sqf b/addons/captives/functions/fnc_setSurrendered.sqf
index ffc3c35081..6fc4c7b9ab 100644
--- a/addons/captives/functions/fnc_setSurrendered.sqf
+++ b/addons/captives/functions/fnc_setSurrendered.sqf
@@ -27,7 +27,7 @@ if !(missionNamespace getVariable [QGVAR(captivityEnabled), false]) exitWith {
// It's to soon to call this function, delay it
if (EGVAR(common,settingsInitFinished)) then {
// Settings are already initialized, but the small wait isn't over
- [DFUNC(setSurrendered), _this, 0.05] call EFUNC(common,waitAndExecute);
+ [DFUNC(setSurrendered), _this, 0.05] call CBA_fnc_waitAndExecute;
} else {
// Settings are not initialized yet
[DFUNC(setSurrendered), _this] call EFUNC(common,runAfterSettingsInit);
@@ -73,7 +73,7 @@ if (_state) then {
}];
_unit setVariable [QGVAR(surrenderAnimEHID), _animChangedEHID];
};
- }, [_unit], 0.01] call EFUNC(common,waitAndExecute);
+ }, [_unit], 0.01] call CBA_fnc_waitAndExecute;
} else {
_unit setVariable [QGVAR(isSurrendering), false, true];
[_unit, "setCaptive", QGVAR(Surrendered), false] call EFUNC(common,statusEffect_set);
@@ -103,7 +103,7 @@ if (_state) then {
params ["_args", "_pfID"];
_args params ["_unit", "_maxTime"];
//If waited long enough or they re-surrendered or they are unconscious, exit loop
- if ((ACE_time > _maxTime) || {_unit getVariable [QGVAR(isSurrendering), false]} || {_unit getVariable ["ACE_isUnconscious", false]}) exitWith {
+ if ((CBA_missionTime > _maxTime) || {_unit getVariable [QGVAR(isSurrendering), false]} || {_unit getVariable ["ACE_isUnconscious", false]}) exitWith {
[_pfID] call CBA_fnc_removePerFrameHandler;
};
//Only break animation if they are actualy the "hands up" animation (because we are using switchmove there won't be an transition)
@@ -112,7 +112,7 @@ if (_state) then {
//Break out of hands up animation loop
[_unit, "ACE_AmovPercMstpSsurWnonDnon_AmovPercMstpSnonWnonDnon", 2] call EFUNC(common,doAnimation);
};
- }, 0, [_unit, (ACE_time + 20)]] call CBA_fnc_addPerFrameHandler;
+ }, 0, [_unit, (CBA_missionTime + 20)]] call CBA_fnc_addPerFrameHandler;
};
};
diff --git a/addons/cargo/CfgVehicles.hpp b/addons/cargo/CfgVehicles.hpp
index 3b2239019d..43412b7b72 100644
--- a/addons/cargo/CfgVehicles.hpp
+++ b/addons/cargo/CfgVehicles.hpp
@@ -10,7 +10,7 @@ class CfgVehicles {
class ACE_moduleCargoSettings: ACE_Module {
scope = 2;
displayName = CSTRING(SettingsModule_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Cargo_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Cargo_ca.paa);
category = "ACE_Logistics";
function = QFUNC(moduleSettings);
functionPriority = 1;
@@ -36,7 +36,7 @@ class CfgVehicles {
class GVAR(makeLoadable): ACE_Module {
scope = 2;
displayName = CSTRING(makeLoadable_displayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_makeLoadable_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_makeLoadable_ca.paa);
category = "ACE_Logistics";
function = QFUNC(moduleMakeLoadable);
isGlobal = 1;
@@ -314,15 +314,16 @@ class CfgVehicles {
GVAR(space) = 20;
GVAR(hasCargo) = 1;
};
- class Land_Pod_Heli_Transport_04_medevac_F: Pod_Heli_Transport_04_base_F {
- GVAR(space) = 8;
- GVAR(hasCargo) = 1;
- };
class Land_Pod_Heli_Transport_04_repair_F: Pod_Heli_Transport_04_base_F {
GVAR(space) = 12;
GVAR(hasCargo) = 1;
};
-
+ class Pod_Heli_Transport_04_crewed_base_F;
+ class Land_Pod_Heli_Transport_04_medevac_F: Pod_Heli_Transport_04_crewed_base_F {
+ GVAR(space) = 8;
+ GVAR(hasCargo) = 1;
+ };
+
class StaticMortar;
class Mortar_01_base_F: StaticMortar {
GVAR(size) = 2; // 1 = small, 2 = large
diff --git a/addons/cargo/config.cpp b/addons/cargo/config.cpp
index 1aefa49616..860eff0d99 100644
--- a/addons/cargo/config.cpp
+++ b/addons/cargo/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"commy2", "Glowbal"};
- authorUrl = "https://ace3mod.com/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2", "Glowbal"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/cargo/functions/fnc_initObject.sqf b/addons/cargo/functions/fnc_initObject.sqf
index dc8db802e5..f740d0e371 100644
--- a/addons/cargo/functions/fnc_initObject.sqf
+++ b/addons/cargo/functions/fnc_initObject.sqf
@@ -39,7 +39,7 @@ private _statement = {
[_player, _target] call FUNC(startLoadIn);
};
private _text = localize LSTRING(loadObject);
-private _icon = QUOTE(PATHTOF(UI\Icon_load.paa));
+private _icon = QPATHTOF(UI\Icon_load.paa);
private _action = [QGVAR(load), _text, _icon, _statement, _condition] call EFUNC(interact_menu,createAction);
[_type, 0, ["ACE_MainActions"], _action] call EFUNC(interact_menu,addActionToClass);
diff --git a/addons/common/CfgEventHandlers.hpp b/addons/common/CfgEventHandlers.hpp
index 5d55e40f2d..beb07e35e7 100644
--- a/addons/common/CfgEventHandlers.hpp
+++ b/addons/common/CfgEventHandlers.hpp
@@ -33,7 +33,7 @@ class Extended_InitPost_EventHandlers {
};
class CAManBase {
class GVAR(setName) {
- init = QUOTE(if (local (_this select 0)) then {[ARR_2(FUNC(setName),_this)] call FUNC(execNextFrame)};);
+ init = QUOTE(if (local (_this select 0)) then {[ARR_2(FUNC(setName),_this)] call CBA_fnc_execNextFrame};);
};
class GVAR(muteUnit) {
init = QUOTE(_this call FUNC(muteUnitHandleInitPost));
diff --git a/addons/common/CfgUnitInsignia.hpp b/addons/common/CfgUnitInsignia.hpp
index c1cd541e9c..337baa4235 100644
--- a/addons/common/CfgUnitInsignia.hpp
+++ b/addons/common/CfgUnitInsignia.hpp
@@ -3,13 +3,13 @@ class CfgUnitInsignia {
class ACE_insignia_logo {
displayName = "ACE3";
author = CSTRING(ACETeam);
- texture = PATHTOF(data\Insignia_ace3logo_ca.paa);
+ texture = QPATHTOF(data\Insignia_ace3logo_ca.paa);
textureVehicle = "";
};
class ACE_insignia_banana {
displayName = "ABE3";
author = CSTRING(ACETeam);
- texture = PATHTOF(data\insignia_banana_ca.paa);
+ texture = QPATHTOF(data\insignia_banana_ca.paa);
textureVehicle = "";
};
};
diff --git a/addons/common/CfgVehicles.hpp b/addons/common/CfgVehicles.hpp
index de1f7f7cf4..1e958027be 100644
--- a/addons/common/CfgVehicles.hpp
+++ b/addons/common/CfgVehicles.hpp
@@ -36,7 +36,7 @@ class CfgVehicles {
scope = 2;
isGlobal = 1;
isSingular = 1;
- icon = QUOTE(PATHTOF(UI\Icon_Module_CheckPBO_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_CheckPBO_ca.paa);
class Arguments {
class Action {
displayName = CSTRING(CheckPBO_Action_DisplayName);
@@ -82,7 +82,7 @@ class CfgVehicles {
displayName = CSTRING(LSDVehicles_DisplayName);
function = "ACE_Common_fnc_moduleLSDVehicles";
scope = 2;
- icon = QUOTE(PATHTOF(UI\Icon_Module_LSD_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_LSD_ca.paa);
isGlobal = 1;
class Arguments {};
class ModuleDescription: ModuleDescription {
@@ -132,7 +132,7 @@ class CfgVehicles {
class ACE_Headbug_Fix: Bicycle {
scope = 1;
side = 3;
- model = PATHTOF(data\ACE_HeadBanger.p3d);
+ model = QPATHTOF(data\ACE_HeadBanger.p3d);
//model = QPATHTO_M(ACE_HeadBanger.p3d);
author = CSTRING(ACETeam);
displayName = " ";
diff --git a/addons/common/CfgWeapons.hpp b/addons/common/CfgWeapons.hpp
index 22075e2903..488d4210c4 100644
--- a/addons/common/CfgWeapons.hpp
+++ b/addons/common/CfgWeapons.hpp
@@ -34,8 +34,8 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(bananaDisplayName);
descriptionShort = CSTRING(bananaDescr);
- model = PATHTOF(data\banana.p3d);
- picture = PATHTOF(data\icon_banana_ca.paa);
+ model = QPATHTOF(data\banana.p3d);
+ picture = QPATHTOF(data\icon_banana_ca.paa);
icon = "iconObject_circle";
mapSize = 0.034;
class ItemInfo: InventoryItem_Base_F {
diff --git a/addons/common/RscInfoType.hpp b/addons/common/RscInfoType.hpp
index e5af2454cb..32bc0b698f 100644
--- a/addons/common/RscInfoType.hpp
+++ b/addons/common/RscInfoType.hpp
@@ -111,4 +111,8 @@ class RscInGameUI {
class RscStaminaBar {
onLoad = QUOTE([ARR_4(""onLoad"",_this,""RscStaminaBar"",'IGUI')] call (uinamespace getvariable 'BIS_fnc_initDisplay'); uiNamespace setVariable [ARR_2(QUOTE(QGVAR(dlgStaminaBar)),_this select 0)]);
};
+
+ class RscStanceInfo {
+ onLoad = QUOTE([ARR_4(""onLoad"",_this,""RscStanceInfo"",'IGUI')] call (uinamespace getvariable 'BIS_fnc_initDisplay'); [ARR_2('infoDisplayChanged', [ARR_2(_this select 0, 'Stance')])] call FUNC(localEvent););
+ };
};
diff --git a/addons/common/XEH_PREP.hpp b/addons/common/XEH_PREP.hpp
index 3dea56a98d..857a754f6a 100644
--- a/addons/common/XEH_PREP.hpp
+++ b/addons/common/XEH_PREP.hpp
@@ -24,6 +24,7 @@ PREP(debugModule);
PREP(defineVariable);
PREP(deviceKeyFindValidIndex);
PREP(deviceKeyRegisterNew);
+PREP(deprecateComponent);
PREP(disableAI);
PREP(disableUserInput);
PREP(displayIcon);
@@ -277,5 +278,3 @@ PREP(hashListCreateHash);
PREP(hashListSelect);
PREP(hashListSet);
PREP(hashListPush);
-
-PREP(timePFH);
diff --git a/addons/common/XEH_postInit.sqf b/addons/common/XEH_postInit.sqf
index 88012a7884..bedec4f3aa 100644
--- a/addons/common/XEH_postInit.sqf
+++ b/addons/common/XEH_postInit.sqf
@@ -3,47 +3,6 @@
// #define DEBUG_MODE_FULL
#include "script_component.hpp"
-
-//////////////////////////////////////////////////
-// PFHs
-//////////////////////////////////////////////////
-
-//Singe PFEH to handle execNextFrame, waitAndExec and waitUntilAndExec:
-[{
- BEGIN_COUNTER(waitAndExec);
-
- //Handle the waitAndExec array:
- while {!(GVAR(waitAndExecArray) isEqualTo []) && {GVAR(waitAndExecArray) select 0 select 0 <= ACE_Time}} do {
- private _entry = GVAR(waitAndExecArray) deleteAt 0;
- (_entry select 2) call (_entry select 1);
- };
-
- //Handle the execNextFrame array:
- {
- (_x select 0) call (_x select 1);
- false
- } count GVAR(nextFrameBufferA);
-
- //Swap double-buffer:
- GVAR(nextFrameBufferA) = GVAR(nextFrameBufferB);
- GVAR(nextFrameBufferB) = [];
- GVAR(nextFrameNo) = diag_frameno + 1;
-
- //Handle the waitUntilAndExec array:
- {
- // if condition is satisifed call statement
- if ((_x select 2) call (_x select 0)) then {
- // make sure to delete the correct handle when multiple conditions are met in one frame
- GVAR(waitUntilAndExecArray) deleteAt (GVAR(waitUntilAndExecArray) find _x);
- (_x select 2) call (_x select 1);
- };
- nil
- } count +GVAR(waitUntilAndExecArray);
-
- END_COUNTER(waitAndExec);
-}, 0, []] call CBA_fnc_addPerFrameHandler;
-
-
//////////////////////////////////////////////////
// Get Map Data
//////////////////////////////////////////////////
diff --git a/addons/common/XEH_preInit.sqf b/addons/common/XEH_preInit.sqf
index dea4e64538..0c2922ea64 100644
--- a/addons/common/XEH_preInit.sqf
+++ b/addons/common/XEH_preInit.sqf
@@ -23,13 +23,6 @@ DFUNC(selectWeaponMode) = {
GVAR(syncedEvents) = HASH_CREATE;
GVAR(showHudHash) = [] call FUNC(hashCreate);
-//GVARS for execNextFrame and waitAndExec and waitUntilAndExecute
-GVAR(waitAndExecArray) = [];
-GVAR(nextFrameNo) = diag_frameno;
-GVAR(nextFrameBufferA) = [];
-GVAR(nextFrameBufferB) = [];
-GVAR(waitUntilAndExecArray) = [];
-
GVAR(settingsInitFinished) = false;
GVAR(runAtSettingsInitialized) = [];
@@ -55,20 +48,6 @@ GVAR(setHearingCapabilityMap) = [];
ACE_player = objNull;
uiNamespace setVariable ["ACE_player", objNull];
-//////////////////////////////////////////////////
-// Time handling
-//////////////////////////////////////////////////
-
-ACE_time = diag_tickTime;
-ACE_realTime = diag_tickTime;
-ACE_virtualTime = diag_tickTime;
-ACE_diagTime = diag_tickTime;
-ACE_gameTime = time;
-ACE_pausedTime = 0;
-ACE_virtualPausedTime = 0;
-
-[FUNC(timePFH), 0, []] call CBA_fnc_addPerFrameHandler;
-
// Init toHex
[0] call FUNC(toHex);
diff --git a/addons/common/config.cpp b/addons/common/config.cpp
index cbe5c5df6a..2cf6dd4ec9 100644
--- a/addons/common/config.cpp
+++ b/addons/common/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_ItemCore","ACE_FakePrimaryWeapon", "ACE_Banana"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_main","ace_modules"};
- author[] = {"KoffeinFlummi"};
- authorUrl = "https://github.com/KoffeinFlummi/";
+ author = CSTRING(ACETeam);
+ authors[] = {"KoffeinFlummi"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG_COMMON;
};
};
diff --git a/addons/common/functions/fnc__handleSyncedEvent.sqf b/addons/common/functions/fnc__handleSyncedEvent.sqf
index 870cd563dd..d708178c4f 100644
--- a/addons/common/functions/fnc__handleSyncedEvent.sqf
+++ b/addons/common/functions/fnc__handleSyncedEvent.sqf
@@ -29,7 +29,7 @@ if (isServer) then {
_internalData = HASH_GET(GVAR(syncedEvents),_name);
_internalData params ["", "_eventLog"];
- _eventLog pushBack [ACE_diagTime, _args, _ttl];
+ _eventLog pushBack [diag_tickTime, _args, _ttl];
};
};
diff --git a/addons/common/functions/fnc_binocularMagazine.sqf b/addons/common/functions/fnc_binocularMagazine.sqf
index b5f4f0558e..aacac7c142 100644
--- a/addons/common/functions/fnc_binocularMagazine.sqf
+++ b/addons/common/functions/fnc_binocularMagazine.sqf
@@ -15,18 +15,6 @@
*/
#include "script_component.hpp"
-params [["_unit", objNull, [objNull]]];
+ACE_DEPRECATED("ace_common_fnc_binocularMagazine","3.8.0","CBA_fnc_binocularMagazine");
-private _binocular = binocular _unit;
-
-scopeName "main";
-
-{
- if ((_x select 0) isEqualTo _binocular) then {
- // note: if there is no magazine, _x(4,0) will be nil, which skips the breakOut.
- (_x select 4 select 0) breakOut "main";
- };
- false
-} count weaponsitems _unit;
-
-""
+_this call CBA_fnc_binocularMagazine
diff --git a/addons/common/functions/fnc_cachedCall.sqf b/addons/common/functions/fnc_cachedCall.sqf
index 2c7cdd4b27..6160dfd090 100644
--- a/addons/common/functions/fnc_cachedCall.sqf
+++ b/addons/common/functions/fnc_cachedCall.sqf
@@ -19,8 +19,8 @@
params ["_params", "_function", "_namespace", "_uid", "_duration", "_event"];
-if ((_namespace getVariable [_uid, [-99999]]) select 0 < ACE_diagTime) then {
- _namespace setVariable [_uid, [ACE_diagTime + _duration, _params call _function]];
+if ((_namespace getVariable [_uid, [-99999]]) select 0 < diag_tickTime) then {
+ _namespace setVariable [_uid, [diag_tickTime + _duration, _params call _function]];
// Does the cache needs to be cleared on an event?
if (!isNil "_event") then {
diff --git a/addons/common/functions/fnc_checkPBOs.sqf b/addons/common/functions/fnc_checkPBOs.sqf
index f447d126af..6d786aebf4 100644
--- a/addons/common/functions/fnc_checkPBOs.sqf
+++ b/addons/common/functions/fnc_checkPBOs.sqf
@@ -79,7 +79,7 @@ if (!isServer) then {
params ["_rscLayer"];
TRACE_2("Hiding Error message after 10 seconds",time,_rscLayer);
_rscLayer cutFadeOut 0.2;
- }, [_rscLayer], 10] call FUNC(waitAndExecute);
+ }, [_rscLayer], 10] call CBA_fnc_waitAndExecute;
};
};
@@ -89,7 +89,7 @@ if (!isServer) then {
TRACE_2("Player is alive, showing msg and exiting",time,_text);
_text = composeText [parseText format ["%1", _text]];
["[ACE] ERROR", _text, {findDisplay 46 closeDisplay 0}] call FUNC(errorMessage);
- }, [_text]] call FUNC(waitUntilAndExecute);
+ }, [_text]] call CBA_fnc_waitUntilAndExecute;
};
};
diff --git a/addons/common/functions/fnc_deprecateComponent.sqf b/addons/common/functions/fnc_deprecateComponent.sqf
new file mode 100644
index 0000000000..21905e8e4e
--- /dev/null
+++ b/addons/common/functions/fnc_deprecateComponent.sqf
@@ -0,0 +1,63 @@
+/*
+ * Author: Glowbal
+ * Mark a component as deprecated and switches it to a new component if that is available
+ *
+ * Arguments:
+ * 0: Component
+ * 1: New component
+ * 2: Version when the compent will be removed
+ *
+ * Return Value:
+ * Replaced by new component
+ *
+ * Public: No
+ *
+ * Example:
+ * [["ace_sitting", "ace_sitting_enabled"], ["acex_sitting", "acex_sitting_enabled"], "3.7.0"] call ace_common_fnc_deprecateComponent;
+ */
+#include "script_component.hpp"
+
+params ["_oldComponent", "_newComponent", "_version"];
+
+_oldComponent params ["_oldComponentName", "_oldSettingName"];
+_newComponent params ["_newComponentName", "_newSettingName"];
+
+private _isReplacementAvailable = isClass (configFile >> "CfgPatches" >> _newComponentName);
+private _isDeprecatedLoaded = missionNamespace getvariable [_oldSettingName, false];
+private _isReplacementLoaded = missionNamespace getvariable [_newSettingName, false];
+
+if (_isDeprecatedLoaded && {_isReplacementAvailable} && {!_isReplacementLoaded}) then {
+ [_newSettingName, true, true, true] call FUNC(setSetting);
+};
+
+if (_isDeprecatedLoaded && {!_isReplacementLoaded}) then {
+ private _componentVersion = getText (configFile >> "CfgPatches" >> _oldComponentName >> "version");
+ ((_componentVersion splitString ".") apply {parseNumber _x}) params ["_componentMajor", "_componentMinor", "_componentPatch"];
+ ((_version splitString ".") apply {parseNumber _x}) params ["_major", "_minor", "_patch"];
+
+ switch (true) do {
+ case (_componentMajor >= _major && {_componentMinor >= _minor} && {_componentPatch >= _patch}): { // Removed from this version
+ private _message = format[
+ "Component %1 is deprecated. It has been replaced by %2. The component %1 is no longer usable on this version. ", _oldComponentName, _newComponentName, _version];
+ systemChat format["ACE [ERROR] - %1", _message];
+ ACE_LOGERROR(_message);
+ };
+ case (_componentMajor >= _major && {_componentMinor >= _minor-1}): { // Removed the next this version
+ private _message = format[
+ "Component %1 is deprecated. It is replaced by %2. Please disable %1 and make use of %2. "
+ + "The component (%1) will no longer be available from version %3 and later.", _oldComponentName, _newComponentName, _version];
+ systemChat format["ACE [WARNING] - %1", _message];
+ ACE_LOGWARNING(_message);
+ };
+ case (_componentMajor == _major && {_componentMinor >= _minor - 2}): { // we are in a version leading up to removal
+ private _message = format[
+ "Component %1 is deprecated. It is replaced by %2. Please disable %1 and make use of %2. "
+ + "The component (%1) will no longer be available from version %3 and later.", _oldComponentName, _newComponentName, _version];
+ ACE_LOGWARNING(_message);
+ };
+ default {
+ };
+ };
+};
+
+_isReplacementAvailable;
diff --git a/addons/common/functions/fnc_deviceKeyRegisterNew.sqf b/addons/common/functions/fnc_deviceKeyRegisterNew.sqf
index 416eef2c77..ce012fc3aa 100644
--- a/addons/common/functions/fnc_deviceKeyRegisterNew.sqf
+++ b/addons/common/functions/fnc_deviceKeyRegisterNew.sqf
@@ -13,7 +13,7 @@
* None
*
* Example:
- * [(localize "STR_ACE_microdagr_itemName"), QUOTE(PATHTOF(images\microDAGR_item.paa)), _conditionCode, _toggleCode, _closeCode] call ace_common_fnc_deviceKeyRegisterNew
+ * [(localize "STR_ACE_microdagr_itemName"), QPATHTOF(images\microDAGR_item.paa), _conditionCode, _toggleCode, _closeCode] call ace_common_fnc_deviceKeyRegisterNew
*
* Public: No
*/
diff --git a/addons/common/functions/fnc_displayIcon.sqf b/addons/common/functions/fnc_displayIcon.sqf
index c51b3bd454..e4f824791a 100644
--- a/addons/common/functions/fnc_displayIcon.sqf
+++ b/addons/common/functions/fnc_displayIcon.sqf
@@ -14,7 +14,7 @@
* None
*
* Example:
- * ["myID", true, QUOTE(PATHTOF(data\icon_group.paa)), [1,1,1,1], 0] call ace_gui_fnc_displayIcon;
+ * ["myID", true, QPATHTOF(data\icon_group.paa), [1,1,1,1], 0] call ace_gui_fnc_displayIcon;
*
* Public: Yes
*/
@@ -89,11 +89,11 @@ private _refresh = {
if (_show) then {
if ({_x select 0 == _iconId} count _list == 0) then {
- _list pushBack [_iconId, _icon, _color, ACE_time];
+ _list pushBack [_iconId, _icon, _color, CBA_missionTime];
} else {
{
if (_x select 0 == _iconId) exitWith {
- _list set [_forEachIndex, [_iconId, _icon, _color, ACE_time]];
+ _list set [_forEachIndex, [_iconId, _icon, _color, CBA_missionTime]];
};
} forEach _list;
};
@@ -104,7 +104,7 @@ if (_show) then {
if (_timeAlive >= 0) then {
[{
[_this select 0, false, "", [0,0,0], 0] call FUNC(displayIcon);
- }, [_iconId], _timeAlive, _timeAlive] call FUNC(waitAndExecute);
+ }, [_iconId], _timeAlive, _timeAlive] call CBA_fnc_waitAndExecute;
};
} else {
diff --git a/addons/common/functions/fnc_displayText.sqf b/addons/common/functions/fnc_displayText.sqf
index 3c68327535..ee22f6949a 100644
--- a/addons/common/functions/fnc_displayText.sqf
+++ b/addons/common/functions/fnc_displayText.sqf
@@ -25,7 +25,7 @@ if !(typeName _text in ["STRING", "TEXT"]) then {_text = str _text};
GVAR(lastHint) params ["_lastHintTime", "_lastHintPriority"];
-private _time = ACE_time;
+private _time = CBA_missionTime;
if (_time > _lastHintTime + _delay || {_priority >= _lastHintPriority}) then {
hintSilent _text;
@@ -33,5 +33,5 @@ if (_time > _lastHintTime + _delay || {_priority >= _lastHintPriority}) then {
GVAR(lastHint) set [0, _time];
GVAR(lastHint) set [1, _priority];
- [{if ((_this select 0) == GVAR(lastHint) select 0) then {hintSilent ""};}, [_time], _delay, 0] call FUNC(waitAndExecute);
+ [{if ((_this select 0) == GVAR(lastHint) select 0) then {hintSilent ""};}, [_time], _delay, 0] call CBA_fnc_waitAndExecute;
};
diff --git a/addons/common/functions/fnc_execNextFrame.sqf b/addons/common/functions/fnc_execNextFrame.sqf
index 7b3f034c6d..c1c4b81592 100644
--- a/addons/common/functions/fnc_execNextFrame.sqf
+++ b/addons/common/functions/fnc_execNextFrame.sqf
@@ -13,10 +13,6 @@
*/
#include "script_component.hpp"
-params ["_func", "_params"];
+ACE_DEPRECATED("ace_common_fnc_execNextFrame","3.8.0","CBA_fnc_execNextFrame");
-if (diag_frameno != GVAR(nextFrameNo)) then {
- GVAR(nextFrameBufferA) pushBack [_params, _func];
-} else {
- GVAR(nextFrameBufferB) pushBack [_params, _func];
-};
+_this call CBA_fnc_execNextFrame;
diff --git a/addons/common/functions/fnc_fixCollision.sqf b/addons/common/functions/fnc_fixCollision.sqf
index c0cf7b93e7..3b3b16a9f9 100644
--- a/addons/common/functions/fnc_fixCollision.sqf
+++ b/addons/common/functions/fnc_fixCollision.sqf
@@ -19,4 +19,4 @@ if (!local _this) exitWith {};
[_this, "blockDamage", "fixCollision", true] call FUNC(statusEffect_set);
// re-allow damage after 2 seconds
-[{[_this, "blockDamage", "fixCollision", false] call FUNC(statusEffect_set);}, _this, 2] call EFUNC(common,waitAndExecute);
+[{[_this, "blockDamage", "fixCollision", false] call FUNC(statusEffect_set);}, _this, 2] call CBA_fnc_waitAndExecute;
diff --git a/addons/common/functions/fnc_getAllGear.sqf b/addons/common/functions/fnc_getAllGear.sqf
index cebcc489f1..de6ea62dff 100644
--- a/addons/common/functions/fnc_getAllGear.sqf
+++ b/addons/common/functions/fnc_getAllGear.sqf
@@ -64,5 +64,5 @@ if (isNull _unit) exitWith {[
handgunWeapon _unit, handgunItems _unit, handgunMagazine _unit,
assignedItems _unit,
binocular _unit,
- [_unit] call FUNC(binocularMagazine)
+ [_unit] call CBA_fnc_binocularMagazine
]
diff --git a/addons/common/functions/fnc_getConfigType.sqf b/addons/common/functions/fnc_getConfigType.sqf
index 1496cfa2b9..34aaa03172 100644
--- a/addons/common/functions/fnc_getConfigType.sqf
+++ b/addons/common/functions/fnc_getConfigType.sqf
@@ -12,12 +12,6 @@
*/
#include "script_component.hpp"
-params ["_item"];
+ACE_DEPRECATED("ace_common_fnc_getConfigType","3.8.0","CBA_fnc_getItemConfig");
-if (isClass (configFile >> "CfgWeapons" >> _item)) exitWith {"CfgWeapons"};
-
-if (isClass (configFile >> "CfgMagazines" >> _item)) exitWith {"CfgMagazines"};
-
-if (isClass (configFile >> "CfgGlasses" >> _item)) exitWith {"CfgGlasses"};
-
-""
+configName (configHierarchy (_item call CBA_fnc_getItemConfig) param [1, configNull])
diff --git a/addons/common/functions/fnc_getConfigTypeObject.sqf b/addons/common/functions/fnc_getConfigTypeObject.sqf
index 6186ad6bff..92a6d43a42 100644
--- a/addons/common/functions/fnc_getConfigTypeObject.sqf
+++ b/addons/common/functions/fnc_getConfigTypeObject.sqf
@@ -12,10 +12,6 @@
*/
#include "script_component.hpp"
-params ["_object"];
+ACE_DEPRECATED("ace_common_fnc_getConfigTypeObject","3.8.0","CBA_fnc_getObjectConfig");
-if (isClass (configFile >> "CfgVehicles" >> _object)) exitWith {"CfgVehicles"};
-
-if (isClass (configFile >> "CfgAmmo" >> _object)) exitWith {"CfgAmmo"};
-
-""
+configName (configHierarchy (_item call CBA_fnc_getObjectConfig) param [1, configNull])
diff --git a/addons/common/functions/fnc_getItemType.sqf b/addons/common/functions/fnc_getItemType.sqf
index d3eb511949..eb5015e20a 100644
--- a/addons/common/functions/fnc_getItemType.sqf
+++ b/addons/common/functions/fnc_getItemType.sqf
@@ -15,9 +15,11 @@
params ["_item"];
-private _cfgType = [_item] call FUNC(getConfigType);
+private _config = _item call CBA_fnc_getItemConfig;
-if (_cfgType == "") exitWith {["", ""]};
+if (isNull _config) exitWith {["", ""]};
+
+private _cfgType = configName ((configHierarchy _config) param [1, configNull]);
if (_cfgType == "CfgGlasses") exitWith {["item", "glasses"]};
diff --git a/addons/common/functions/fnc_hashHasKey.sqf b/addons/common/functions/fnc_hashHasKey.sqf
index b2978f9cc4..97998c1298 100644
--- a/addons/common/functions/fnc_hashHasKey.sqf
+++ b/addons/common/functions/fnc_hashHasKey.sqf
@@ -12,7 +12,7 @@
*/
#include "script_component.hpp"
-// diag_log text format["%1 HASH HAS KEY: %2", ACE_diagTime, _this];
+// diag_log text format["%1 HASH HAS KEY: %2", diag_tickTime, _this];
params ["_hash", "_key"];
diff --git a/addons/common/functions/fnc_hashSet.sqf b/addons/common/functions/fnc_hashSet.sqf
index 10e2881c10..0890578857 100644
--- a/addons/common/functions/fnc_hashSet.sqf
+++ b/addons/common/functions/fnc_hashSet.sqf
@@ -12,7 +12,7 @@
*/
#include "script_component.hpp"
-// diag_log text format["%1 HASH SET: %2", ACE_diagTime, _this];
+// diag_log text format["%1 HASH SET: %2", diag_tickTime, _this];
params ["_hash", "_key", "_val"];
diff --git a/addons/common/functions/fnc_progressBar.sqf b/addons/common/functions/fnc_progressBar.sqf
index 6129f14a65..d8503f5223 100644
--- a/addons/common/functions/fnc_progressBar.sqf
+++ b/addons/common/functions/fnc_progressBar.sqf
@@ -46,7 +46,7 @@ _ctrlPos set [1, ((0 + 29 * GVAR(settingProgressBarLocation)) * ((((safezoneW /
[{
(_this select 0) params ["_args", "_onFinish", "_onFail", "_condition", "_player", "_startTime", "_totalTime", "_exceptions"];
- private _elapsedTime = ACE_time - _startTime;
+ private _elapsedTime = CBA_missionTime - _startTime;
private _errorCode = -1;
// this does not check: target fell unconscious, target died, target moved inside vehicle / left vehicle, target moved outside of players range, target moves at all.
@@ -97,4 +97,4 @@ _ctrlPos set [1, ((0 + 29 * GVAR(settingProgressBarLocation)) * ((((safezoneW /
//Update Progress Bar (ratio of elepased:total)
(uiNamespace getVariable QGVAR(ctrlProgressBar)) progressSetPosition (_elapsedTime / _totalTime);
};
-}, 0, [_args, _onFinish, _onFail, _condition, _player, ACE_time, _totalTime, _exceptions]] call CBA_fnc_addPerFrameHandler;
+}, 0, [_args, _onFinish, _onFail, _condition, _player, CBA_missionTime, _totalTime, _exceptions]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/common/functions/fnc_receiveRequest.sqf b/addons/common/functions/fnc_receiveRequest.sqf
index 75f684f5dd..1bb48428df 100644
--- a/addons/common/functions/fnc_receiveRequest.sqf
+++ b/addons/common/functions/fnc_receiveRequest.sqf
@@ -45,7 +45,7 @@ GVAR(RECIEVE_REQUEST_ADD_ACTION_DECLINE) = _target addAction ["Decline", compile
GVAR(RECIEVE_REQUEST_ID_KEY_BINDING) = _requestID;
-GVAR(RECIEVE_REQUEST_TIME_OUT_SCRIPT) = [ACE_time, _target, _requestID] spawn { // @todo
+GVAR(RECIEVE_REQUEST_TIME_OUT_SCRIPT) = [CBA_missionTime, _target, _requestID] spawn { // @todo
params ["_time", "_target", "_requestID"];
_time = _time + 40;
@@ -55,7 +55,7 @@ GVAR(RECIEVE_REQUEST_TIME_OUT_SCRIPT) = [ACE_time, _target, _requestID] spawn {
waitUntil {
_id = _target getVariable _requestID;
- (ACE_time > _time || isNil "_id")
+ (CBA_missionTime > _time || isNil "_id")
};
_target setVariable [_requestID, nil];
diff --git a/addons/common/functions/fnc_removeBinocularMagazine.sqf b/addons/common/functions/fnc_removeBinocularMagazine.sqf
index 487295ccc3..4f1e0fcdd6 100644
--- a/addons/common/functions/fnc_removeBinocularMagazine.sqf
+++ b/addons/common/functions/fnc_removeBinocularMagazine.sqf
@@ -15,13 +15,6 @@
*/
#include "script_component.hpp"
-params [["_unit", objNull, [objNull]]];
+ACE_DEPRECATED("ace_common_fnc_removeBinocularMagazine","3.8.0","CBA_fnc_removeBinocularMagazine");
-private _binocular = binocular _unit;
-private _selectBinocular = currentWeapon _unit == _binocular;
-
-_unit addWeapon _binocular;
-
-if (_selectBinocular) then {
- _unit selectWeapon _binocular;
-};
+_this call CBA_fnc_removeBinocularMagazine
diff --git a/addons/common/functions/fnc_setVariablePublic.sqf b/addons/common/functions/fnc_setVariablePublic.sqf
index bf6b35a862..1cfba0a422 100644
--- a/addons/common/functions/fnc_setVariablePublic.sqf
+++ b/addons/common/functions/fnc_setVariablePublic.sqf
@@ -50,4 +50,4 @@ TRACE_2("Starting Embargo", _varName, _delay);
if (!(_value isEqualTo _curValue)) then {
_this call FUNC(setVariablePublic);
};
-}, _this, _delay] call FUNC(waitAndExecute);
+}, _this, _delay] call CBA_fnc_waitAndExecute;
diff --git a/addons/common/functions/fnc_syncedEventPFH.sqf b/addons/common/functions/fnc_syncedEventPFH.sqf
index ca0cc4829b..c0c840c894 100644
--- a/addons/common/functions/fnc_syncedEventPFH.sqf
+++ b/addons/common/functions/fnc_syncedEventPFH.sqf
@@ -34,7 +34,7 @@ if (!isServer) exitWith {false};
if (_globalEventTTL isEqualType {}) then {
_ttlReturn = [_eventTime, _eventEntry] call _globalEventTTL;
} else {
- _ttlReturn = call {_globalEventTTL < 1 || {ACE_diagTime < (_eventEntry select 0) + _globalEventTTL}};
+ _ttlReturn = call {_globalEventTTL < 1 || {diag_tickTime < (_eventEntry select 0) + _globalEventTTL}};
};
if (_ttlReturn) then {
@@ -44,7 +44,7 @@ if (!isServer) exitWith {false};
if (_eventTTL isEqualType {}) then {
_ttlReturn = [_eventTime, _eventEntry] call _eventTTL;
} else {
- _ttlReturn = call {_eventTTL < 1 || {ACE_diagTime < _time + _eventTTL}};
+ _ttlReturn = call {_eventTTL < 1 || {diag_tickTime < _time + _eventTTL}};
};
};
diff --git a/addons/common/functions/fnc_throttledPublicVariable.sqf b/addons/common/functions/fnc_throttledPublicVariable.sqf
index 67cfc50f9a..3aaa3c8f47 100644
--- a/addons/common/functions/fnc_throttledPublicVariable.sqf
+++ b/addons/common/functions/fnc_throttledPublicVariable.sqf
@@ -25,7 +25,7 @@ if (isNil QGVAR(publishSchedId)) then {
GVAR(publishNextTime) = 1e7;
GVAR(publishSchedId) = [{
- if (ACE_diagTime > GVAR(publishNextTime)) then {
+ if (diag_tickTime > GVAR(publishNextTime)) then {
{
_x params [_unit, _varName];
_unit setVariable [_varName, _unit getVariable _varName, true];
@@ -41,8 +41,8 @@ if (isNil QGVAR(publishSchedId)) then {
// If the variable is not on the list
if (GVAR(publishVarNames) find [_unit, _varName] == -1) exitWith {
GVAR(publishVarNames) pushBack [_unit, _varName];
- GVAR(publishNextTime) = GVAR(publishNextTime) min (ACE_diagTime + _maxDelay);
+ GVAR(publishNextTime) = GVAR(publishNextTime) min (diag_tickTime + _maxDelay);
};
// If the variable is on the list
-GVAR(publishNextTime) = GVAR(publishNextTime) min (ACE_diagTime + _maxDelay);
+GVAR(publishNextTime) = GVAR(publishNextTime) min (diag_tickTime + _maxDelay);
diff --git a/addons/common/functions/fnc_timePFH.sqf b/addons/common/functions/fnc_timePFH.sqf
deleted file mode 100644
index d70c6baea2..0000000000
--- a/addons/common/functions/fnc_timePFH.sqf
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Author: jaynus
- * PFEH to set all Ace Time Variables
- *
- * Arguments:
- * None
- *
- * Return Value:
- * None
- *
- * Public: No
- */
-#include "script_component.hpp"
-
-BEGIN_COUNTER(timePFH);
-
-private _lastTickTime = ACE_diagTime;
-private _lastGameTime = ACE_gameTime;
-
-ACE_gameTime = time;
-ACE_diagTime = diag_tickTime;
-
-private _delta = ACE_diagTime - _lastTickTime;
-
-if (ACE_gameTime <= _lastGameTime) then {
- TRACE_1("paused",_delta);
- ACE_paused = true;
- // Game is paused or not running
- ACE_pausedTime = ACE_pausedTime + _delta;
- ACE_virtualPausedTime = ACE_pausedTime + (_delta * accTime);
-} else {
- TRACE_1("live",_delta);
- ACE_paused = false;
- // Time is updating
- ACE_realTime = ACE_realTime + _delta;
- ACE_virtualTime = ACE_virtualTime + (_delta * accTime);
- ACE_time = ACE_virtualTime;
-};
-
-END_COUNTER(timePFH);
diff --git a/addons/common/functions/fnc_unloadPerson.sqf b/addons/common/functions/fnc_unloadPerson.sqf
index 72816f2c3f..b4c57457af 100644
--- a/addons/common/functions/fnc_unloadPerson.sqf
+++ b/addons/common/functions/fnc_unloadPerson.sqf
@@ -15,7 +15,7 @@
*/
#include "script_component.hpp"
-#define GROUP_SWITCH_ID QUOTE(FUNC(loadPerson))
+#define GROUP_SWITCH_ID QFUNC(loadPerson)
params ["_unit"];
diff --git a/addons/common/functions/fnc_unloadPersonLocal.sqf b/addons/common/functions/fnc_unloadPersonLocal.sqf
index ff5813434a..741accb689 100644
--- a/addons/common/functions/fnc_unloadPersonLocal.sqf
+++ b/addons/common/functions/fnc_unloadPersonLocal.sqf
@@ -14,7 +14,7 @@
*/
#include "script_component.hpp"
-#define GROUP_SWITCH_ID QUOTE(FUNC(loadPerson))
+#define GROUP_SWITCH_ID QFUNC(loadPerson)
params ["_unit", "_vehicle", ["_unloader", objNull]];
TRACE_3("params",_unit,_vehicle,_unloader);
@@ -58,10 +58,10 @@ _unit action ["Eject", vehicle _unit];
if ((_unit getVariable "ACE_isUnconscious") and (animationState _unit != _anim)) then {
[_unit, _anim, 2, true] call FUNC(doAnimation);
};
- }, [_unit, _anim], 0.5] call FUNC(waitAndExecute);
+ }, [_unit, _anim], 0.5] call CBA_fnc_waitAndExecute;
};
};
-}, [_unit, _emptyPos], 0.5] call FUNC(waitAndExecute);
+}, [_unit, _emptyPos], 0.5] call CBA_fnc_waitAndExecute;
[_unit, false, GROUP_SWITCH_ID, side group _unit] call FUNC(switchToGroupSide);
diff --git a/addons/common/functions/fnc_waitAndExecute.sqf b/addons/common/functions/fnc_waitAndExecute.sqf
index 6f282ba656..1ac0d3f54d 100644
--- a/addons/common/functions/fnc_waitAndExecute.sqf
+++ b/addons/common/functions/fnc_waitAndExecute.sqf
@@ -17,7 +17,6 @@
*/
#include "script_component.hpp"
-params ["_func", "_params", "_delay"];
+ACE_DEPRECATED("ace_common_fnc_waitAndExecute","3.8.0","CBA_fnc_waitAndExecute");
-GVAR(waitAndExecArray) pushBack [ACE_time + _delay, _func, _params];
-GVAR(waitAndExecArray) sort true;
+_this call CBA_fnc_waitAndExecute;
diff --git a/addons/common/functions/fnc_waitUntilAndExecute.sqf b/addons/common/functions/fnc_waitUntilAndExecute.sqf
index bbc6c540fe..76f3d22ce1 100644
--- a/addons/common/functions/fnc_waitUntilAndExecute.sqf
+++ b/addons/common/functions/fnc_waitUntilAndExecute.sqf
@@ -17,7 +17,8 @@
*/
#include "script_component.hpp"
-TRACE_1("Adding",_this);
+ACE_DEPRECATED("ace_common_fnc_waitUntilAndExecute","3.8.0","CBA_fnc_waitUntilAndExecute");
+
+_this call CBA_fnc_waitUntilAndExecute;
-GVAR(waitUntilAndExecArray) pushBack _this;
nil
diff --git a/addons/common/init_versionTooltip.sqf b/addons/common/init_versionTooltip.sqf
index 7aef3f4786..ce0d005a14 100644
--- a/addons/common/init_versionTooltip.sqf
+++ b/addons/common/init_versionTooltip.sqf
@@ -30,7 +30,7 @@ _display setVariable [QGVAR(versionTooltip), [_display] spawn {
_ctrl ctrlCommit 0;
// pls ignore
- _ctrl ctrlSetText QUOTE(PATHTOF(data\icon_banana_ca.paa));
+ _ctrl ctrlSetText QPATHTOF(data\icon_banana_ca.paa);
// animate with random speed
_position set [1, 1 - safezoneY];
diff --git a/addons/concertina_wire/CfgVehicles.hpp b/addons/concertina_wire/CfgVehicles.hpp
index 88975ea7e9..d7f5d0d82a 100644
--- a/addons/concertina_wire/CfgVehicles.hpp
+++ b/addons/concertina_wire/CfgVehicles.hpp
@@ -10,7 +10,7 @@ class CfgVehicles {
scope = 1;
displayName = "";
- model = PATHTOF(data\ACE_ConcertinaWireNoGeo.p3d);
+ model = QPATHTOF(data\ACE_ConcertinaWireNoGeo.p3d);
destrType = "DestructTent";
accuracy = 0.3;
mapSize = 2.8;
@@ -75,7 +75,7 @@ class CfgVehicles {
class ACE_ConcertinaWire: ACE_ConcertinaWireNoGeo {
scope = 2;
displayName = $STR_ACE_CONCERTINA_WIRE;
- model = PATHTOF(data\ACE_ConcertinaWire.p3d);
+ model = QPATHTOF(data\ACE_ConcertinaWire.p3d);
EGVAR(logistics_wirecutter,isFence) = 1;
class ACE_Actions {
class ACE_MainActions {
@@ -91,7 +91,7 @@ class CfgVehicles {
showDisabled = 0;
exceptions[] = {};
priority = 5;
- icon = PATHTOF(UI\icon_sandbag_ca.paa);
+ icon = QPATHTOF(UI\icon_sandbag_ca.paa);
};
};
};
@@ -105,7 +105,7 @@ class CfgVehicles {
scope = 2;
displayName = $STR_ACE_CONCERTINA_WIRECOIL;
- model = PATHTOF(data\ACE_ConcertinaWireCoil.p3d);
+ model = QPATHTOF(data\ACE_ConcertinaWireCoil.p3d);
mapsize = 0.5;
animated = 0;
nameSound = "fence";
@@ -134,11 +134,11 @@ class CfgVehicles {
distance = 4;
condition = "true";
//wait a frame to handle "Do When releasing action menu key" option:
- statement = QUOTE([ARR_2({_this call FUNC(deploy)}, [ARR_2(_target,_player)])] call EFUNC(common,execNextFrame));
+ statement = QUOTE([ARR_2({_this call FUNC(deploy)}, [ARR_2(_target,_player)])] call CBA_fnc_execNextFrame);
showDisabled = 0;
exceptions[] = {};
priority = 5;
- icon = PATHTOF(UI\icon_sandbag_ca.paa);
+ icon = QPATHTOF(UI\icon_sandbag_ca.paa);
};
};
};
diff --git a/addons/concertina_wire/config.cpp b/addons/concertina_wire/config.cpp
index 06b7bf5d86..5333c83bb5 100644
--- a/addons/concertina_wire/config.cpp
+++ b/addons/concertina_wire/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_apl", "ace_interaction"};
- author[] = {"Rocko", "Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Rocko", "Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/concertina_wire/functions/fnc_dismount.sqf b/addons/concertina_wire/functions/fnc_dismount.sqf
index 6e8ae8f4f5..50429c054b 100644
--- a/addons/concertina_wire/functions/fnc_dismount.sqf
+++ b/addons/concertina_wire/functions/fnc_dismount.sqf
@@ -18,7 +18,7 @@
if (uiNamespace getVariable [QEGVAR(interact_menu,cursorMenuOpened),false]) exitWith {
[{
_this call FUNC(dismount);
- }, _this] call EFUNC(common,execNextFrame);
+ }, _this] call CBA_fnc_execNextFrame;
};
params ["_wire", "_unit"];
diff --git a/addons/concertina_wire/functions/fnc_vehicleDamage.sqf b/addons/concertina_wire/functions/fnc_vehicleDamage.sqf
index dffa15b609..0bca28c3cf 100644
--- a/addons/concertina_wire/functions/fnc_vehicleDamage.sqf
+++ b/addons/concertina_wire/functions/fnc_vehicleDamage.sqf
@@ -114,7 +114,7 @@ if (_mode == 1) then {
_vDir = getDir _vehicle;
_vehicle setPosASL (_vPos vectorAdd [-0.35 * sin(_vDir), -0.35 * cos(_vDir), 0]);
// TODO: Needs to be placed in safe distance to wire, so we do not constantly re-spawn new wires
- }, [_vehicle, _wire], 0.1] call EFUNC(common,waitAndExecute);
+ }, [_vehicle, _wire], 0.1] call CBA_fnc_waitAndExecute;
};
//TODO: Create broken geoless wire (two version)
diff --git a/addons/dagr/CfgVehicles.hpp b/addons/dagr/CfgVehicles.hpp
index 7f0a7f6cff..89bfd8af4e 100644
--- a/addons/dagr/CfgVehicles.hpp
+++ b/addons/dagr/CfgVehicles.hpp
@@ -9,7 +9,7 @@ class CfgVehicles {
statement = QUOTE(call FUNC(menuInit));
showDisabled = 0;
priority = 0.1;
- icon = QUOTE(PATHTOF(UI\DAGR_Icon.paa));
+ icon = QPATHTOF(UI\DAGR_Icon.paa);
exceptions[] = {"isNotInside", "isNotSitting"};
class GVAR(toggle) {
displayName = CSTRING(ToggleDAGR);
@@ -17,7 +17,7 @@ class CfgVehicles {
statement = QUOTE(call FUNC(toggleOverlay));
showDisabled = 0;
priority = 0.2;
- icon = QUOTE(PATHTOF(UI\DAGR_Icon.paa));
+ icon = QPATHTOF(UI\DAGR_Icon.paa);
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
};
};
diff --git a/addons/dagr/CfgWeapons.hpp b/addons/dagr/CfgWeapons.hpp
index 9fcd903cdd..b6601e094c 100644
--- a/addons/dagr/CfgWeapons.hpp
+++ b/addons/dagr/CfgWeapons.hpp
@@ -7,9 +7,9 @@ class CfgWeapons {
author[] = {$STR_ACE_Common_ACETeam, "Ruthberg"};
scope = 2;
displayName = CSTRING(Name);
- model = QUOTE(PATHTOF(data\DAGR.p3d));
+ model = QPATHTOF(data\DAGR.p3d);
descriptionShort = CSTRING(Description);
- picture = PATHTOF(UI\DAGR_Icon.paa);
+ picture = QPATHTOF(UI\DAGR_Icon.paa);
icon = "iconObject_circle";
mapSize = 0.034;
class ItemInfo: InventoryItem_Base_F {
diff --git a/addons/dagr/Dialog.hpp b/addons/dagr/Dialog.hpp
index 8511829e5e..52e3a8f683 100644
--- a/addons/dagr/Dialog.hpp
+++ b/addons/dagr/Dialog.hpp
@@ -156,7 +156,7 @@ class DAGR_Menu {
idc = 266861;
x = 0.175;
y = -0.173;
- text = QUOTE(PATHTOF(UI\dagr_menu.paa));
+ text = QPATHTOF(UI\dagr_menu.paa);
sizeEx = 0.1;
};
diff --git a/addons/dagr/config.cpp b/addons/dagr/config.cpp
index 9f46660aaa..1f440744f4 100644
--- a/addons/dagr/config.cpp
+++ b/addons/dagr/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_DAGR"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_weather"};
- author[] = {"Rosuto", "Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Rosuto", "Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/dagr/functions/fnc_menuInit.sqf b/addons/dagr/functions/fnc_menuInit.sqf
index 54cb4467c5..9bf36c393c 100644
--- a/addons/dagr/functions/fnc_menuInit.sqf
+++ b/addons/dagr/functions/fnc_menuInit.sqf
@@ -134,19 +134,19 @@ GVAR(menuRun) = true;
GVAR(vectorConnected) = false;
if (!GVAR(busy)) then {
GVAR(busy) = true;
- GVAR(busyTimer) = ACE_time;
+ GVAR(busyTimer) = CBA_missionTime;
};
(__dsp displayCtrl __mainText) ctrlSetText "Acquiring Data.";
- if (ACE_time - GVAR(busyTimer) > 0.5) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 0.5) then {
(__dsp displayCtrl __mainText) ctrlSetText "Acquiring Data..";
};
- if (ACE_time - GVAR(busyTimer) > 1.0) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 1.0) then {
(__dsp displayCtrl __mainText) ctrlSetText "Acquiring Data...";
};
- if (ACE_time - GVAR(busyTimer) > 1.5) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 1.5) then {
(__dsp displayCtrl __mainText) ctrlSetText "Position Acquired";
};
- if (ACE_time - GVAR(busyTimer) > 3.0) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 3.0) then {
GVAR(busy) = false;
};
};
@@ -156,7 +156,7 @@ GVAR(menuRun) = true;
if (!GVAR(busy)) then {
GVAR(showNoWaypointsFound) = true;
GVAR(busy) = true;
- GVAR(busyTimer) = ACE_time;
+ GVAR(busyTimer) = CBA_missionTime;
};
} else {
GVAR(menu) = "goto_wp"; GVAR(numSelections) = GVAR(numWaypoints); GVAR(selection) = 0;
@@ -168,7 +168,7 @@ GVAR(menuRun) = true;
};
};
if (GVAR(busy) && GVAR(showNoWaypointsFound)) then {
- if (ACE_time - GVAR(busyTimer) > 2) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 2) then {
GVAR(showNoWaypointsFound) = false;
GVAR(busy) = false;
};
@@ -179,7 +179,7 @@ GVAR(menuRun) = true;
(__dsp displayCtrl __Option2) ctrlSetText "WP LIST";
(__dsp displayCtrl __Option3) ctrlSetText "CONNECT TO";
(__dsp displayCtrl __Option4) ctrlSetText "OPTIONS";
- (__dsp displayCtrl (__Selection0 + GVAR(selection))) ctrlSetText QUOTE(PATHTOF(UI\DAGR_Selection.paa));
+ (__dsp displayCtrl (__Selection0 + GVAR(selection))) ctrlSetText QPATHTOF(UI\DAGR_Selection.paa);
};
};
case "goto_wp": {
@@ -190,7 +190,7 @@ GVAR(menuRun) = true;
(__dsp displayCtrl __Option3) ctrlSetText GVAR(wpString3);
(__dsp displayCtrl __Option4) ctrlSetText GVAR(wpString4);
if (GVAR(numSelections) > 0) then {
- (__dsp displayCtrl (__Selection0 + GVAR(selection))) ctrlSetText QUOTE(PATHTOF(UI\DAGR_Selection.paa));
+ (__dsp displayCtrl (__Selection0 + GVAR(selection))) ctrlSetText QPATHTOF(UI\DAGR_Selection.paa);
};
};
if (GVAR(SEL)) then {
@@ -206,21 +206,21 @@ GVAR(menuRun) = true;
if (!GVAR(busy)) then {
GVAR(showInfoUpdating) = true;
GVAR(busy) = true;
- GVAR(busyTimer) = ACE_time;
+ GVAR(busyTimer) = CBA_missionTime;
};
};
if (GVAR(busy) && GVAR(showInfoUpdating)) then {
(__dsp displayCtrl __mainText) ctrlSetText "Info Update.";
- if (ACE_time - GVAR(busyTimer) > 1) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 1) then {
(__dsp displayCtrl __mainText) ctrlSetText "Info Update..";
};
- if (ACE_time - GVAR(busyTimer) > 1.2) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 1.2) then {
(__dsp displayCtrl __mainText) ctrlSetText "Info Update...";
};
- if (ACE_time - GVAR(busyTimer) > 1.4) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 1.4) then {
(__dsp displayCtrl __mainText) ctrlSetText "Info Updated";
};
- if (ACE_time - GVAR(busyTimer) > 2.9) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 2.9) then {
GVAR(showInfoUpdating) = false;
GVAR(busy) = false;
};
@@ -238,7 +238,7 @@ GVAR(menuRun) = true;
(__dsp displayCtrl __F2) ctrlSetText "Edit";
(__dsp displayCtrl __F3) ctrlSetText "Delete";
if (GVAR(numSelections) > 0) then {
- (__dsp displayCtrl (__Selection0 + GVAR(selection))) ctrlSetText QUOTE(PATHTOF(UI\DAGR_Selection.paa));
+ (__dsp displayCtrl (__Selection0 + GVAR(selection))) ctrlSetText QPATHTOF(UI\DAGR_Selection.paa);
};
};
if (GVAR(F3) && GVAR(numWaypoints) > 0) then {
@@ -289,21 +289,21 @@ GVAR(menuRun) = true;
GVAR(numSelections) = GVAR(numWaypoints);
GVAR(showDeleting) = true;
GVAR(busy) = true;
- GVAR(busyTimer) = ACE_time;
+ GVAR(busyTimer) = CBA_missionTime;
};
};
if (GVAR(busy) && GVAR(showDeleting)) then {
(__dsp displayCtrl __mainText) ctrlSetText "Deleting.";
- if (ACE_time - GVAR(busyTimer) > 1) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 1) then {
(__dsp displayCtrl __mainText) ctrlSetText "Deleting..";
};
- if (ACE_time - GVAR(busyTimer) > 1.2) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 1.2) then {
(__dsp displayCtrl __mainText) ctrlSetText "Deleting...";
};
- if (ACE_time - GVAR(busyTimer) > 1.4) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 1.4) then {
(__dsp displayCtrl __mainText) ctrlSetText "Waypoint Deleted";
};
- if (ACE_time - GVAR(busyTimer) > 2.9) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 2.9) then {
GVAR(showDeleting) = false;
GVAR(busy) = false;
};
@@ -313,7 +313,7 @@ GVAR(menuRun) = true;
if (!GVAR(busy)) then {
GVAR(showOutOfSpace) = true;
GVAR(busy) = true;
- GVAR(busyTimer) = ACE_time;
+ GVAR(busyTimer) = CBA_missionTime;
};
} else {
GVAR(digit1) = 0;
@@ -330,7 +330,7 @@ GVAR(menuRun) = true;
};
if (GVAR(busy) && GVAR(showOutOfSpace)) then {
(__dsp displayCtrl __mainText) ctrlSetText "Out of Space";
- if (ACE_time - GVAR(busyTimer) > 2.5) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 2.5) then {
GVAR(showOutOfSpace) = false;
GVAR(busy) = false;
};
@@ -399,7 +399,7 @@ GVAR(menuRun) = true;
(__dsp displayCtrl __F3) ctrlSetText "Cancel";
GVAR(output) = str GVAR(digit1) + str GVAR(digit2) + str GVAR(digit3) + str GVAR(digit4) + str GVAR(digit5) + str GVAR(digit6) + str GVAR(digit7) + str GVAR(digit8);
(__dsp displayCtrl __mainText) ctrlSetText GVAR(output);
- (__dsp displayCtrl __PSelection1 + GVAR(pointer)) ctrlSetText QUOTE(PATHTOF(UI\DAGR_PSelection.paa));
+ (__dsp displayCtrl __PSelection1 + GVAR(pointer)) ctrlSetText QPATHTOF(UI\DAGR_PSelection.paa);
};
if (GVAR(F1)) then {
if (!GVAR(busy)) then {
@@ -425,22 +425,22 @@ GVAR(menuRun) = true;
};
};
GVAR(busy) = true;
- GVAR(busyTimer) = ACE_time;
+ GVAR(busyTimer) = CBA_missionTime;
};
(__dsp displayCtrl __F1) ctrlSetText "";
(__dsp displayCtrl __F2) ctrlSetText "";
(__dsp displayCtrl __F3) ctrlSetText "";
(__dsp displayCtrl __mainText) ctrlSetText "Saving.";
- if (ACE_time - GVAR(busyTimer) > 1) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 1) then {
(__dsp displayCtrl __mainText) ctrlSetText "Saving..";
};
- if (ACE_time - GVAR(busyTimer) > 1.2) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 1.2) then {
(__dsp displayCtrl __mainText) ctrlSetText "Saving...";
};
- if (ACE_time - GVAR(busyTimer) > 1.4) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 1.4) then {
(__dsp displayCtrl __mainText) ctrlSetText "Waypoint Saved";
};
- if (ACE_time - GVAR(busyTimer) > 2.9) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 2.9) then {
GVAR(edit) = false;
GVAR(add) = false;
GVAR(busy) = false;
@@ -464,7 +464,7 @@ GVAR(menuRun) = true;
if (GVAR(F3)) then {
if (!GVAR(busy)) then {
GVAR(busy) = true;
- GVAR(busyTimer) = ACE_time;
+ GVAR(busyTimer) = CBA_missionTime;
} else {
(__dsp displayCtrl __F1) ctrlSetText "Save";
(__dsp displayCtrl __F2) ctrlSetText "Vector";
@@ -472,7 +472,7 @@ GVAR(menuRun) = true;
GVAR(output) = str GVAR(digit1) + str GVAR(digit2) + str GVAR(digit3) + str GVAR(digit4) + str GVAR(digit5) + str GVAR(digit6) + str GVAR(digit7) + str GVAR(digit8);
(__dsp displayCtrl __mainText) ctrlSetText GVAR(output);
};
- if (ACE_time - GVAR(busyTimer) > 0.1) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 0.1) then {
GVAR(add) = false;
GVAR(edit) = false;
GVAR(busy) = false;
@@ -507,21 +507,21 @@ GVAR(menuRun) = true;
case "connect": {
if (!GVAR(busy)) then {
(__dsp displayCtrl __Option0) ctrlSetText "Vector 21";
- (__dsp displayCtrl __Selection0) ctrlSetText QUOTE(PATHTOF(UI\DAGR_Selection.paa));
+ (__dsp displayCtrl __Selection0) ctrlSetText QPATHTOF(UI\DAGR_Selection.paa);
};
if (GVAR(SEL)) then {
if (!GVAR(busy)) then {
GVAR(busy) = true;
- GVAR(busyTimer) = ACE_time;
+ GVAR(busyTimer) = CBA_missionTime;
};
(__dsp displayCtrl __mainText) ctrlSetText "Connecting.";
- if (ACE_time - GVAR(busyTimer) > 0.2) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 0.2) then {
(__dsp displayCtrl __mainText) ctrlSetText "Connecting..";
};
- if (ACE_time - GVAR(busyTimer) > 0.4) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 0.4) then {
(__dsp displayCtrl __mainText) ctrlSetText "Connecting...";
};
- if (ACE_time - GVAR(busyTimer) > 0.6) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 0.6) then {
if (({_x isKindOf ["ACE_Vector", configFile >> "CfgWeapons"]} count (weapons ACE_player)) > 0) then {
GVAR(displaySelection) = "VECTOR";
(__dsp displayCtrl __mainText) ctrlSetText "Vector Connected";
@@ -531,7 +531,7 @@ GVAR(menuRun) = true;
GVAR(vectorConnected) = false;
};
};
- if (ACE_time - GVAR(busyTimer) > 3.1) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 3.1) then {
GVAR(busy) = false;
if (GVAR(vectorConnected)) then {
GVAR(menu) = "main"; GVAR(numSelections) = 5;
@@ -542,7 +542,7 @@ GVAR(menuRun) = true;
case "options": {
(__dsp displayCtrl __Option0) ctrlSetText "Signal Delay";
(__dsp displayCtrl __Option1) ctrlSetText (if (GVAR(useDegrees)) then { "Direction: Deg" } else { "Direction: MIL" });
- (__dsp displayCtrl (__Selection0 + GVAR(selection))) ctrlSetText QUOTE(PATHTOF(UI\DAGR_Selection.paa));
+ (__dsp displayCtrl (__Selection0 + GVAR(selection))) ctrlSetText QPATHTOF(UI\DAGR_Selection.paa);
if (GVAR(SEL)) then {
GVAR(vectorConnected) = false;
switch (GVAR(selection)) do {
@@ -556,19 +556,19 @@ GVAR(menuRun) = true;
GVAR(updateInterval) = GVAR(tmpUpdateRate);
if (!GVAR(busy)) then {
GVAR(busy) = true;
- GVAR(busyTimer) = ACE_time;
+ GVAR(busyTimer) = CBA_missionTime;
};
(__dsp displayCtrl __mainText) ctrlSetText "Updating.";
- if (ACE_time - GVAR(busyTimer) > 0.2) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 0.2) then {
(__dsp displayCtrl __mainText) ctrlSetText "Updating..";
};
- if (ACE_time - GVAR(busyTimer) > 0.4) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 0.4) then {
(__dsp displayCtrl __mainText) ctrlSetText "Updating...";
};
- if (ACE_time - GVAR(busyTimer) > 0.6) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 0.6) then {
(__dsp displayCtrl __mainText) ctrlSetText "Update Success";
};
- if (ACE_time - GVAR(busyTimer) > 2.1) then {
+ if (CBA_missionTime - GVAR(busyTimer) > 2.1) then {
GVAR(busy) = false;
GVAR(menu) = "options"; GVAR(numSelections) = 2;
};
diff --git a/addons/dagr/functions/fnc_outputData.sqf b/addons/dagr/functions/fnc_outputData.sqf
index 63350c71a3..a981514e54 100644
--- a/addons/dagr/functions/fnc_outputData.sqf
+++ b/addons/dagr/functions/fnc_outputData.sqf
@@ -25,7 +25,7 @@
#define __timeControl (__display displayCtrl 266855)
#define __background (__display displayCtrl 266856)
-__background ctrlSetText QUOTE(PATHTOF(UI\dagr_gps.paa));
+__background ctrlSetText QPATHTOF(UI\dagr_gps.paa);
if (GVAR(outputPFH) != -1) exitWith {};
diff --git a/addons/dagr/functions/fnc_outputVector.sqf b/addons/dagr/functions/fnc_outputVector.sqf
index ef93a53d8a..23996c46b4 100644
--- a/addons/dagr/functions/fnc_outputVector.sqf
+++ b/addons/dagr/functions/fnc_outputVector.sqf
@@ -27,7 +27,7 @@ private ["_xGrid", "_yGrid", "_dagrGrid", "_bearing", "_dagrDist", "_dagrElevati
#define __timeControl (__display displayCtrl 266855)
#define __background (__display displayCtrl 266856)
-__background ctrlSetText QUOTE(PATHTOF(UI\dagr_vector.paa));
+__background ctrlSetText QPATHTOF(UI\dagr_vector.paa);
if (GVAR(noVectorData)) exitWith {};
GVAR(LAZPOS) params ["_lazPosX", "_lazPosY", "_lazPosZ"];
diff --git a/addons/dagr/functions/fnc_outputWP.sqf b/addons/dagr/functions/fnc_outputWP.sqf
index 204a5ef556..2d1aee4d4e 100644
--- a/addons/dagr/functions/fnc_outputWP.sqf
+++ b/addons/dagr/functions/fnc_outputWP.sqf
@@ -25,7 +25,7 @@
#define __timeControl (__display displayCtrl 266859)
#define __background (__display displayCtrl 266856)
-__background ctrlSetText QUOTE(PATHTOF(UI\dagr_wp.paa));
+__background ctrlSetText QPATHTOF(UI\dagr_wp.paa);
if (GVAR(outputPFH) != -1) exitWith {};
diff --git a/addons/dagr/initKeybinds.sqf b/addons/dagr/initKeybinds.sqf
index 1a2f25ac4d..74a522e87f 100644
--- a/addons/dagr/initKeybinds.sqf
+++ b/addons/dagr/initKeybinds.sqf
@@ -56,4 +56,4 @@ _closeCode = {
closeDialog 0;
};
};
-["DAGR", QUOTE(PATHTOF(UI\DAGR_Icon.paa)), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
+["DAGR", QPATHTOF(UI\DAGR_Icon.paa), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
diff --git a/addons/disarming/CfgVehicles.hpp b/addons/disarming/CfgVehicles.hpp
index b4a1a4c7dd..1d04bb157c 100644
--- a/addons/disarming/CfgVehicles.hpp
+++ b/addons/disarming/CfgVehicles.hpp
@@ -8,7 +8,7 @@ class CfgVehicles {
distance = 3.5;
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canPlayerDisarmUnit));
statement = QUOTE([ARR_2(_player,_target)] call FUNC(openDisarmDialog));
- icon = PATHTOF(UI\disarm.paa);
+ icon = QPATHTOF(UI\disarm.paa);
exceptions[] = {};
};
};
diff --git a/addons/disarming/CfgWeapons.hpp b/addons/disarming/CfgWeapons.hpp
index 404ef4aa76..4e7122ba41 100644
--- a/addons/disarming/CfgWeapons.hpp
+++ b/addons/disarming/CfgWeapons.hpp
@@ -5,7 +5,7 @@ class CfgWeapons {
class ACE_DebugPotato: ACE_ItemCore {
displayName = "ACE Potato (debug)";
descriptionShort = "Glorious Potato
If you see this in game it means someone fucked up";
- picture = QUOTE(PATHTOF(UI\potato_ca.paa));
+ picture = QPATHTOF(UI\potato_ca.paa);
scope = 1;
class ItemInfo: InventoryItem_Base_F {
mass = 1;
diff --git a/addons/disarming/config.cpp b/addons/disarming/config.cpp
index 00f8204b09..6bf3397106 100644
--- a/addons/disarming/config.cpp
+++ b/addons/disarming/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_DebugPotato"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ACE_Interaction"};
- author[] = {"PabstMirror"};
- authorUrl = "https://github.com/PabstMirror/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"PabstMirror"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/disarming/functions/fnc_disarmDropItems.sqf b/addons/disarming/functions/fnc_disarmDropItems.sqf
index be2f932028..c9eb920084 100644
--- a/addons/disarming/functions/fnc_disarmDropItems.sqf
+++ b/addons/disarming/functions/fnc_disarmDropItems.sqf
@@ -67,7 +67,7 @@ if (isNull _holder) exitWith {
if (_holder getVariable [QGVAR(holderInUse), false]) exitWith {
[{
_this call FUNC(disarmDropItems);
- }, _this] call EFUNC(common,execNextFrame);
+ }, _this] call CBA_fnc_execNextFrame;
};
_holder setVariable [QGVAR(holderInUse), true];
@@ -177,7 +177,7 @@ if (_holderIsEmpty) then {
_needToRemoveVest = ((vest _target) != "") && {(vest _target) in _listOfItemsToRemove};
_needToRemoveUniform = ((uniform _target) != "") && {(uniform _target) in _listOfItemsToRemove};
- if ((ACE_time < _maxWaitTime) && {[_target] call FUNC(canBeDisarmed)} && {_needToRemoveWeapon || _needToRemoveMagazines || _needToRemoveBackpack}) then {
+ if ((CBA_missionTime < _maxWaitTime) && {[_target] call FUNC(canBeDisarmed)} && {_needToRemoveWeapon || _needToRemoveMagazines || _needToRemoveBackpack}) then {
//action drop weapons (keeps loaded magazine and attachements)
{
if (_x in _listOfItemsToRemove) then {
@@ -233,7 +233,7 @@ if (_holderIsEmpty) then {
clearItemCargoGlobal _holder;
};
//Verify we didn't timeout waiting on drop action
- if (ACE_time >= _maxWaitTime) exitWith {
+ if (CBA_missionTime >= _maxWaitTime) exitWith {
_holder setVariable [QGVAR(holderInUse), false];
[_caller, _target, "Debug: Drop Actions Timeout"] call FUNC(eventTargetFinish);
};
@@ -263,4 +263,4 @@ if (_holderIsEmpty) then {
[_caller, _target, ""] call FUNC(eventTargetFinish);
};
-}, 0.0, [_caller,_target, _listOfItemsToRemove, _holder, _holderIsEmpty, (ACE_time + TIME_MAX_WAIT), _doNotDropAmmo, _targetMagazinesEnd]] call CBA_fnc_addPerFrameHandler;
+}, 0.0, [_caller,_target, _listOfItemsToRemove, _holder, _holderIsEmpty, (CBA_missionTime + TIME_MAX_WAIT), _doNotDropAmmo, _targetMagazinesEnd]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/disarming/functions/fnc_eventCallerFinish.sqf b/addons/disarming/functions/fnc_eventCallerFinish.sqf
index e1376f4052..bf1daee2f0 100644
--- a/addons/disarming/functions/fnc_eventCallerFinish.sqf
+++ b/addons/disarming/functions/fnc_eventCallerFinish.sqf
@@ -23,4 +23,4 @@ params ["_caller", "_target", "_errorMsg"];
if (_caller != ACE_player) exitWith {};
systemChat format ["Debug-Caller: Disarm finished from [%1] with code [%2]", _target, _errorMsg];
-ACE_LOGINFO_2("%1 - eventCallerFinish: %2",ACE_time,_this);
+ACE_LOGINFO_2("%1 - eventCallerFinish: %2",CBA_missionTime,_this);
diff --git a/addons/disarming/functions/fnc_eventTargetFinish.sqf b/addons/disarming/functions/fnc_eventTargetFinish.sqf
index b7364a8f40..9af811adc7 100644
--- a/addons/disarming/functions/fnc_eventTargetFinish.sqf
+++ b/addons/disarming/functions/fnc_eventTargetFinish.sqf
@@ -22,6 +22,6 @@
params ["_caller", "_target", "_errorMsg"];
if (_errorMsg != "") then {
- ACE_LOGINFO_2("%1 - eventTargetFinish: %2",ACE_time,_this);
+ ACE_LOGINFO_2("%1 - eventTargetFinish: %2",CBA_missionTime,_this);
["DisarmDebugCallback", [_caller], [_caller, _target, _errorMsg]] call EFUNC(common,targetEvent);
};
diff --git a/addons/disposable/CfgMagazines.hpp b/addons/disposable/CfgMagazines.hpp
index d26d5ecea2..d9ad0508db 100644
--- a/addons/disposable/CfgMagazines.hpp
+++ b/addons/disposable/CfgMagazines.hpp
@@ -5,7 +5,7 @@ class CfgMagazines {
scope = 1;
scopeArsenal = 1;
displayName = CSTRING(PreloadedMissileDummy);
- picture = PATHTOEF(common,UI\blank_CO.paa);
+ picture = QPATHTOEF(common,UI\blank_CO.paa);
weaponPoolAvailable = 0;
mass = 0;
};
diff --git a/addons/disposable/config.cpp b/addons/disposable/config.cpp
index 0f256824d7..e240206938 100644
--- a/addons/disposable/config.cpp
+++ b/addons/disposable/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/dragging/CfgVehicles.hpp b/addons/dragging/CfgVehicles.hpp
index 1529d39319..ba4ff87186 100644
--- a/addons/dragging/CfgVehicles.hpp
+++ b/addons/dragging/CfgVehicles.hpp
@@ -19,12 +19,6 @@ class CfgVehicles {
GVAR(canDrag) = 0;
};
- //remove actions from Taru Pods
- class Pod_Heli_Transport_04_base_F: StaticWeapon {
- GVAR(canCarry) = 0;
- GVAR(canDrag) = 0;
- };
-
class StaticMortar;
class Mortar_01_base_F: StaticMortar {
GVAR(canCarry) = 1;
@@ -53,6 +47,11 @@ class CfgVehicles {
GVAR(canCarry) = 0;
GVAR(canDrag) = 0;
};
+ //remove actions from Taru Pods
+ class Pod_Heli_Transport_04_base_F: Slingload_base_F {
+ GVAR(canCarry) = 0;
+ GVAR(canDrag) = 0;
+ };
class EAST_Box_Base: ReammoBox_F {
GVAR(canCarry) = 1;
diff --git a/addons/dragging/config.cpp b/addons/dragging/config.cpp
index 0c9cfb3c43..a3e87c5824 100644
--- a/addons/dragging/config.cpp
+++ b/addons/dragging/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"Garth 'L-H' de Wet", "commy2"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Garth 'L-H' de Wet", "commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/dragging/functions/fnc_carryObject.sqf b/addons/dragging/functions/fnc_carryObject.sqf
index ec00693825..2624bbf05c 100644
--- a/addons/dragging/functions/fnc_carryObject.sqf
+++ b/addons/dragging/functions/fnc_carryObject.sqf
@@ -64,7 +64,7 @@ if (_target isKindOf "CAManBase") then {
};
// check everything
-[FUNC(carryObjectPFH), 0.5, [_unit, _target, ACE_time]] call CBA_fnc_addPerFrameHandler;
+[FUNC(carryObjectPFH), 0.5, [_unit, _target, CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
// reset current dragging height.
GVAR(currentHeightChange) = 0;
diff --git a/addons/dragging/functions/fnc_carryObjectPFH.sqf b/addons/dragging/functions/fnc_carryObjectPFH.sqf
index 948af15891..963921efa7 100644
--- a/addons/dragging/functions/fnc_carryObjectPFH.sqf
+++ b/addons/dragging/functions/fnc_carryObjectPFH.sqf
@@ -20,7 +20,7 @@
#include "script_component.hpp"
#ifdef DEBUG_ENABLED_DRAGGING
- systemChat format ["%1 carryObjectPFH running", ACE_time];
+ systemChat format ["%1 carryObjectPFH running", CBA_missionTime];
#endif
params ["_args", "_idPFH"];
@@ -34,10 +34,10 @@ if !(_unit getVariable [QGVAR(isCarrying), false]) exitWith {
// drop if the crate is destroyed OR (target moved away from carrier (weapon disasembled))
if (!alive _target || {_unit distance _target > 10}) then {
TRACE_2("dead/distance",_unit,_target);
- if ((_unit distance _target > 10) && {(ACE_time - _startTime) < 1}) exitWith {
+ if ((_unit distance _target > 10) && {(CBA_missionTime - _startTime) < 1}) exitWith {
//attachTo seems to have some kind of network delay and target can return an odd position durring the first few frames,
//so wait a full second to exit if out of range (this is critical as we would otherwise detach and set it's pos to weird pos)
- TRACE_3("ignoring bad distance at start",_unit distance _target,_startTime,ACE_time);
+ TRACE_3("ignoring bad distance at start",_unit distance _target,_startTime,CBA_missionTime);
};
[_unit, _target] call FUNC(dropObject_carry);
[_idPFH] call CBA_fnc_removePerFrameHandler;
diff --git a/addons/dragging/functions/fnc_dragObject.sqf b/addons/dragging/functions/fnc_dragObject.sqf
index 3237ddbb07..751baccf06 100644
--- a/addons/dragging/functions/fnc_dragObject.sqf
+++ b/addons/dragging/functions/fnc_dragObject.sqf
@@ -53,7 +53,7 @@ _unit setVariable [QGVAR(ReleaseActionID), [
[localize LSTRING(Drop), ""] call EFUNC(interaction,showMouseHint);
// check everything
-[FUNC(dragObjectPFH), 0.5, [_unit, _target, ACE_time]] call CBA_fnc_addPerFrameHandler;
+[FUNC(dragObjectPFH), 0.5, [_unit, _target, CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
// reset current dragging height.
GVAR(currentHeightChange) = 0;
diff --git a/addons/dragging/functions/fnc_dragObjectPFH.sqf b/addons/dragging/functions/fnc_dragObjectPFH.sqf
index ab117e90fd..08aeba738b 100644
--- a/addons/dragging/functions/fnc_dragObjectPFH.sqf
+++ b/addons/dragging/functions/fnc_dragObjectPFH.sqf
@@ -20,7 +20,7 @@
#include "script_component.hpp"
#ifdef DEBUG_ENABLED_DRAGGING
- systemChat format ["%1 dragObjectPFH running", ACE_time];
+ systemChat format ["%1 dragObjectPFH running", CBA_missionTime];
#endif
params ["_args", "_idPFH"];
@@ -34,10 +34,10 @@ if !(_unit getVariable [QGVAR(isDragging), false]) exitWith {
// drop if the crate is destroyed OR (target moved away from carrier (weapon disasembled))
if (!alive _target || {_unit distance _target > 10}) then {
TRACE_2("dead/distance",_unit,_target);
- if ((_unit distance _target > 10) && {(ACE_time - _startTime) < 1}) exitWith {
+ if ((_unit distance _target > 10) && {(CBA_missionTime - _startTime) < 1}) exitWith {
//attachTo seems to have some kind of network delay and target can return an odd position durring the first few frames,
//so wait a full second to exit if out of range (this is critical as we would otherwise detach and set it's pos to weird pos)
- TRACE_3("ignoring bad distance at start",_unit distance _target,_startTime,ACE_time);
+ TRACE_3("ignoring bad distance at start",_unit distance _target,_startTime,CBA_missionTime);
};
[_unit, _target] call FUNC(dropObject);
[_idPFH] call CBA_fnc_removePerFrameHandler;
diff --git a/addons/dragging/functions/fnc_startCarry.sqf b/addons/dragging/functions/fnc_startCarry.sqf
index fd528b0104..1890dbac1a 100644
--- a/addons/dragging/functions/fnc_startCarry.sqf
+++ b/addons/dragging/functions/fnc_startCarry.sqf
@@ -26,7 +26,7 @@ if (_weight > missionNamespace getVariable ["ACE_maxWeightCarry", 1E11]) exitWit
[localize LSTRING(UnableToDrag)] call EFUNC(common,displayTextStructured);
};
-private _timer = ACE_time + 5;
+private _timer = CBA_missionTime + 5;
// handle objects vs persons
if (_target isKindOf "CAManBase") then {
@@ -46,7 +46,7 @@ if (_target isKindOf "CAManBase") then {
[_unit, "AcinPknlMstpSnonWnonDnon_AcinPercMrunSnonWnonDnon", 2, true] call EFUNC(common,doAnimation);
[_target, "AinjPfalMstpSnonWrflDnon_carried_Up", 2, true] call EFUNC(common,doAnimation);
- _timer = ACE_time + 15;
+ _timer = CBA_missionTime + 15;
} else {
diff --git a/addons/dragging/functions/fnc_startCarryPFH.sqf b/addons/dragging/functions/fnc_startCarryPFH.sqf
index 4d39672a9e..007469d960 100644
--- a/addons/dragging/functions/fnc_startCarryPFH.sqf
+++ b/addons/dragging/functions/fnc_startCarryPFH.sqf
@@ -20,7 +20,7 @@
#include "script_component.hpp"
#ifdef DEBUG_ENABLED_DRAGGING
- systemChat format ["%1 startCarryPFH running", ACE_time];
+ systemChat format ["%1 startCarryPFH running", CBA_missionTime];
#endif
params ["_args", "_idPFH"];
@@ -28,28 +28,28 @@ _args params ["_unit", "_target", "_timeOut"];
// handle aborting carry
if !(_unit getVariable [QGVAR(isCarrying), false]) exitWith {
- TRACE_4("carry false",_unit,_target,_timeOut,ACE_time);
+ TRACE_4("carry false",_unit,_target,_timeOut,CBA_missionTime);
[_idPFH] call CBA_fnc_removePerFrameHandler;
};
// same as dragObjectPFH, checks if object is deleted or dead OR (target moved away from carrier (weapon disasembled))
if (!alive _target || {_unit distance _target > 10}) then {
- TRACE_4("dead/distance",_unit,_target,_timeOut,ACE_time);
+ TRACE_4("dead/distance",_unit,_target,_timeOut,CBA_missionTime);
[_unit, _target] call FUNC(dropObject);
[_idPFH] call CBA_fnc_removePerFrameHandler;
};
// handle persons vs objects
if (_target isKindOf "CAManBase") then {
- if (ACE_time > _timeOut) exitWith {
- TRACE_4("Start carry person",_unit,_target,_timeOut,ACE_time);
+ if (CBA_missionTime > _timeOut) exitWith {
+ TRACE_4("Start carry person",_unit,_target,_timeOut,CBA_missionTime);
[_unit, _target] call FUNC(carryObject);
[_idPFH] call CBA_fnc_removePerFrameHandler;
};
} else {
- if (ACE_time > _timeOut) exitWith {
- TRACE_4("timeout",_unit,_target,_timeOut,ACE_time);
+ if (CBA_missionTime > _timeOut) exitWith {
+ TRACE_4("timeout",_unit,_target,_timeOut,CBA_missionTime);
[_idPFH] call CBA_fnc_removePerFrameHandler;
// drop if in timeout
@@ -59,7 +59,7 @@ if (_target isKindOf "CAManBase") then {
// wait for the unit to stand up
if (stance _unit == "STAND") exitWith {
- TRACE_4("Start carry object",_unit,_target,_timeOut,ACE_time);
+ TRACE_4("Start carry object",_unit,_target,_timeOut,CBA_missionTime);
[_unit, _target] call FUNC(carryObject);
[_idPFH] call CBA_fnc_removePerFrameHandler;
diff --git a/addons/dragging/functions/fnc_startDrag.sqf b/addons/dragging/functions/fnc_startDrag.sqf
index 24a279e7a7..8c46fbe122 100644
--- a/addons/dragging/functions/fnc_startDrag.sqf
+++ b/addons/dragging/functions/fnc_startDrag.sqf
@@ -39,7 +39,7 @@ _unit selectWeapon primaryWeapon _unit;
[_unit, _target, true] call EFUNC(common,claim);
// can't play action that depends on weapon if it was added the same frame
-[{_this playActionNow "grabDrag";}, _unit] call EFUNC(common,execNextFrame);
+[{_this playActionNow "grabDrag";}, _unit] call CBA_fnc_execNextFrame;
// move a bit closer and adjust direction when trying to pick up a person
if (_target isKindOf "CAManBase") then {
@@ -52,4 +52,4 @@ if (_target isKindOf "CAManBase") then {
// prevents draging and carrying at the same time
_unit setVariable [QGVAR(isDragging), true, true];
-[FUNC(startDragPFH), 0.2, [_unit, _target, ACE_time + 5]] call CBA_fnc_addPerFrameHandler;
+[FUNC(startDragPFH), 0.2, [_unit, _target, CBA_missionTime + 5]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/dragging/functions/fnc_startDragPFH.sqf b/addons/dragging/functions/fnc_startDragPFH.sqf
index cfa84fe279..c7843cfdc9 100644
--- a/addons/dragging/functions/fnc_startDragPFH.sqf
+++ b/addons/dragging/functions/fnc_startDragPFH.sqf
@@ -20,7 +20,7 @@
#include "script_component.hpp"
#ifdef DEBUG_ENABLED_DRAGGING
- systemChat format ["%1 startDragPFH running", ACE_time];
+ systemChat format ["%1 startDragPFH running", CBA_missionTime];
#endif
params ["_args", "_idPFH"];
@@ -28,20 +28,20 @@ _args params ["_unit", "_target", "_timeOut"];
// handle aborting drag
if !(_unit getVariable [QGVAR(isDragging), false]) exitWith {
- TRACE_4("drag false",_unit,_target,_timeOut,ACE_time);
+ TRACE_4("drag false",_unit,_target,_timeOut,CBA_missionTime);
[_idPFH] call CBA_fnc_removePerFrameHandler;
};
// same as dragObjectPFH, checks if object is deleted or dead OR (target moved away from carrier (weapon disasembled))
if (!alive _target || {_unit distance _target > 10}) then {
- TRACE_4("dead/distance",_unit,_target,_timeOut,ACE_time);
+ TRACE_4("dead/distance",_unit,_target,_timeOut,CBA_missionTime);
[_unit, _target] call FUNC(dropObject);
[_idPFH] call CBA_fnc_removePerFrameHandler;
};
-// timeout. Do nothing. Quit. ACE_time, because anim length is linked to ingame time.
-if (ACE_time > _timeOut) exitWith {
- TRACE_4("timeout",_unit,_target,_timeOut,ACE_time);
+// timeout. Do nothing. Quit. CBA_missionTime, because anim length is linked to ingame time.
+if (CBA_missionTime > _timeOut) exitWith {
+ TRACE_4("timeout",_unit,_target,_timeOut,CBA_missionTime);
[_idPFH] call CBA_fnc_removePerFrameHandler;
// drop if in timeout
@@ -51,7 +51,7 @@ if (ACE_time > _timeOut) exitWith {
// unit is ready to start dragging
if (animationState _unit in DRAG_ANIMATIONS) exitWith {
- TRACE_4("Start Dragging",_unit,_target,_timeOut,ACE_time);
+ TRACE_4("Start Dragging",_unit,_target,_timeOut,CBA_missionTime);
[_unit, _target] call FUNC(dragObject);
[_idPFH] call CBA_fnc_removePerFrameHandler;
diff --git a/addons/explosives/ACE_Triggers.hpp b/addons/explosives/ACE_Triggers.hpp
index 280906432f..145ae0804e 100644
--- a/addons/explosives/ACE_Triggers.hpp
+++ b/addons/explosives/ACE_Triggers.hpp
@@ -11,52 +11,52 @@ onSetup parameters:
class Command {
isAttachable = 1;
displayName = CSTRING(clacker_displayName);
- picture = PATHTOF(Data\UI\Clacker.paa);
+ picture = QPATHTOF(Data\UI\Clacker.paa);
onPlace = QUOTE(_this call FUNC(AddClacker);false);
requires[] = {"ACE_Clacker"};
};
class MK16_Transmitter: Command {
isAttachable = 1;
displayName = CSTRING(M152_displayName);
- picture = PATHTOF(Data\UI\MK16_Reciever_ca.paa);
+ picture = QPATHTOF(Data\UI\MK16_Reciever_ca.paa);
requires[] = {"ACE_M26_Clacker"};
};
class DeadManSwitch: Command {
isAttachable = 1;
displayName = CSTRING(DeadManSwitch_displayName);
- picture = PATHTOF(Data\UI\DeadmanSwitch.paa);
+ picture = QPATHTOF(Data\UI\DeadmanSwitch.paa);
requires[] = {"ACE_DeadManSwitch"};
};
class Cellphone: Command {
isAttachable = 1;
displayName = CSTRING(cellphone_displayName);
- picture = PATHTOF(Data\UI\Cellphone_UI.paa);
+ picture = QPATHTOF(Data\UI\Cellphone_UI.paa);
onPlace = QUOTE(_this call FUNC(addCellphoneIED);false);
requires[] = {"ACE_Cellphone"};
};
class PressurePlate {
isAttachable = 0;
displayName = CSTRING(PressurePlate);
- picture = PATHTOF(Data\UI\PressurePlate.paa);
+ picture = QPATHTOF(Data\UI\PressurePlate.paa);
onPlace = QUOTE(false);
};
class IRSensor {
isAttachable = 0;
displayName = CSTRING(IRSensor);
- picture = PATHTOF(Data\UI\PressurePlate.paa);
+ picture = QPATHTOF(Data\UI\PressurePlate.paa);
onPlace = "false";
};
class Timer {
isAttachable = 1;
displayName = CSTRING(timerName);
- picture = PATHTOF(data\UI\Timer.paa);
+ picture = QPATHTOF(data\UI\Timer.paa);
onPlace = QUOTE([ARR_2(_this select 1,(_this select 3) select 0)] call FUNC(startTimer);false);
onSetup = QUOTE(_this call FUNC(openTimerSetUI);true);
};
class Tripwire {
isAttachable = 0;
displayName = CSTRING(TripWire);
- picture = PATHTOF(Data\UI\Tripwire.paa);
+ picture = QPATHTOF(Data\UI\Tripwire.paa);
onPlace = "false";
};
};
diff --git a/addons/explosives/CfgModule.hpp b/addons/explosives/CfgModule.hpp
index b651903f59..a4e0d8dbd2 100644
--- a/addons/explosives/CfgModule.hpp
+++ b/addons/explosives/CfgModule.hpp
@@ -3,11 +3,11 @@ class ACE_ModuleExplosive: ACE_Module {
author = ECSTRING(common,ACETeam);
category = "ACE";
displayName = CSTRING(Module_DisplayName);
- function = QUOTE(FUNC(module));
+ function = QFUNC(module);
scope = 2;
isGlobal = 1;
isSingular = 1;
- icon = PATHTOF(UI\Icon_Module_Explosives_ca.paa);
+ icon = QPATHTOF(UI\Icon_Module_Explosives_ca.paa);
class Arguments {
class RequireSpecialist {
displayName = CSTRING(RequireSpecialist_DisplayName);
diff --git a/addons/explosives/CfgVehicles.hpp b/addons/explosives/CfgVehicles.hpp
index 3db6546208..68d0ac1427 100644
--- a/addons/explosives/CfgVehicles.hpp
+++ b/addons/explosives/CfgVehicles.hpp
@@ -12,7 +12,7 @@ class CfgVehicles {
exceptions[] = {"isNotSwimming", "isNotInside", "isNotSitting"};
showDisabled = 1;
priority = 4;
- icon = PATHTOF(UI\Explosives_Menu_ca.paa);
+ icon = QPATHTOF(UI\Explosives_Menu_ca.paa);
insertChildren = QUOTE([_player] call FUNC(addTransmitterActions););
//Sub-menu items
class ACE_Place {
@@ -22,7 +22,7 @@ class CfgVehicles {
insertChildren = QUOTE([_player] call FUNC(addExplosiveActions););
exceptions[] = {"isNotSwimming"};
showDisabled = 1;
- icon = PATHTOF(UI\Place_Explosive_ca.paa);
+ icon = QPATHTOF(UI\Place_Explosive_ca.paa);
priority = 1;
};
class ACE_Cellphone {
@@ -31,7 +31,7 @@ class CfgVehicles {
statement = "closeDialog 0;createDialog 'Rsc_ACE_PhoneInterface';";
exceptions[] = {"isNotSwimming", "isNotInside", "isNotSitting"};
showDisabled = 0;
- icon = PATHTOF(Data\UI\Cellphone_UI.paa);
+ icon = QPATHTOF(Data\UI\Cellphone_UI.paa);
priority = 0.8;
};
};
@@ -63,7 +63,7 @@ class CfgVehicles {
statement = QUOTE([ARR_2(_player,_target)] call FUNC(startDefuse););
exceptions[] = {"isNotSwimming"};
showDisabled = 0;
- icon = PATHTOF(UI\Defuse_ca.paa);
+ icon = QPATHTOF(UI\Defuse_ca.paa);
priority = 0.8;
};
};
@@ -96,7 +96,7 @@ class CfgVehicles {
showDisabled = 0;
exceptions[] = {"isNotSwimming"};
priority = 5;
- icon = QUOTE(PATHTOF(UI\Explosives_Menu_ca.paa));
+ icon = QPATHTOF(UI\Explosives_Menu_ca.paa);
};
class ACE_PickUp {
selection = "";
diff --git a/addons/explosives/CfgWeapons.hpp b/addons/explosives/CfgWeapons.hpp
index cd900b2da3..a3f3b32d4c 100644
--- a/addons/explosives/CfgWeapons.hpp
+++ b/addons/explosives/CfgWeapons.hpp
@@ -11,8 +11,8 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(clacker_displayName);
descriptionShort = CSTRING(clacker_description);
- picture = PATHTOF(Data\UI\Clacker.paa);
- model = QUOTE(PATHTOF(data\ace_m57.p3d));
+ picture = QPATHTOF(Data\UI\Clacker.paa);
+ model = QPATHTOF(data\ace_m57.p3d);
GVAR(Range) = 250;
GVAR(Detonator) = 1;
GVAR(triggerType) = "Command";
@@ -24,7 +24,7 @@ class CfgWeapons {
};
class ACE_M26_Clacker: ACE_Clacker {
displayName = CSTRING(M152_Clacker_displayName);
- picture = PATHTOF(Data\UI\MK26_Transmitter_ca.paa);
+ picture = QPATHTOF(Data\UI\MK26_Transmitter_ca.paa);
GVAR(Range) = 5000;
GVAR(triggerType) = "MK16_Transmitter";
};
@@ -32,7 +32,7 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(DefusalKit_displayName);
descriptionShort = CSTRING(DefusalKit_description);
- picture = PATHTOF(Data\UI\Pliers.paa);
+ picture = QPATHTOF(Data\UI\Pliers.paa);
model = "\A3\Structures_F\Items\Tools\Pliers_F.p3d";
class ItemInfo: ACE_ExplosiveItem {
@@ -44,7 +44,7 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(DeadManSwitch_displayName);
descriptionShort = CSTRING(DeadManSwitch_description);
- picture = PATHTOF(Data\UI\DeadmanSwitch.paa);
+ picture = QPATHTOF(Data\UI\DeadmanSwitch.paa);
model = "\A3\weapons_F\ammo\mag_univ.p3d";
GVAR(Range) = 100;
GVAR(Detonator) = 1;
@@ -59,7 +59,7 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(cellphone_displayName);
descriptionShort = CSTRING(cellphone_description);
- picture = PATHTOF(Data\UI\Cellphone_UI.paa);
+ picture = QPATHTOF(Data\UI\Cellphone_UI.paa);
model = "\A3\weapons_F\ammo\mag_univ.p3d";
GVAR(Range) = 15000;
GVAR(Detonator) = 1;
diff --git a/addons/explosives/ExplosivesUI.hpp b/addons/explosives/ExplosivesUI.hpp
index 45582a8564..cf97794d8f 100644
--- a/addons/explosives/ExplosivesUI.hpp
+++ b/addons/explosives/ExplosivesUI.hpp
@@ -113,7 +113,7 @@ class Rsc_ACE_PhoneInterface {
class controls {
class RscPicture_1200: RscPicture {
idc = 1200;
- text = PATHTOF(Data\UI\Cellphone_Background.paa);
+ text = QPATHTOF(Data\UI\Cellphone_Background.paa);
x = 0.231875 * safezoneW + safezoneX;
y = 0.104 * safezoneH + safezoneY;
w = 0.195937 * safezoneW;
diff --git a/addons/explosives/config.cpp b/addons/explosives/config.cpp
index 3fc047fa6a..5eb92848c7 100644
--- a/addons/explosives/config.cpp
+++ b/addons/explosives/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_Clacker", "ACE_DefusalKit", "ACE_M26_Clacker", "ACE_DeadManSwitch", "ACE_Cellphone"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"Garth 'L-H' de Wet"};
- authorUrl = "http://garth.snakebiteink.co.za/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Garth 'L-H' de Wet"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/explosives/functions/fnc_addExplosiveActions.sqf b/addons/explosives/functions/fnc_addExplosiveActions.sqf
index e744af6bce..fc494a5fad 100644
--- a/addons/explosives/functions/fnc_addExplosiveActions.sqf
+++ b/addons/explosives/functions/fnc_addExplosiveActions.sqf
@@ -45,7 +45,7 @@ _children = [];
format ["Explosive_%1", _forEachIndex],
format [_name + " (%1)", _itemCount select _forEachIndex],
getText(_x >> "picture"),
- {[{_this call FUNC(setupExplosive)}, _this] call EFUNC(common,execNextFrame)},
+ {[{_this call FUNC(setupExplosive)}, _this] call CBA_fnc_execNextFrame},
{true},
{},
(configName _x)
diff --git a/addons/explosives/functions/fnc_detonateExplosive.sqf b/addons/explosives/functions/fnc_detonateExplosive.sqf
index a01f181635..b7f4893e52 100644
--- a/addons/explosives/functions/fnc_detonateExplosive.sqf
+++ b/addons/explosives/functions/fnc_detonateExplosive.sqf
@@ -49,6 +49,6 @@ if (getNumber (ConfigFile >> "CfgAmmo" >> typeOf (_item select 0) >> "TriggerWhe
if (!isNull _explosive) then {
_explosive setDamage 1;
};
-}, [_item select 0], (_item select 1)] call EFUNC(common,waitAndExecute);
+}, [_item select 0], (_item select 1)] call CBA_fnc_waitAndExecute;
_result
diff --git a/addons/explosives/functions/fnc_dialPhone.sqf b/addons/explosives/functions/fnc_dialPhone.sqf
index 44addcda9f..6bfeac8595 100644
--- a/addons/explosives/functions/fnc_dialPhone.sqf
+++ b/addons/explosives/functions/fnc_dialPhone.sqf
@@ -40,7 +40,7 @@ if (_unit == ace_player) then {
[{
playSound3D [QUOTE(PATHTO_R(Data\Audio\Cellphone_Ring.wss)),objNull, false, getPosASL (_this select 1),3.16228,1,75];
(_this select 0) setVariable [QGVAR(Dialing), false, true];
- }, [_unit,_explosive select 0], 0.25 * (count _arr - 4)] call EFUNC(common,waitAndExecute);
+ }, [_unit,_explosive select 0], 0.25 * (count _arr - 4)] call CBA_fnc_waitAndExecute;
[_explosive select 0,(0.25 * (count _arr - 1)) + (_explosive select 2)] call FUNC(startTimer);
};
};
diff --git a/addons/explosives/functions/fnc_setupExplosive.sqf b/addons/explosives/functions/fnc_setupExplosive.sqf
index 709ea688d5..6dd1094c6a 100644
--- a/addons/explosives/functions/fnc_setupExplosive.sqf
+++ b/addons/explosives/functions/fnc_setupExplosive.sqf
@@ -187,7 +187,7 @@ GVAR(TweakedAngle) = 0;
_unit removeMagazine _magClassname;
_unit playActionNow "PutDown";
_unit setVariable [QGVAR(PlantingExplosive), true];
- [{_this setVariable [QGVAR(PlantingExplosive), false]}, _unit, 1.5] call EFUNC(common,waitAndExecute);
+ [{_this setVariable [QGVAR(PlantingExplosive), false]}, _unit, 1.5] call CBA_fnc_waitAndExecute;
};
} else {
diff --git a/addons/explosives/functions/fnc_startDefuse.sqf b/addons/explosives/functions/fnc_startDefuse.sqf
index 84d7274069..35333ecc17 100644
--- a/addons/explosives/functions/fnc_startDefuse.sqf
+++ b/addons/explosives/functions/fnc_startDefuse.sqf
@@ -56,7 +56,7 @@ if (ACE_player != _unit) then {
[_unit, _target] call FUNC(defuseExplosive);
_unit enableAI "MOVE";
_unit enableAI "TARGET";
- }, [_unit, _target], _defuseTime] call EFUNC(common,waitAndExecute);
+ }, [_unit, _target], _defuseTime] call CBA_fnc_waitAndExecute;
};
} else {
_unit playActionNow _actionToPlay;
diff --git a/addons/explosives/functions/fnc_startTimer.sqf b/addons/explosives/functions/fnc_startTimer.sqf
index ca219ed13c..1f529d9765 100644
--- a/addons/explosives/functions/fnc_startTimer.sqf
+++ b/addons/explosives/functions/fnc_startTimer.sqf
@@ -25,4 +25,4 @@ TRACE_2("params",_explosive,_delay);
if (!isNull _explosive) then {
[_explosive, -1, [_explosive, 0]] call FUNC(detonateExplosive);
};
-}, [_explosive], _delay] call EFUNC(common,waitAndExecute);
+}, [_explosive], _delay] call CBA_fnc_waitAndExecute;
diff --git a/addons/fastroping/CfgMoves.hpp b/addons/fastroping/CfgMoves.hpp
index 94f3fe51f0..b978539432 100644
--- a/addons/fastroping/CfgMoves.hpp
+++ b/addons/fastroping/CfgMoves.hpp
@@ -9,7 +9,7 @@ class CfgMovesMaleSdr: CfgMovesBasic {
class States {
class Crew;
class ACE_FastRoping: Crew {
- file = QUOTE(PATHTOF(anim\fastroping.rtm));
+ file = QPATHTOF(anim\fastroping.rtm);
interpolateTo[] = {"Unconscious", 1};
disableWeapons = 1;
disableWeaponsLong = 1;
diff --git a/addons/fastroping/CfgVehicles.hpp b/addons/fastroping/CfgVehicles.hpp
index 609e386e68..9d45264853 100644
--- a/addons/fastroping/CfgVehicles.hpp
+++ b/addons/fastroping/CfgVehicles.hpp
@@ -20,9 +20,9 @@ class CfgVehicles {
class ACE_moduleEquipFRIES: ACE_Module {
scope = 2;
displayName = CSTRING(Module_FRIES_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_FRIES_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_FRIES_ca.paa);
category = "ACE";
- function = QUOTE(FUNC(moduleEquipFRIES));
+ function = QFUNC(moduleEquipFRIES);
functionPriority = 10;
isGlobal = 0;
isTriggerActivated = 0;
@@ -81,7 +81,7 @@ class CfgVehicles {
class ACE_friesAnchorBar: ACE_friesBase {
author = "jokoho48";
scope = 1;
- model = QUOTE(PATHTOF(data\friesAnchorBar.p3d));
+ model = QPATHTOF(data\friesAnchorBar.p3d);
animated = 1;
class AnimationSources {
class extendHookRight {
@@ -99,7 +99,7 @@ class CfgVehicles {
class ACE_friesGantry: ACE_friesBase {
author = "jokoho48";
scope = 1;
- model = QUOTE(PATHTOF(data\friesGantry.p3d));
+ model = QPATHTOF(data\friesGantry.p3d);
animated = 1;
class AnimationSources {
class adjustWidth {
@@ -152,7 +152,7 @@ class CfgVehicles {
class GVAR(helper): Helicopter_Base_F {
author = "KoffeinFlummi";
scope = 1;
- model = PATHTOF(data\helper.p3d);
+ model = QPATHTOF(data\helper.p3d);
class ACE_Actions {};
class Turrets {};
};
diff --git a/addons/fastroping/CfgWaypoints.hpp b/addons/fastroping/CfgWaypoints.hpp
index 4c4da2a7cb..f3303c28ff 100644
--- a/addons/fastroping/CfgWaypoints.hpp
+++ b/addons/fastroping/CfgWaypoints.hpp
@@ -4,8 +4,8 @@ class CfgWaypoints {
class Fastrope {
displayName = CSTRING(Waypoint_Fastrope);
displayNameDebug = "Fastrope";
- file = QUOTE(PATHTOF(functions\fnc_deployAIWaypoint.sqf));
- icon = QUOTE(PATHTOF(UI\Icon_Waypoint.paa));
+ file = QPATHTOF(functions\fnc_deployAIWaypoint.sqf);
+ icon = QPATHTOF(UI\Icon_Waypoint.paa);
};
};
};
diff --git a/addons/fastroping/config.cpp b/addons/fastroping/config.cpp
index 7275741f40..c451a1b0dd 100644
--- a/addons/fastroping/config.cpp
+++ b/addons/fastroping/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"KoffeinFlummi", "BaerMitUmlaut"};
- authorUrl = "";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"KoffeinFlummi", "BaerMitUmlaut"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/fastroping/functions/fnc_checkVehicleThread.sqf b/addons/fastroping/functions/fnc_checkVehicleThread.sqf
index 0cd0ca3234..38a2cad8c6 100644
--- a/addons/fastroping/functions/fnc_checkVehicleThread.sqf
+++ b/addons/fastroping/functions/fnc_checkVehicleThread.sqf
@@ -21,5 +21,5 @@ params ["_vehicle", "_fries"];
if (isNull _vehicle) then {
deleteVehicle _fries;
} else {
- [FUNC(checkVehicleThread), _this, 5] call EFUNC(common,waitAndExecute);
+ [FUNC(checkVehicleThread), _this, 5] call CBA_fnc_waitAndExecute;
};
diff --git a/addons/fastroping/functions/fnc_cutRopes.sqf b/addons/fastroping/functions/fnc_cutRopes.sqf
index dcabda56ba..d619a24297 100644
--- a/addons/fastroping/functions/fnc_cutRopes.sqf
+++ b/addons/fastroping/functions/fnc_cutRopes.sqf
@@ -36,7 +36,7 @@ _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 EFUNC(common,waitAndExecute);
+ [{{deleteVehicle _x} count _this}, [_ropeTop, _ropeBottom, _dummy], 60] call CBA_fnc_waitAndExecute;
} count _deployedRopes;
_vehicle setVariable [QGVAR(deployedRopes), [], true];
@@ -50,4 +50,4 @@ if (isText (_config >> QGVAR(onCut))) then {
[{
_this setVariable [QGVAR(deploymentStage), 0, true];
-}, _vehicle, _waitTime] call EFUNC(common,waitAndExecute);
+}, _vehicle, _waitTime] call CBA_fnc_waitAndExecute;
diff --git a/addons/fastroping/functions/fnc_deployAI.sqf b/addons/fastroping/functions/fnc_deployAI.sqf
index dd4bfe4e71..843f23cdb5 100644
--- a/addons/fastroping/functions/fnc_deployAI.sqf
+++ b/addons/fastroping/functions/fnc_deployAI.sqf
@@ -64,7 +64,7 @@ _deployTime = 0;
if (getText (_config >> QGVAR(onPrepare)) != "") then {
_deployTime = [_vehicle] call (missionNamespace getVariable (getText (_config >> QGVAR(onPrepare))));
};
-[{[_this] call FUNC(deployRopes)}, _vehicle, _deployTime] call EFUNC(common,waitAndExecute);
+[{[_this] call FUNC(deployRopes)}, _vehicle, _deployTime] call CBA_fnc_waitAndExecute;
driver _vehicle disableAI "MOVE";
DFUNC(deployAIRecursive) = {
@@ -80,8 +80,8 @@ DFUNC(deployAIRecursive) = {
params ["_vehicle"];
private _deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
({!(_x select 5)} count (_deployedRopes)) > 0
- }, FUNC(deployAIRecursive), _this] call EFUNC(common,waitUntilAndExecute);
- }, [_vehicle, _unitsToDeploy], 1] call EFUNC(common,waitAndExecute);
+ }, FUNC(deployAIRecursive), _this] call CBA_fnc_waitUntilAndExecute;
+ }, [_vehicle, _unitsToDeploy], 1] call CBA_fnc_waitAndExecute;
} else {
[{
private _deployedRopes = _this getVariable [QGVAR(deployedRopes), []];
@@ -89,8 +89,8 @@ DFUNC(deployAIRecursive) = {
}, {
[_this] call FUNC(cutRopes);
driver _this enableAI "MOVE";
- }, _vehicle] call EFUNC(common,waitUntilAndExecute);
+ }, _vehicle] call CBA_fnc_waitUntilAndExecute;
};
};
-[FUNC(deployAIRecursive), [_vehicle, _unitsToDeploy], _deployTime + 4] call EFUNC(common,waitAndExecute);
+[FUNC(deployAIRecursive), [_vehicle, _unitsToDeploy], _deployTime + 4] call CBA_fnc_waitAndExecute;
diff --git a/addons/fastroping/functions/fnc_equipFRIES.sqf b/addons/fastroping/functions/fnc_equipFRIES.sqf
index eaf603f938..6d714611be 100644
--- a/addons/fastroping/functions/fnc_equipFRIES.sqf
+++ b/addons/fastroping/functions/fnc_equipFRIES.sqf
@@ -35,6 +35,6 @@ if !(isNumber (_config >> QGVAR(enabled))) then {
[_vehicle] call FUNC(cutRopes);
};
}];
- [FUNC(checkVehicleThread), [_vehicle, _fries], 5] call EFUNC(common,waitAndExecute);
+ [FUNC(checkVehicleThread), [_vehicle, _fries], 5] call CBA_fnc_waitAndExecute;
};
};
diff --git a/addons/fastroping/functions/fnc_fastRope.sqf b/addons/fastroping/functions/fnc_fastRope.sqf
index 17991c538e..e3bd21482f 100644
--- a/addons/fastroping/functions/fnc_fastRope.sqf
+++ b/addons/fastroping/functions/fnc_fastRope.sqf
@@ -37,4 +37,4 @@ _vehicle setVariable [QGVAR(deployedRopes), _deployedRopes, true];
//Start server PFH asap
[QGVAR(startFastRope), [_unit, _vehicle, _usableRope, _usableRopeIndex, false]] call EFUNC(common,serverEvent);
moveOut _unit;
-[FUNC(fastRopeLocalPFH), 0, [_unit, _vehicle, _usableRope, _usableRopeIndex, ACE_diagTime]] call CBA_fnc_addPerFrameHandler;
+[FUNC(fastRopeLocalPFH), 0, [_unit, _vehicle, _usableRope, _usableRopeIndex, diag_tickTime]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/fastroping/functions/fnc_fastRopeLocalPFH.sqf b/addons/fastroping/functions/fnc_fastRopeLocalPFH.sqf
index 03df460f55..3a1e8d5707 100644
--- a/addons/fastroping/functions/fnc_fastRopeLocalPFH.sqf
+++ b/addons/fastroping/functions/fnc_fastRopeLocalPFH.sqf
@@ -43,7 +43,7 @@ if (isNull attachedTo _unit) exitWith {
[_pfhHandle] call CBA_fnc_removePerFrameHandler;
};
-if (ACE_diagTime > _timeToPlayRopeSound) then {
+if (diag_tickTime > _timeToPlayRopeSound) then {
_arguments set [4, (_timeToPlayRopeSound + 1)];
playSound QGVAR(Rope);
};
diff --git a/addons/fastroping/functions/fnc_onCutCommon.sqf b/addons/fastroping/functions/fnc_onCutCommon.sqf
index 404f94e9d8..004c176b65 100644
--- a/addons/fastroping/functions/fnc_onCutCommon.sqf
+++ b/addons/fastroping/functions/fnc_onCutCommon.sqf
@@ -30,7 +30,7 @@ if !(isNull _fries) then {
_this animate ["dvere1_posunZ", 0];
_this animate ["dvere2_posunZ", 0];
_this setVariable [QGVAR(doorsLocked), false, true];
- }, _vehicle, 2] call EFUNC(common,waitAndExecute);
+ }, _vehicle, 2] call CBA_fnc_waitAndExecute;
4
} else {
diff --git a/addons/fastroping/functions/fnc_onPrepareCommon.sqf b/addons/fastroping/functions/fnc_onPrepareCommon.sqf
index 5e8bf931bb..37eb6c7eb8 100644
--- a/addons/fastroping/functions/fnc_onPrepareCommon.sqf
+++ b/addons/fastroping/functions/fnc_onPrepareCommon.sqf
@@ -35,7 +35,7 @@ if !(isNull _fries) then {
[{
_this animate ["extendHookRight", 1];
_this animate ["extendHookLeft", 1];
- }, _fries, 2] call EFUNC(common,waitAndExecute);
+ }, _fries, 2] call CBA_fnc_waitAndExecute;
_waitTime = 4;
};
diff --git a/addons/fastroping/functions/fnc_prepareFRIES.sqf b/addons/fastroping/functions/fnc_prepareFRIES.sqf
index 4896259014..e4bce8458c 100644
--- a/addons/fastroping/functions/fnc_prepareFRIES.sqf
+++ b/addons/fastroping/functions/fnc_prepareFRIES.sqf
@@ -29,4 +29,4 @@ if (isText (_config >> QGVAR(onPrepare))) then {
[{
_this setVariable [QGVAR(deploymentStage), 2, true];
-}, _vehicle, _waitTime] call EFUNC(common,waitAndExecute);
+}, _vehicle, _waitTime] call CBA_fnc_waitAndExecute;
diff --git a/addons/fcs/ACE_UI.hpp b/addons/fcs/ACE_UI.hpp
new file mode 100644
index 0000000000..ca35779f36
--- /dev/null
+++ b/addons/fcs/ACE_UI.hpp
@@ -0,0 +1,7 @@
+class ACE_UI {
+ class gunnerZeroing {
+ class conditions {
+ ADDON = "false";
+ };
+ };
+};
diff --git a/addons/fcs/config.cpp b/addons/fcs/config.cpp
index 12edf02ba3..a38cee5d7d 100644
--- a/addons/fcs/config.cpp
+++ b/addons/fcs/config.cpp
@@ -6,13 +6,15 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"KoffeinFlummi","BadGuy (simon84)","commy2"};
- authorUrl = "https://github.com/KoffeinFlummi/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"KoffeinFlummi","BadGuy (simon84)","commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
#include "CfgEventHandlers.hpp"
+#include "ACE_UI.hpp"
#include "CfgAmmo.hpp"
#include "CfgMagazines.hpp"
diff --git a/addons/fcs/functions/fnc_keyDown.sqf b/addons/fcs/functions/fnc_keyDown.sqf
index e61baed136..3c4943badf 100644
--- a/addons/fcs/functions/fnc_keyDown.sqf
+++ b/addons/fcs/functions/fnc_keyDown.sqf
@@ -29,7 +29,7 @@ private _distance = [
if !(!GVAR(enabled) && FUNC(canUseFCS)) exitWith {};
GVAR(Enabled) = true;
-GVAR(time) = ACE_time;
+GVAR(time) = CBA_missionTime;
private _weaponDirection = _vehicle weaponDirection (_vehicle currentWeaponTurret _turret); // @todo doesn't work for sub turrets
diff --git a/addons/fcs/functions/fnc_keyUp.sqf b/addons/fcs/functions/fnc_keyUp.sqf
index 113d369a3c..a07f5d5d35 100644
--- a/addons/fcs/functions/fnc_keyUp.sqf
+++ b/addons/fcs/functions/fnc_keyUp.sqf
@@ -44,10 +44,10 @@ private _angleTarget = asin (_weaponDirection select 2);
private _movingAzimuth = 0;
-if (ACE_time - GVAR(time) > 1 && GVAR(time) != -1 && isNil {_this select 2}) then {
+if (CBA_missionTime - GVAR(time) > 1 && GVAR(time) != -1 && isNil {_this select 2}) then {
// calculate speed of target
private _posTarget = (getPosASL _vehicle) vectorAdd (_weaponDirection vectorMultiply _distance);
- private _velocityTarget = (_posTarget vectorDiff GVAR(position)) vectorMultiply (1 / (ACE_time - GVAR(time)));
+ private _velocityTarget = (_posTarget vectorDiff GVAR(position)) vectorMultiply (1 / (CBA_missionTime - GVAR(time)));
// estimate time to target
private _magazine = _vehicle currentMagazineTurret _turret;
diff --git a/addons/finger/CfgVehicles.hpp b/addons/finger/CfgVehicles.hpp
index 74229968e4..8125e7f2f5 100644
--- a/addons/finger/CfgVehicles.hpp
+++ b/addons/finger/CfgVehicles.hpp
@@ -4,7 +4,7 @@ class CfgVehicles {
scope = 2;
category = "ACE";
displayName = CSTRING(moduleSettings_displayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_finger_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_finger_ca.paa);
function = QFUNC(moduleSettings);
isGlobal = 0;
isSingular = 1;
diff --git a/addons/finger/config.cpp b/addons/finger/config.cpp
index 8383677c76..fa953b4298 100644
--- a/addons/finger/config.cpp
+++ b/addons/finger/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Drill"};
- authorUrl = "https://github.com/TheDrill/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Drill"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/finger/functions/fnc_incomingFinger.sqf b/addons/finger/functions/fnc_incomingFinger.sqf
index 02c870a519..0b21bd4930 100644
--- a/addons/finger/functions/fnc_incomingFinger.sqf
+++ b/addons/finger/functions/fnc_incomingFinger.sqf
@@ -27,7 +27,7 @@ _fingerPos = if (_sourceUnit == ACE_player) then {
_fingerPosPrecise vectorAdd [random (2*FP_RANDOMIZATION_X) - FP_RANDOMIZATION_X, random (2*FP_RANDOMIZATION_X) - FP_RANDOMIZATION_X, random (2*FP_RANDOMIZATION_Y) - FP_RANDOMIZATION_Y]
};
-_data = [ACE_diagTime, _fingerPos, ([_sourceUnit, false, true] call EFUNC(common,getName))];
+_data = [diag_tickTime, _fingerPos, ([_sourceUnit, false, true] call EFUNC(common,getName))];
HASH_SET(GVAR(fingersHash), _sourceUnit, _data);
if (GVAR(pfeh_id) == -1) then {
diff --git a/addons/finger/functions/fnc_keyPress.sqf b/addons/finger/functions/fnc_keyPress.sqf
index 1ce83d62dc..f569331eb7 100644
--- a/addons/finger/functions/fnc_keyPress.sqf
+++ b/addons/finger/functions/fnc_keyPress.sqf
@@ -25,9 +25,9 @@ if ((ACE_player != vehicle ACE_player) && {!((vehicle ACE_player) isKindOf "Stat
//Check camera view (not in GUNNER)
if !(cameraView in ["INTERNAL", "EXTERNAL"]) exitWith {false};
//Exit if run recently (run every 1 seconds)
-if (ACE_diagTime < (GVAR(lastFPTime) + FP_ACTION_TIMEOUT)) exitWith {true};
+if (diag_tickTime < (GVAR(lastFPTime) + FP_ACTION_TIMEOUT)) exitWith {true};
-GVAR(lastFPTime) = ACE_diagTime;
+GVAR(lastFPTime) = diag_tickTime;
_fingerPosPrecise = positionCameraToWorld [0, 0, FP_DISTANCE];
_playerEyePos = eyePos ACE_player;
diff --git a/addons/finger/functions/fnc_perFrameEH.sqf b/addons/finger/functions/fnc_perFrameEH.sqf
index 61c8f077ab..41fb718146 100644
--- a/addons/finger/functions/fnc_perFrameEH.sqf
+++ b/addons/finger/functions/fnc_perFrameEH.sqf
@@ -31,7 +31,7 @@ _iconSize = BASE_SIZE * _fovCorrection;
{
_data = HASH_GET(GVAR(fingersHash), _x);
_data params ["_lastTime", "_pos", "_name"];
- _timeLeftToShow = _lastTime + FP_TIMEOUT - ACE_diagTime;
+ _timeLeftToShow = _lastTime + FP_TIMEOUT - diag_tickTime;
if (_timeLeftToShow <= 0) then {
HASH_REM(GVAR(fingersHash), _x);
} else {
@@ -41,7 +41,7 @@ _iconSize = BASE_SIZE * _fovCorrection;
_drawColor set [3, ((_drawColor select 3) * (_timeLeftToShow / 0.5))];
};
- drawIcon3D [QUOTE(PATHTOF(UI\fp_icon2.paa)), _drawColor, _pos, _iconSize, _iconSize, 0, _name, 1, 0.03, "RobotoCondensed"];
+ drawIcon3D [QPATHTOF(UI\fp_icon2.paa), _drawColor, _pos, _iconSize, _iconSize, 0, _name, 1, 0.03, "RobotoCondensed"];
};
} count (GVAR(fingersHash) select 0);
diff --git a/addons/flashlights/CfgWeapons.hpp b/addons/flashlights/CfgWeapons.hpp
index 09fe70d764..84edac6c85 100644
--- a/addons/flashlights/CfgWeapons.hpp
+++ b/addons/flashlights/CfgWeapons.hpp
@@ -17,8 +17,8 @@ class CfgWeapons {
class ACE_Flashlight_MX991: ACE_ItemCore {
displayName = CSTRING(MX991_DisplayName);
descriptionShort = CSTRING(MX991_Description);
- model = QUOTE(PATHTOF(data\MX_991.p3d));
- picture = PATHTOF(UI\mx991_ca.paa);
+ model = QPATHTOF(data\MX_991.p3d);
+ picture = QPATHTOF(UI\mx991_ca.paa);
scope = 2;
class ItemInfo: InventoryItem_Base_F {
mass = 1;
@@ -32,8 +32,8 @@ class CfgWeapons {
class ACE_Flashlight_KSF1: ACE_ItemCore {
displayName = CSTRING(KSF1_DisplayName);
descriptionShort = CSTRING(KSF1_Description);
- model = QUOTE(PATHTOF(data\KSF_1.p3d));
- picture = PATHTOF(UI\ksf1_ca.paa);
+ model = QPATHTOF(data\KSF_1.p3d);
+ picture = QPATHTOF(UI\ksf1_ca.paa);
scope = 2;
class ItemInfo: InventoryItem_Base_F {
mass = 1;
@@ -47,8 +47,8 @@ class CfgWeapons {
class ACE_Flashlight_XL50: ACE_ItemCore {
displayName = CSTRING(XL50_DisplayName);
descriptionShort = CSTRING(XL50_Description);
- model = QUOTE(PATHTOF(data\Maglight.p3d));
- picture = PATHTOF(UI\xl50_ca.paa);
+ model = QPATHTOF(data\Maglight.p3d);
+ picture = QPATHTOF(UI\xl50_ca.paa);
scope = 2;
class ItemInfo: InventoryItem_Base_F {
mass = 1;
diff --git a/addons/flashlights/config.cpp b/addons/flashlights/config.cpp
index b34c4b8000..08349be0a7 100644
--- a/addons/flashlights/config.cpp
+++ b/addons/flashlights/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_Flashlight_MX991", "ACE_Flashlight_KSF1", "ACE_Flashlight_XL50"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"voiper"};
- authorUrl = "https://github.com/voiperr/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"voiper"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/flashsuppressors/CfgWeapons.hpp b/addons/flashsuppressors/CfgWeapons.hpp
index ae957ba4b0..e807dc2ae9 100644
--- a/addons/flashsuppressors/CfgWeapons.hpp
+++ b/addons/flashsuppressors/CfgWeapons.hpp
@@ -29,32 +29,73 @@ class asdg_MuzzleSlot_45ACP_SMG: asdg_MuzzleSlot { // for .45ACP universal mount
ACE_muzzle_mzls_smg_01 = 1;
};
};
+class asdg_MuzzleSlot_762MG: asdg_MuzzleSlot { // for 7.62, 6.5 and 5.56 universal mount MG suppressors
+ class compatibleItems {
+ ACE_muzzle_mzls_B = 1;
+ };
+};
class MuzzleSlot;
class CfgWeapons {
-
- /* MX */
-
- class Rifle;
- class Rifle_Base_F: Rifle {
+ class Rifle_Base_F;
+
+ class Rifle_Long_Base_F: Rifle_Base_F {
class WeaponSlotsInfo;
};
- class arifle_MX_Base_F: Rifle_Base_F {
+ /* MX */
+ class arifle_MX_Base_F: Rifle_Base_F {
+ class WeaponSlotsInfo;
+ };
+
+ class arifle_MXC_F: arifle_MX_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
- class MuzzleSlot: MuzzleSlot {
- compatibleItems[] += {"ACE_muzzle_mzls_H"};
+ class MuzzleSlot: asdg_MuzzleSlot_762 {
+ class compatibleItems: compatibleItems {
+ ACE_muzzle_mzls_H = 1;
+ ACE_muzzle_mzls_B = 0;
+ };
+ };
+ };
+ };
+ class arifle_MX_F: arifle_MX_Base_F {
+ class WeaponSlotsInfo: WeaponSlotsInfo {
+ class MuzzleSlot: asdg_MuzzleSlot_762 {
+ class compatibleItems: compatibleItems {
+ ACE_muzzle_mzls_H = 1;
+ ACE_muzzle_mzls_B = 0;
+ };
+ };
+ };
+ };
+ class arifle_MX_GL_F: arifle_MX_Base_F {
+ class WeaponSlotsInfo: WeaponSlotsInfo {
+ class MuzzleSlot: asdg_MuzzleSlot_762 {
+ class compatibleItems: compatibleItems {
+ ACE_muzzle_mzls_H = 1;
+ ACE_muzzle_mzls_B = 0;
+ };
};
};
};
-
class arifle_MX_SW_F: arifle_MX_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
- class MuzzleSlot: MuzzleSlot {
- // Shit is broken again
- //compatibleItems[] += {"ACE_muzzle_mzls_H"};
- compatibleItems[] = {"muzzle_snds_H","muzzle_snds_H_SW","ACE_muzzle_mzls_H"};
+ class MuzzleSlot: asdg_MuzzleSlot_762MG {
+ class compatibleItems: compatibleItems {
+ ACE_muzzle_mzls_H = 1;
+ ACE_muzzle_mzls_B = 0;
+ };
+ };
+ };
+ };
+ class arifle_MXM_F: arifle_MX_Base_F {
+ class WeaponSlotsInfo: WeaponSlotsInfo {
+ class MuzzleSlot: asdg_MuzzleSlot_762 {
+ class compatibleItems: compatibleItems {
+ ACE_muzzle_mzls_H = 1;
+ ACE_muzzle_mzls_B = 0;
+ };
};
};
};
@@ -62,41 +103,49 @@ class CfgWeapons {
/* Katiba */
- class arifle_katiba_Base_F: Rifle_Base_F {
+ class arifle_Katiba_Base_F: Rifle_Base_F {
+ class WeaponSlotsInfo;
+ };
+ class arifle_Katiba_F: arifle_Katiba_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
- class MuzzleSlot: MuzzleSlot {
- compatibleItems[] += {"ACE_muzzle_mzls_H"};
+ class MuzzleSlot: asdg_MuzzleSlot_762 {
+ class compatibleItems: compatibleItems {
+ ACE_muzzle_mzls_H = 1;
+ ACE_muzzle_mzls_B = 0;
+ };
+ };
+ };
+ };
+ class arifle_Katiba_C_F: arifle_Katiba_Base_F {
+ class WeaponSlotsInfo: WeaponSlotsInfo {
+ class MuzzleSlot: asdg_MuzzleSlot_762 {
+ class compatibleItems: compatibleItems {
+ ACE_muzzle_mzls_H = 1;
+ ACE_muzzle_mzls_B = 0;
+ };
+ };
+ };
+ };
+ class arifle_Katiba_GL_F: arifle_Katiba_Base_F {
+ class WeaponSlotsInfo: WeaponSlotsInfo {
+ class MuzzleSlot: asdg_MuzzleSlot_762 {
+ class compatibleItems: compatibleItems {
+ ACE_muzzle_mzls_H = 1;
+ ACE_muzzle_mzls_B = 0;
+ };
};
};
};
/* Other */
-
- class Rifle_Long_Base_F: Rifle_Base_F {
- class WeaponSlotsInfo;
- };
-
- class DMR_01_base_F: Rifle_Long_Base_F {
- class WeaponSlotsInfo: WeaponSlotsInfo {
- class MuzzleSlot: MuzzleSlot {
- compatibleItems[] += {"ACE_muzzle_mzls_B"};
- };
- };
- };
-
class LMG_Mk200_F: Rifle_Long_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
- class MuzzleSlot: MuzzleSlot {
- compatibleItems[] += {"ACE_muzzle_mzls_H"};
- };
- };
- };
-
- class LMG_Zafir_F: Rifle_Long_Base_F {
- class WeaponSlotsInfo: WeaponSlotsInfo {
- class MuzzleSlot: MuzzleSlot {
- compatibleItems[] += {"ACE_muzzle_mzls_B"};
+ class MuzzleSlot: asdg_MuzzleSlot_762MG {
+ class compatibleItems: compatibleItems {
+ ACE_muzzle_mzls_H = 1;
+ ACE_muzzle_mzls_B = 0;
+ };
};
};
};
diff --git a/addons/flashsuppressors/config.cpp b/addons/flashsuppressors/config.cpp
index b8e0c1e120..378858d71c 100644
--- a/addons/flashsuppressors/config.cpp
+++ b/addons/flashsuppressors/config.cpp
@@ -14,8 +14,9 @@ class CfgPatches {
};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2"};
- authorUrl = "https://github.com/commy2";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/fonts/CfgFontFamilies.hpp b/addons/fonts/CfgFontFamilies.hpp
index 963a35fa8e..80c8114624 100644
--- a/addons/fonts/CfgFontFamilies.hpp
+++ b/addons/fonts/CfgFontFamilies.hpp
@@ -2,38 +2,38 @@ class CfgFontFamilies
{
class PixelSplitterBold
{
- fonts[] = { PATHTOF(PixelSplitterBold\PixelSplitterBold6),
- PATHTOF(PixelSplitterBold\PixelSplitterBold7),
- PATHTOF(PixelSplitterBold\PixelSplitterBold8),
- PATHTOF(PixelSplitterBold\PixelSplitterBold9),
- PATHTOF(PixelSplitterBold\PixelSplitterBold10),
- PATHTOF(PixelSplitterBold\PixelSplitterBold11),
- PATHTOF(PixelSplitterBold\PixelSplitterBold12),
- PATHTOF(PixelSplitterBold\PixelSplitterBold13),
- PATHTOF(PixelSplitterBold\PixelSplitterBold14),
- PATHTOF(PixelSplitterBold\PixelSplitterBold15),
- PATHTOF(PixelSplitterBold\PixelSplitterBold16),
- PATHTOF(PixelSplitterBold\PixelSplitterBold17),
- PATHTOF(PixelSplitterBold\PixelSplitterBold18),
- PATHTOF(PixelSplitterBold\PixelSplitterBold19),
- PATHTOF(PixelSplitterBold\PixelSplitterBold20),
- PATHTOF(PixelSplitterBold\PixelSplitterBold21),
- PATHTOF(PixelSplitterBold\PixelSplitterBold22),
- PATHTOF(PixelSplitterBold\PixelSplitterBold23),
- PATHTOF(PixelSplitterBold\PixelSplitterBold24),
- PATHTOF(PixelSplitterBold\PixelSplitterBold25),
- PATHTOF(PixelSplitterBold\PixelSplitterBold26),
- PATHTOF(PixelSplitterBold\PixelSplitterBold27),
- PATHTOF(PixelSplitterBold\PixelSplitterBold28),
- PATHTOF(PixelSplitterBold\PixelSplitterBold29),
- PATHTOF(PixelSplitterBold\PixelSplitterBold30),
- PATHTOF(PixelSplitterBold\PixelSplitterBold31),
- PATHTOF(PixelSplitterBold\PixelSplitterBold34),
- PATHTOF(PixelSplitterBold\PixelSplitterBold35),
- PATHTOF(PixelSplitterBold\PixelSplitterBold37),
- PATHTOF(PixelSplitterBold\PixelSplitterBold46)
+ fonts[] = { QPATHTOF(PixelSplitterBold\PixelSplitterBold6),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold7),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold8),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold9),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold10),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold11),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold12),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold13),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold14),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold15),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold16),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold17),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold18),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold19),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold20),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold21),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold22),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold23),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold24),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold25),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold26),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold27),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold28),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold29),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold30),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold31),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold34),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold35),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold37),
+ QPATHTOF(PixelSplitterBold\PixelSplitterBold46)
};
spaceWidth = 0.5;
spacing = 0.065;
};
-};
\ No newline at end of file
+};
diff --git a/addons/fonts/config.cpp b/addons/fonts/config.cpp
index f37dba286c..dc6b4c705f 100644
--- a/addons/fonts/config.cpp
+++ b/addons/fonts/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_main"};
- author[] = {"jaynus"};
- authorUrl = "https://github.com/jaynus/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"jaynus"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/frag/config.cpp b/addons/frag/config.cpp
index 688d369cf5..1727570003 100644
--- a/addons/frag/config.cpp
+++ b/addons/frag/config.cpp
@@ -5,11 +5,13 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Nou"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Nou"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
#include "CfgEventhandlers.hpp"
#include "CfgAmmo.hpp"
-#include "ACE_Settings.hpp"
\ No newline at end of file
+#include "ACE_Settings.hpp"
diff --git a/addons/frag/functions/fnc_addTrack.sqf b/addons/frag/functions/fnc_addTrack.sqf
index 9a67d3fb73..84304513e0 100644
--- a/addons/frag/functions/fnc_addTrack.sqf
+++ b/addons/frag/functions/fnc_addTrack.sqf
@@ -20,4 +20,4 @@ _positions set[(count _positions), [(getPos _obj), _objSpd]];
_data = [_origin, typeOf _origin, typeOf _obj, _objSpd, _positions, _color];
GVAR(traces) set[_index, _data];
-[DFUNC(trackTrace), 0, [_obj, _index, ACE_time]] call CBA_fnc_addPerFrameHandler;
+[DFUNC(trackTrace), 0, [_obj, _index, CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/frag/functions/fnc_frago.sqf b/addons/frag/functions/fnc_frago.sqf
index 362a9b8c78..ca0a9c2fc8 100644
--- a/addons/frag/functions/fnc_frago.sqf
+++ b/addons/frag/functions/fnc_frago.sqf
@@ -9,7 +9,7 @@
if(!isServer) exitWith { };
BEGIN_COUNTER(frago);
-// _startTime = ACE_diagTime;
+// _startTime = diag_tickTime;
private ["_startTime", "_round", "_lastPos", "_lastVel", "_shellType", "_gun", "_fragTypes", "_warn", "_atlPos", "_isArmed", "_fuseDist", "_indirectHitRange", "_fragRange", "_c", "_m", "_k", "_gC", "_fragPower", "_fragPowerRandom", "_manObjects", "_objects", "_crew", "_fragCount", "_fragArcs", "_doRandom", "_boundingBox", "_targetPos", "_distance", "_add", "_bbX", "_bbY", "_bbZ", "_cubic", "_targetVel", "_baseVec", "_dir", "_currentCount", "_count", "_vecVar", "_vec", "_fp", "_vel", "_fragType", "_fragObj", "_randomCount", "_sectorSize", "_sectorOffset", "_i", "_randomDir", "_endTime", "_target"];
@@ -214,5 +214,5 @@ if(_isArmed && (count _objects) > 0) then {
// ACE_player sideChat format["total frags: %1", GVAR(TOTALFRAGS)];
// ACE_player sideChat format["tracks: %1", (count GVAR(trackedObjects))];
// #endif
-// _endTime = ACE_diagTime;
+// _endTime = diag_tickTime;
END_COUNTER(frago);
\ No newline at end of file
diff --git a/addons/frag/functions/fnc_spallHP.sqf b/addons/frag/functions/fnc_spallHP.sqf
index f4e980d1de..5bdde6eee9 100644
--- a/addons/frag/functions/fnc_spallHP.sqf
+++ b/addons/frag/functions/fnc_spallHP.sqf
@@ -21,7 +21,7 @@ if ((_this select 0) <= (count GVAR(spallHPData))) then {
// diag_log text format["%1: %2", _forEachIndex, _x];
// } forEach _hp;
// } forEach (_this select 1);
- [DFUNC(doSpall), [_this, _forEachIndex]] call EFUNC(common,execNextFrame);
+ [DFUNC(doSpall), [_this, _forEachIndex]] call CBA_fnc_execNextFrame;
// player sideChat "WEEE";
} forEach (_this select 1);
};
diff --git a/addons/frag/functions/fnc_spallTrack.sqf b/addons/frag/functions/fnc_spallTrack.sqf
index 5ffc6a05ed..dd369380b3 100644
--- a/addons/frag/functions/fnc_spallTrack.sqf
+++ b/addons/frag/functions/fnc_spallTrack.sqf
@@ -22,7 +22,7 @@ if (count _intersectsWith > 0) then {
if(!(_x in _foundObjects)) then {
// diag_log text format["Adding HP: %1", _x];
_index = (count GVAR(spallHPData));
- _hpId = _x addEventHandler ["hitPart", compile format["[%1, _this] call " + QUOTE(FUNC(spallHP)), _index]];
+ _hpId = _x addEventHandler ["hitPart", compile format["[%1, _this] call " + QFUNC(spallHP), _index]];
_foundObjects set[(count _foundObjects), _x];
_foundObjectHPIds set[(count _foundObjectHPIds), _hpId];
_data = [_hpId, _x, typeOf _round, _round, _curPos, _velocity, 0, _foundObjects, _foundObjectHPIds];
diff --git a/addons/gestures/CfgVehicles.hpp b/addons/gestures/CfgVehicles.hpp
index 8294f43759..2c099bcc45 100644
--- a/addons/gestures/CfgVehicles.hpp
+++ b/addons/gestures/CfgVehicles.hpp
@@ -9,7 +9,7 @@ class CfgVehicles {
statement = "";
showDisabled = 1;
priority = 3.5;
- icon = PATHTOF(UI\gestures_ca.paa);
+ icon = QPATHTOF(UI\gestures_ca.paa);
class GVAR(Advance) {
displayName = CSTRING(Advance);
diff --git a/addons/gestures/XEH_missionDisplayLoad.sqf b/addons/gestures/XEH_missionDisplayLoad.sqf
index 17ddf32557..856f361d3a 100644
--- a/addons/gestures/XEH_missionDisplayLoad.sqf
+++ b/addons/gestures/XEH_missionDisplayLoad.sqf
@@ -25,7 +25,7 @@ _display displayAddEventHandler ["KeyDown", {
};
TRACE_2("Reloading, blocking gestures",_weapon,_duration);
- [{GVAR(ReloadMutex) = true;}, [], _duration] call EFUNC(common,waitAndExecute);
+ [{GVAR(ReloadMutex) = true;}, [], _duration] call CBA_fnc_waitAndExecute;
};
};
false
diff --git a/addons/gestures/cfgMovesBasic.hpp b/addons/gestures/cfgMovesBasic.hpp
index 50a835abe6..30e2d4d2dd 100644
--- a/addons/gestures/cfgMovesBasic.hpp
+++ b/addons/gestures/cfgMovesBasic.hpp
@@ -126,75 +126,75 @@ class CfgGesturesMale {
};
class GVAR(forward): GVAR(Base) {
- file = QUOTE(PATHTOF(anim\ace_forward.rtm));
+ file = QPATHTOF(anim\ace_forward.rtm);
speed = 1;
};
class GVAR(forwardStandLowered): GVAR(forward) {
- file = QUOTE(PATHTOF(anim\ace_forward_stand_lowered.rtm));
+ file = QPATHTOF(anim\ace_forward_stand_lowered.rtm);
};
class GVAR(freeze): GVAR(forward) {
- file = QUOTE(PATHTOF(anim\ace_freeze.rtm));
+ file = QPATHTOF(anim\ace_freeze.rtm);
speed = 0.6;
};
class GVAR(freezeStandLowered): GVAR(freeze) {
- file = QUOTE(PATHTOF(anim\ace_freeze_stand_lowered.rtm));
+ file = QPATHTOF(anim\ace_freeze_stand_lowered.rtm);
};
class GVAR(cover): GVAR(forward) {
- file = QUOTE(PATHTOF(anim\ace_cover.rtm));
+ file = QPATHTOF(anim\ace_cover.rtm);
speed = 0.8;
};
class GVAR(coverStandLowered): GVAR(cover) {
- file = QUOTE(PATHTOF(anim\ace_cover_stand_lowered.rtm));
+ file = QPATHTOF(anim\ace_cover_stand_lowered.rtm);
};
class GVAR(regroup): GVAR(forward) {
- file = QUOTE(PATHTOF(anim\ace_regroup.rtm));
+ file = QPATHTOF(anim\ace_regroup.rtm);
speed = 0.8;
};
class GVAR(regroupStandLowered): GVAR(regroup) {
- file = QUOTE(PATHTOF(anim\ace_regroup_stand_lowered.rtm));
+ file = QPATHTOF(anim\ace_regroup_stand_lowered.rtm);
};
class GVAR(engage): GVAR(forward) {
- file = QUOTE(PATHTOF(anim\ace_engage.rtm));
+ file = QPATHTOF(anim\ace_engage.rtm);
speed = 0.9;
};
class GVAR(engageStandLowered): GVAR(engage) {
- file = QUOTE(PATHTOF(anim\ace_engage_stand_lowered.rtm));
+ file = QPATHTOF(anim\ace_engage_stand_lowered.rtm);
};
class GVAR(point): GVAR(forward) {
- file = QUOTE(PATHTOF(anim\ace_point.rtm));
+ file = QPATHTOF(anim\ace_point.rtm);
speed = 0.8;
};
class GVAR(pointStandLowered): GVAR(point) {
- file = QUOTE(PATHTOF(anim\ace_point_stand_lowered.rtm));
+ file = QPATHTOF(anim\ace_point_stand_lowered.rtm);
};
class GVAR(hold): GVAR(forward) {
- file = QUOTE(PATHTOF(anim\ace_hold.rtm));
+ file = QPATHTOF(anim\ace_hold.rtm);
speed = 0.8;
};
class GVAR(holdStandLowered): GVAR(hold) {
- file = QUOTE(PATHTOF(anim\ace_hold_stand_lowered.rtm));
+ file = QPATHTOF(anim\ace_hold_stand_lowered.rtm);
};
class GVAR(warning): GVAR(forward) {
- file = QUOTE(PATHTOF(anim\ace_warning.rtm));
+ file = QPATHTOF(anim\ace_warning.rtm);
speed = 0.8;
};
class GVAR(warningStandLowered): GVAR(warning) {
- file = QUOTE(PATHTOF(anim\ace_warning_stand_lowered.rtm));
+ file = QPATHTOF(anim\ace_warning_stand_lowered.rtm);
};
};
};
diff --git a/addons/gestures/config.cpp b/addons/gestures/config.cpp
index ce60d26545..660c1eeff5 100644
--- a/addons/gestures/config.cpp
+++ b/addons/gestures/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interact_menu"};
- author[] = {"joko // Jonas", "Emperias", "Zigomarvin"};
- authorUrl = "https://github.com/jokoho48";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"joko // Jonas", "Emperias", "Zigomarvin"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/gforces/config.cpp b/addons/gforces/config.cpp
index d431ab2b3c..58f11020eb 100644
--- a/addons/gforces/config.cpp
+++ b/addons/gforces/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"KoffeinFlummi", "esteldunedain"};
- authorUrl = "https://github.com/KoffeinFlummi/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"KoffeinFlummi", "esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/gforces/functions/fnc_pfhUpdateGForces.sqf b/addons/gforces/functions/fnc_pfhUpdateGForces.sqf
index dc6f11ee39..7909f3d0ee 100644
--- a/addons/gforces/functions/fnc_pfhUpdateGForces.sqf
+++ b/addons/gforces/functions/fnc_pfhUpdateGForces.sqf
@@ -14,8 +14,8 @@
#include "script_component.hpp"
// Update the g-forces at constant mission time intervals (taking accTime into account)
-if ((ACE_time - GVAR(lastUpdateTime)) < INTERVAL) exitWith {};
-GVAR(lastUpdateTime) = ACE_time;
+if ((CBA_missionTime - GVAR(lastUpdateTime)) < INTERVAL) exitWith {};
+GVAR(lastUpdateTime) = CBA_missionTime;
if (isNull ACE_player || !(alive ACE_player)) exitWith {};
diff --git a/addons/goggles/XEH_postInit.sqf b/addons/goggles/XEH_postInit.sqf
index 37edd7184b..2885f8e4a6 100644
--- a/addons/goggles/XEH_postInit.sqf
+++ b/addons/goggles/XEH_postInit.sqf
@@ -31,7 +31,6 @@ GVAR(EffectsActive) = false;
SETGLASSES(ace_player,GLASSESDEFAULT);
-GVAR(EyesDamageScript) = -1;
GVAR(FrameEvent) = [false, [false, 20]];
GVAR(PostProcessEyes_Enabled) = false;
GVAR(DustHandler) = -1;
@@ -83,16 +82,16 @@ GVAR(OldGlasses) = "";
GVAR(PostProcessEyes) ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [1, 1, 1, 1], [1, 1, 1, 0]];
GVAR(PostProcessEyes) ppEffectCommit 5;
- GVAR(EyesDamageScript) = [{
+ [{
params ["_unit"];
GVAR(PostProcessEyes) ppEffectEnable false;
_unit setVariable ["ACE_EyesDamaged", false];
- }, _this, 5] call EFUNC(common,waitAndExecute);
+ }, _this, 5] call CBA_fnc_waitAndExecute;
- }, _unit, 25] call EFUNC(common,waitAndExecute);
+ }, _unit, 25] call CBA_fnc_waitAndExecute;
}] call EFUNC(common,addEventHandler);
diff --git a/addons/goggles/config.cpp b/addons/goggles/config.cpp
index 0812200a87..6a20daaee7 100644
--- a/addons/goggles/config.cpp
+++ b/addons/goggles/config.cpp
@@ -7,16 +7,17 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Garth 'L-H' de Wet"};
- authorUrl = "http://garth.snakebiteink.co.za/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Garth 'L-H' de Wet"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
#include "CfgEventHandlers.hpp"
-#define COMBAT_GOGGLES ACE_Overlay = QUOTE(PATHTOF(textures\HUD\CombatGoggles.paa)); \
- ACE_OverlayCracked = QUOTE(PATHTOF(textures\HUD\CombatGogglesCracked.paa)); \
+#define COMBAT_GOGGLES ACE_Overlay = QPATHTOF(textures\HUD\CombatGoggles.paa); \
+ ACE_OverlayCracked = QPATHTOF(textures\HUD\CombatGogglesCracked.paa); \
ACE_Resistance = 2; \
ACE_Protection = 1;
@@ -26,10 +27,10 @@ class CfgGlasses {
ACE_TintAmount=0;
ACE_Overlay = "";
ACE_OverlayDirt = "A3\Ui_f\data\igui\rsctitles\HealthTextures\dust_upper_ca.paa";
- ACE_OverlayCracked = QUOTE(PATHTOF(textures\HUD\Cracked.paa));
+ ACE_OverlayCracked = QPATHTOF(textures\HUD\Cracked.paa);
ACE_Resistance = 0;
ACE_Protection = 0;
- ACE_DustPath = QUOTE(PATHTOF(textures\fx\dust\%1.paa));
+ ACE_DustPath = QPATHTOF(textures\fx\dust\%1.paa);
};
class G_Combat:None {
@@ -37,8 +38,8 @@ class CfgGlasses {
};
class G_Diving {
- ACE_Overlay = QUOTE(PATHTOF(textures\HUD\DivingGoggles.paa));
- ACE_OverlayCracked = QUOTE(PATHTOF(textures\HUD\DivingGogglesCracked.paa));
+ ACE_Overlay = QPATHTOF(textures\HUD\DivingGoggles.paa);
+ ACE_OverlayCracked = QPATHTOF(textures\HUD\DivingGogglesCracked.paa);
ACE_Resistance = 2;
ACE_Protection = 1;
};
@@ -209,7 +210,7 @@ class CfgGesturesMale {
class States {
class GestureFreezeStand;
class GestureWipeFace: GestureFreezeStand {
- file = QUOTE(PATHTOF(anim\WipeGlasses.rtm));
+ file = QPATHTOF(anim\WipeGlasses.rtm);
canPullTrigger = 0;
};
};
diff --git a/addons/goggles/functions/fnc_applyDustEffect.sqf b/addons/goggles/functions/fnc_applyDustEffect.sqf
index 944b98f127..9921bfdfd9 100644
--- a/addons/goggles/functions/fnc_applyDustEffect.sqf
+++ b/addons/goggles/functions/fnc_applyDustEffect.sqf
@@ -50,7 +50,7 @@ SETDUST(DBULLETS,0);
GVAR(DustHandler) = -1;
GVAR(DustHandler) = [{
- if (ACE_diagTime >= GETDUSTT(DTIME) + 3) then {
+ if (diag_tickTime >= GETDUSTT(DTIME) + 3) then {
SETDUST(DAMOUNT,CLAMP(GETDUSTT(DAMOUNT)-1,0,2));
private _amount = 1 - (GETDUSTT(DAMOUNT) * 0.125);
@@ -71,7 +71,7 @@ GVAR(DustHandler) = [{
if (GVAR(DustHandler) == -1) then {
GVAR(PostProcessEyes) ppEffectEnable false
};
- }, [], 2] call EFUNC(common,waitAndExecute);
+ }, [], 2] call CBA_fnc_waitAndExecute;
[GVAR(DustHandler)] call CBA_fnc_removePerFrameHandler;
GVAR(DustHandler) = -1;
diff --git a/addons/goggles/functions/fnc_applyRotorWashEffect.sqf b/addons/goggles/functions/fnc_applyRotorWashEffect.sqf
index bc8d0bafbf..7a883ab7e7 100644
--- a/addons/goggles/functions/fnc_applyRotorWashEffect.sqf
+++ b/addons/goggles/functions/fnc_applyRotorWashEffect.sqf
@@ -50,7 +50,7 @@ if !(_rotorWash select 0) exitWith {
if (GVAR(DustHandler) == -1) then {
GVAR(PostProcessEyes) ppEffectEnable false;
}
- }, [], 2] call EFUNC(common,waitAndExecute);
+ }, [], 2] call CBA_fnc_waitAndExecute;
[GVAR(DustHandler)] call CBA_fnc_removePerFrameHandler;
GVAR(DustHandler) = -1;
diff --git a/addons/goggles/functions/fnc_clearGlasses.sqf b/addons/goggles/functions/fnc_clearGlasses.sqf
index e7d5584938..f1622c8680 100644
--- a/addons/goggles/functions/fnc_clearGlasses.sqf
+++ b/addons/goggles/functions/fnc_clearGlasses.sqf
@@ -34,7 +34,7 @@ if ((stance _unit != "PRONE") && {primaryWeapon _unit != ""} && {currentWeapon _
if (cameraView == "INTERNAL") then {
addCamShake [5, 1.75, 2];
};
-}, [], 0.3] call EFUNC(common,waitAndExecute);
+}, [], 0.3] call CBA_fnc_waitAndExecute;
call FUNC(removeDirtEffect);
call FUNC(removeRainEffect);
diff --git a/addons/goggles/functions/fnc_handleFired.sqf b/addons/goggles/functions/fnc_handleFired.sqf
index dcfcc51bec..066bc040f7 100644
--- a/addons/goggles/functions/fnc_handleFired.sqf
+++ b/addons/goggles/functions/fnc_handleFired.sqf
@@ -60,14 +60,14 @@ if (!GVAR(surfaceCacheIsDust)) exitWith {true};
// increment dust value with type bullet
_bullets = GETDUSTT(DBULLETS);
-if (ACE_diagTime - GETDUSTT(DTIME) > 1) then {
+if (diag_tickTime - GETDUSTT(DTIME) > 1) then {
_bullets = 0;
};
_bullets = _bullets + 1;
SETDUST(DBULLETS,_bullets);
-SETDUST(DTIME,ACE_diagTime);
+SETDUST(DTIME,diag_tickTime);
// apply dust effect if the amount of fired bullets is over the threshold
if (GETDUSTT(DAMOUNT) < 2) then {
diff --git a/addons/grenades/CfgAmmo.hpp b/addons/grenades/CfgAmmo.hpp
index 5aa33284c8..a5971044f9 100644
--- a/addons/grenades/CfgAmmo.hpp
+++ b/addons/grenades/CfgAmmo.hpp
@@ -81,7 +81,7 @@ class CfgAmmo {
class ACE_G_M84: SmokeShell {
GVAR(flashbang) = 1;
- model = PATHTOF(models\ACE_m84_thrown.p3d);
+ model = QPATHTOF(models\ACE_m84_thrown.p3d);
dangerRadiusHit = -1;
suppressionRadiusHit = 20;
typicalSpeed = 22;
diff --git a/addons/grenades/CfgMagazines.hpp b/addons/grenades/CfgMagazines.hpp
index 16dd9929ff..d1d9127fa4 100644
--- a/addons/grenades/CfgMagazines.hpp
+++ b/addons/grenades/CfgMagazines.hpp
@@ -59,8 +59,8 @@ class CfgMagazines {
displayname = CSTRING(M84_Name);
descriptionshort = CSTRING(M84_Description);
displayNameShort = "M84";
- model = PATHTOF(models\ACE_m84.p3d);
- picture = PATHTOF(UI\ACE_m84_x_ca.paa);
+ model = QPATHTOF(models\ACE_m84.p3d);
+ picture = QPATHTOF(UI\ACE_m84_x_ca.paa);
ammo = "ACE_G_M84";
mass = 4;
};
diff --git a/addons/grenades/config.cpp b/addons/grenades/config.cpp
index 2f9e631fe1..7d98e13a24 100644
--- a/addons/grenades/config.cpp
+++ b/addons/grenades/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2", "KoffeinFlummi"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2", "KoffeinFlummi"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/grenades/functions/fnc_flare.sqf b/addons/grenades/functions/fnc_flare.sqf
index 74360e39b9..be2b4ce952 100644
--- a/addons/grenades/functions/fnc_flare.sqf
+++ b/addons/grenades/functions/fnc_flare.sqf
@@ -36,4 +36,4 @@ _light setLightDayLight true;
_light lightAttachObject [_projectile, [0,0,0]];
//_light attachTo [_projectile, [0,0,0]];
-[{deleteVehicle _this}, _light, _timeToLive, 1] call EFUNC(common,waitAndExecute);
+[{deleteVehicle _this}, _light, _timeToLive, 1] call CBA_fnc_waitAndExecute;
diff --git a/addons/grenades/functions/fnc_flashbangExplosionEH.sqf b/addons/grenades/functions/fnc_flashbangExplosionEH.sqf
index c708f3a3cf..0d0779ccef 100644
--- a/addons/grenades/functions/fnc_flashbangExplosionEH.sqf
+++ b/addons/grenades/functions/fnc_flashbangExplosionEH.sqf
@@ -36,8 +36,8 @@ if (hasInterface) then {
[{
params ["_light"];
deleteVehicle _light;
- }, [_light], 0.2] call EFUNC(common,waitAndExecute);
- }, [_light], 0.1] call EFUNC(common,waitAndExecute);
+ }, [_light], 0.2] call CBA_fnc_waitAndExecute;
+ }, [_light], 0.1] call CBA_fnc_waitAndExecute;
};
// Affect local AI
@@ -67,7 +67,7 @@ _affected = _affected - [ACE_player];
};
_unit setSkill (skill _unit * 50);
- }, [_x], 7 * _strength] call EFUNC(common,waitAndExecute);
+ }, [_x], 7 * _strength] call CBA_fnc_waitAndExecute;
};
} count _affected;
@@ -126,12 +126,12 @@ if (hasInterface && {!isNull ACE_player} && {alive ACE_player}) then {
GVAR(flashbangPPEffectCC) ppEffectAdjust [1,1,0,[1,1,1,0],[0,0,0,1],[0,0,0,0]];
GVAR(flashbangPPEffectCC) ppEffectCommit (10 * _strength);
- }, [_strength], 7 * _strength] call EFUNC(common,waitAndExecute);
+ }, [_strength], 7 * _strength] call CBA_fnc_waitAndExecute;
//FULLRECOVERY - end effect
[{
GVAR(flashbangPPEffectCC) ppEffectEnable false;
- }, [], 17 * _strength] call EFUNC(common,waitAndExecute);
+ }, [], 17 * _strength] call CBA_fnc_waitAndExecute;
};
if (_strength > 0.2) then {
diff --git a/addons/grenades/functions/fnc_throwGrenade.sqf b/addons/grenades/functions/fnc_throwGrenade.sqf
index 284c573c2e..e603dd8743 100644
--- a/addons/grenades/functions/fnc_throwGrenade.sqf
+++ b/addons/grenades/functions/fnc_throwGrenade.sqf
@@ -32,7 +32,7 @@ if (local _unit) then {
if (getNumber (_config >> QGVAR(flashbang)) == 1) then {
private _fuzeTime = getNumber (_config >> "explosionTime");
- [FUNC(flashbangThrownFuze), [_projectile], _fuzeTime] call EFUNC(common,waitAndExecute);
+ [FUNC(flashbangThrownFuze), [_projectile], _fuzeTime] call CBA_fnc_waitAndExecute;
};
};
@@ -42,7 +42,7 @@ if (getNumber (_config >> QGVAR(flare)) == 1) then {
private _color = getArray (_config >> QGVAR(color));
private _intensity = _color deleteAt 3;
- [FUNC(flare), [_projectile, _color, _intensity, _timeToLive], _fuzeTime, 0] call EFUNC(common,waitAndExecute);
+ [FUNC(flare), [_projectile, _color, _intensity, _timeToLive], _fuzeTime, 0] call CBA_fnc_waitAndExecute;
};
// handle throw modes
diff --git a/addons/hearing/CfgSounds.hpp b/addons/hearing/CfgSounds.hpp
index 0a1bc82ed1..6df1b39193 100644
--- a/addons/hearing/CfgSounds.hpp
+++ b/addons/hearing/CfgSounds.hpp
@@ -1,34 +1,34 @@
class CfgSounds {
class ACE_EarRinging_Weak {
- sound[] = {QUOTE(PATHTOF(sounds\ACE_earringing_weak.wav)),8,1.7};
+ sound[] = {QPATHTOF(sounds\ACE_earringing_weak.wav),8,1.7};
titles[] = {};
};
class ACE_EarRinging_Medium {
- sound[] = {QUOTE(PATHTOF(sounds\ACE_earringing_medium.wav)),8,1.7};
+ sound[] = {QPATHTOF(sounds\ACE_earringing_medium.wav),8,1.7};
titles[] = {};
};
class ACE_EarRinging_Heavy {
- sound[] = {QUOTE(PATHTOF(sounds\ACE_earringing_heavy.wav)),8,1.7};
+ sound[] = {QPATHTOF(sounds\ACE_earringing_heavy.wav),8,1.7};
titles[] = {};
};
class ACE_Combat_Deafness_Heavy {
- sound[] = {QUOTE(PATHTOF(sounds\deafness.ogg)),8,1};
+ sound[] = {QPATHTOF(sounds\deafness.ogg),8,1};
titles[] = {};
};
class ACE_Combat_Deafness_Medium {
- sound[] = {QUOTE(PATHTOF(sounds\deafness.ogg)),3,1};
+ sound[] = {QPATHTOF(sounds\deafness.ogg),3,1};
titles[] = {};
};
class ACE_Combat_Deafness_Heavy_NoRing {
- sound[] = {QUOTE(PATHTOF(sounds\deafness_noring.ogg)),8,1};
+ sound[] = {QPATHTOF(sounds\deafness_noring.ogg),8,1};
titles[] = {};
};
class ACE_Combat_Deafness_Medium_NoRing {
- sound[] = {QUOTE(PATHTOF(sounds\deafness_noring.ogg)),3,1};
+ sound[] = {QPATHTOF(sounds\deafness_noring.ogg),3,1};
titles[] = {};
};
class ACE_Ring_Backblast {
- sound[] = {QUOTE(PATHTOF(sounds\backblast_ring.ogg)),1,1};
+ sound[] = {QPATHTOF(sounds\backblast_ring.ogg),1,1};
titles[] = {};
};
};
diff --git a/addons/hearing/CfgVehicles.hpp b/addons/hearing/CfgVehicles.hpp
index 17dec1641b..760ed95a03 100644
--- a/addons/hearing/CfgVehicles.hpp
+++ b/addons/hearing/CfgVehicles.hpp
@@ -10,7 +10,7 @@ class CfgVehicles {
statement = QUOTE( [_player] call FUNC(putInEarPlugs) );
showDisabled = 0;
priority = 2.5;
- icon = PATHTOF(UI\ACE_earplugs_x_ca.paa);
+ icon = QPATHTOF(UI\ACE_earplugs_x_ca.paa);
};
class ACE_RemoveEarplugs {
displayName = CSTRING(EarPlugs_Off);
@@ -19,7 +19,7 @@ class CfgVehicles {
statement = QUOTE( [_player] call FUNC(removeEarPlugs) );
showDisabled = 0;
priority = 2.5;
- icon = PATHTOF(UI\ACE_earplugs_x_ca.paa);
+ icon = QPATHTOF(UI\ACE_earplugs_x_ca.paa);
};
};
};
@@ -100,7 +100,7 @@ class CfgVehicles {
scope = 2;
isGlobal = 1;
isSingular = 1;
- icon = PATHTOF(UI\Icon_Module_Hearing_ca.paa);
+ icon = QPATHTOF(UI\Icon_Module_Hearing_ca.paa);
class Arguments {
class EnableCombatDeafness {
displayName = CSTRING(EnableCombatDeafness_DisplayName);
diff --git a/addons/hearing/CfgWeapons.hpp b/addons/hearing/CfgWeapons.hpp
index af7b7d4cb3..c063c0e896 100644
--- a/addons/hearing/CfgWeapons.hpp
+++ b/addons/hearing/CfgWeapons.hpp
@@ -5,8 +5,8 @@ class CfgWeapons {
class ACE_EarPlugs: ACE_ItemCore {
displayName = CSTRING(EarPlugs_Name);
descriptionShort = CSTRING(EarPlugs_Description);
- model = QUOTE(PATHTOF(data\ace_earplugs.p3d));
- picture = PATHTOF(UI\ACE_earplugs_x_ca.paa);
+ model = QPATHTOF(data\ace_earplugs.p3d);
+ picture = QPATHTOF(UI\ACE_earplugs_x_ca.paa);
scope = 2;
class ItemInfo: InventoryItem_Base_F {
mass = 1;
diff --git a/addons/hearing/config.cpp b/addons/hearing/config.cpp
index 5d130e589a..3a52c369d8 100644
--- a/addons/hearing/config.cpp
+++ b/addons/hearing/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_EarPlugs"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction", "A3_Characters_F", "A3_Characters_F_Kart"};
- author[] = {"KoffeinFlummi", "esteldunedain", "HopeJ", "commy2", "Rocko", "Rommel", "Ruthberg"};
- authorUrl = "https://github.com/KoffeinFlummi/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"KoffeinFlummi", "esteldunedain", "HopeJ", "commy2", "Rocko", "Rommel", "Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/hearing/functions/fnc_updateVolume.sqf b/addons/hearing/functions/fnc_updateVolume.sqf
index 2212bd6222..01ab58ef76 100644
--- a/addons/hearing/functions/fnc_updateVolume.sqf
+++ b/addons/hearing/functions/fnc_updateVolume.sqf
@@ -33,8 +33,8 @@ if (!_justUpdateVolume) then {
if (GVAR(deafnessDV) - GVAR(deafnessPrior) > 1 ||
GVAR(deafnessDV) > 10) then {
- if (ACE_time - GVAR(time3) < 3) exitWith {};
- GVAR(time3) = ACE_time;
+ if (CBA_missionTime - GVAR(time3) < 3) exitWith {};
+ GVAR(time3) = CBA_missionTime;
if (GVAR(deafnessDV) > 19.75) then {
playSound (["ACE_Combat_Deafness_Heavy", "ACE_Combat_Deafness_Heavy_NoRing"] select GVAR(DisableEarRinging));
diff --git a/addons/hitreactions/config.cpp b/addons/hitreactions/config.cpp
index 77b68b77f5..d6146a6b29 100644
--- a/addons/hitreactions/config.cpp
+++ b/addons/hitreactions/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2"};
- authorUrl = "https://github.com/commy2";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/hitreactions/functions/fnc_fallDown.sqf b/addons/hitreactions/functions/fnc_fallDown.sqf
index 9ed43ae14f..03484438eb 100644
--- a/addons/hitreactions/functions/fnc_fallDown.sqf
+++ b/addons/hitreactions/functions/fnc_fallDown.sqf
@@ -31,7 +31,7 @@ if (_unit == ACE_player) then {
};
// play scream sound
-if (!isNil QUOTE(EFUNC(medical,playInjuredSound))) then {
+if (!isNil QEFUNC(medical,playInjuredSound)) then {
[_unit] call EFUNC(medical,playInjuredSound);
};
diff --git a/addons/huntir/CfgAmmo.hpp b/addons/huntir/CfgAmmo.hpp
index cb40f4a53a..a9cd260d0f 100644
--- a/addons/huntir/CfgAmmo.hpp
+++ b/addons/huntir/CfgAmmo.hpp
@@ -1,7 +1,7 @@
class CfgAmmo {
class FlareBase;
class F_HuntIR: FlareBase {
- model = PATHTOF(data\ace_m1070_armed.p3d);
+ model = QPATHTOF(data\ace_m1070_armed.p3d);
lightColor[] = {0, 0, 0, 0};
smokeColor[] = {0, 0, 0, 0};
timeToLive = 6;
diff --git a/addons/huntir/CfgMagazines.hpp b/addons/huntir/CfgMagazines.hpp
index c11f81a98c..62ae785333 100644
--- a/addons/huntir/CfgMagazines.hpp
+++ b/addons/huntir/CfgMagazines.hpp
@@ -5,7 +5,7 @@ class CfgMagazines {
displayName = CSTRING(magazine_displayName);
displayNameShort = "HuntIR";
descriptionShort = "";
- picture = PATHTOF(data\m_m1070_ca.paa);
+ picture = QPATHTOF(data\m_m1070_ca.paa);
ammo = "F_HuntIR";
};
};
diff --git a/addons/huntir/CfgVehicles.hpp b/addons/huntir/CfgVehicles.hpp
index 3b6486aaf7..cd5054a2da 100644
--- a/addons/huntir/CfgVehicles.hpp
+++ b/addons/huntir/CfgVehicles.hpp
@@ -10,7 +10,7 @@ class CfgVehicles {
statement = QUOTE(call FUNC(huntir));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\w_huntir_monitor_ca.paa);
+ icon = QPATHTOF(UI\w_huntir_monitor_ca.paa);
exceptions[] = {};
};
};
@@ -23,7 +23,7 @@ class CfgVehicles {
castDriverShadow = 0;
destrType = "DestructDefault";
displayName = "HuntIR";
- model = PATHTOF(data\huntir.p3d);
+ model = QPATHTOF(data\huntir.p3d);
scope = 1;
soundCrash[] = {"", db-30, 1 };
soundEnviron[] = {"z\ace\addons\apl\sounds\padak_let", 0.316228, 1, 80};
@@ -73,7 +73,7 @@ class CfgVehicles {
class ReammoBox_F;
class ACE_HuntIR_Box: ReammoBox_F {
- model = PATHTOF(data\ace_huntirbox.p3d);
+ model = QPATHTOF(data\ace_huntirbox.p3d);
displayName = $STR_DN_ACE_HUNTIRBOX;
class TransportItems {
MACRO_ADDITEM(ACE_HuntIR_monitor,5);
diff --git a/addons/huntir/CfgWeapons.hpp b/addons/huntir/CfgWeapons.hpp
index 6d74cbfba9..979fc8875c 100644
--- a/addons/huntir/CfgWeapons.hpp
+++ b/addons/huntir/CfgWeapons.hpp
@@ -6,9 +6,9 @@ class CfgWeapons {
class ACE_HuntIR_monitor: ACE_ItemCore {
scope = 2;
displayName = CSTRING(monitor_displayName);
- picture = PATHTOF(UI\w_huntir_monitor_ca.paa);
+ picture = QPATHTOF(UI\w_huntir_monitor_ca.paa);
descriptionShort = CSTRING(monitor_displayName);
- model = PATHTOF(data\ace_huntir_monitor.p3d);
+ model = QPATHTOF(data\ace_huntir_monitor.p3d);
class ItemInfo: InventoryItem_Base_F {
mass = 20;
diff --git a/addons/huntir/Dialog.hpp b/addons/huntir/Dialog.hpp
index ca1e85466b..745bef8dc3 100644
--- a/addons/huntir/Dialog.hpp
+++ b/addons/huntir/Dialog.hpp
@@ -154,7 +154,7 @@ class ace_huntir_cam_dialog {
w = __W;
h = __H + 0.2;
border = 0;
- text = PATHTOF(UI\ace_huntir_monitor_on.paa);
+ text = QPATHTOF(UI\ace_huntir_monitor_on.paa);
};
class CAM_HEIGHT {
type = CT_STATIC;
@@ -311,7 +311,7 @@ class ace_huntir_cam_dialog_off: ace_huntir_cam_dialog_inactive {
class RIGHT_BORDER: RIGHT_BORDER {};
class PRESS_HELP: PRESS_HELP {};
class HELP_DIALOG: HELP_DIALOG {};
- class CAM_BG: CAM_BG { text = PATHTOF(UI\ace_huntir_monitor_off.paa); };
+ class CAM_BG: CAM_BG { text = QPATHTOF(UI\ace_huntir_monitor_off.paa); };
};
//ACTIVE PARA CAMERA DIALOG
class ace_huntir_help_dialog: ace_huntir_cam_dialog {
diff --git a/addons/huntir/XEH_postInit.sqf b/addons/huntir/XEH_postInit.sqf
index 0c518dfcea..038cd62051 100644
--- a/addons/huntir/XEH_postInit.sqf
+++ b/addons/huntir/XEH_postInit.sqf
@@ -11,4 +11,3 @@ GVAR(ELEVAT) = 0.01;
// Register fire event handler
// Don't run for non players, as they are too dumb to launch huntirs anyway
["firedPlayer", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
-["firedPlayerNonLocal", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
diff --git a/addons/huntir/config.cpp b/addons/huntir/config.cpp
index 5fb106ad2d..ce4b10bab1 100644
--- a/addons/huntir/config.cpp
+++ b/addons/huntir/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_HuntIR_monitor"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Norrin", "Rocko", "Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Norrin", "Rocko", "Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/huntir/functions/fnc_cam.sqf b/addons/huntir/functions/fnc_cam.sqf
index 2eb7611a6a..80d5e33043 100644
--- a/addons/huntir/functions/fnc_cam.sqf
+++ b/addons/huntir/functions/fnc_cam.sqf
@@ -145,7 +145,7 @@ GVAR(no_cams) sort true;
ctrlSetText [1, format["%1 m", round(GVAR(pos) select 2)]];
ctrlSetText [2, format["%1", GVAR(cur_cam) + 1]];
- _cam_time = ACE_time - (GVAR(huntIR) getVariable [QGVAR(startTime), ACE_time]);
+ _cam_time = CBA_missionTime - (GVAR(huntIR) getVariable [QGVAR(startTime), CBA_missionTime]);
ctrlSetText [3, format["%1 s", round(_cam_time)]];
_cam_pos = getPosVisual GVAR(huntIR);
_cam_pos = format ["X = %1, Y = %2", round (_cam_pos select 0), round (_cam_pos select 1)];
diff --git a/addons/huntir/functions/fnc_handleFired.sqf b/addons/huntir/functions/fnc_handleFired.sqf
index 551b9975b6..b7e8c2a010 100644
--- a/addons/huntir/functions/fnc_handleFired.sqf
+++ b/addons/huntir/functions/fnc_handleFired.sqf
@@ -1,7 +1,7 @@
/*
* Author: Norrin, Rocko, Ruthberg
*
- * Handles HuntIR projectiles. Called from the unified fired EH for all CAManBase.
+ * Handles HuntIR projectiles. Called from the unified fired EH for the local player.
*
* Arguments:
* None. Parameters inherited from EFUNC(common,firedEH)
@@ -34,7 +34,7 @@ if (!hasInterface) exitWith {};
params ["_position"];
_huntir = createVehicle ["ACE_HuntIR", _position, [], 0, "FLY"];
_huntir setPosATL _position;
- _huntir setVariable [QGVAR(startTime), ACE_time, true];
+ _huntir setVariable [QGVAR(startTime), CBA_missionTime, true];
[{
params ["_args", "_idPFH"];
_args params ["_huntir"];
@@ -50,5 +50,5 @@ if (!hasInterface) exitWith {};
_huntir setVectorUp [0, 0, 1];
};
}, 0, [_huntir]] call CBA_fnc_addPerFrameHandler;
- }, [getPosATL _projectile vectorAdd [0, 0, 50]], 2, 0] call EFUNC(common,waitAndExecute);
-}, [_projectile], 5, 0] call EFUNC(common,waitAndExecute);
+ }, [getPosATL _projectile vectorAdd [0, 0, 50]], 2, 0] call CBA_fnc_waitAndExecute;
+}, [_projectile], 5, 0] call CBA_fnc_waitAndExecute;
diff --git a/addons/huntir/functions/fnc_huntir.sqf b/addons/huntir/functions/fnc_huntir.sqf
index e06ada87ea..72a0ecee64 100644
--- a/addons/huntir/functions/fnc_huntir.sqf
+++ b/addons/huntir/functions/fnc_huntir.sqf
@@ -30,7 +30,7 @@ createDialog "ace_huntir_cam_dialog_off";
createDialog "ace_huntir_cam_dialog_inactive";
uiNameSpace setVariable ["ace_huntir_monitor", findDisplay 18881];
[{
- GVAR(startTime) = ACE_time;
+ GVAR(startTime) = CBA_missionTime;
GVAR(done) = false;
GVAR(connectionDelay) = 5;
GVAR(state) = "searching";
@@ -44,7 +44,7 @@ createDialog "ace_huntir_cam_dialog_off";
};
private ["_elapsedTime", "_nearestHuntIRs"];
- _elapsedTime = ACE_time - GVAR(startTime);
+ _elapsedTime = CBA_missionTime - GVAR(startTime);
_nearestHuntIRs = ACE_player nearEntities ["ACE_HuntIR", HUNTIR_MAX_TRANSMISSION_RANGE];
if ((!dialog) || GVAR(done)) exitWith {
@@ -90,9 +90,9 @@ createDialog "ace_huntir_cam_dialog_off";
GVAR(done) = true;
closedialog 0;
HUNTIR_BACKGROUND_LAYER_ID cutText ["", "PLAIN"];
- }, [], 3, 0] call EFUNC(common,waitAndExecute);
+ }, [], 3, 0] call CBA_fnc_waitAndExecute;
};
};
}, __TYPE_WRITER_DELAY, []] call CBA_fnc_addPerFrameHandler;
- }, [], 0.5, 0] call EFUNC(common,waitAndExecute);
-}, [], 1, 0] call EFUNC(common,waitAndExecute);
+ }, [], 0.5, 0] call CBA_fnc_waitAndExecute;
+}, [], 1, 0] call CBA_fnc_waitAndExecute;
diff --git a/addons/interact_menu/XEH_preInit.sqf b/addons/interact_menu/XEH_preInit.sqf
index fae8843a4e..8711f8c180 100644
--- a/addons/interact_menu/XEH_preInit.sqf
+++ b/addons/interact_menu/XEH_preInit.sqf
@@ -27,7 +27,7 @@ GVAR(keyDownSelfAction) = false;
GVAR(keyDownTime) = 0;
GVAR(openedMenuType) = -1;
-GVAR(lastTime) = ACE_diagTime;
+GVAR(lastTime) = diag_tickTime;
GVAR(rotationAngle) = 0;
GVAR(selectedAction) = [[],[]];
@@ -43,8 +43,8 @@ GVAR(lastPath) = [];
GVAR(expanded) = false;
-GVAR(startHoverTime) = ACE_diagTime;
-GVAR(expandedTime) = ACE_diagTime;
+GVAR(startHoverTime) = diag_tickTime;
+GVAR(expandedTime) = diag_tickTime;
// reset on mission load
addMissionEventHandler ["Loaded", {
diff --git a/addons/interact_menu/config.cpp b/addons/interact_menu/config.cpp
index 8909c3d685..f84fea7ef9 100644
--- a/addons/interact_menu/config.cpp
+++ b/addons/interact_menu/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"NouberNou", "esteldunedain"};
- authorUrl = "";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"NouberNou", "esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/interact_menu/functions/fnc_keyDown.sqf b/addons/interact_menu/functions/fnc_keyDown.sqf
index b71130a248..4d9f0af4db 100644
--- a/addons/interact_menu/functions/fnc_keyDown.sqf
+++ b/addons/interact_menu/functions/fnc_keyDown.sqf
@@ -32,7 +32,7 @@ if (_menuType == 0) then {
GVAR(keyDown) = false;
GVAR(keyDownSelfAction) = true;
};
-GVAR(keyDownTime) = ACE_diagTime;
+GVAR(keyDownTime) = diag_tickTime;
GVAR(openedMenuType) = _menuType;
GVAR(lastTimeSearchedActions) = -1000;
GVAR(ParsedTextCached) = [];
@@ -83,21 +83,21 @@ if (GVAR(openedMenuType) == 0) then {
if (vehicle ACE_player != ACE_player) then {
GVAR(menuDepthPath) = [["ACE_SelfActions", (vehicle ACE_player)]];
GVAR(expanded) = true;
- GVAR(expandedTime) = ACE_diagTime;
+ GVAR(expandedTime) = diag_tickTime;
GVAR(lastPath) = +GVAR(menuDepthPath);
GVAR(startHoverTime) = -1000;
};
} else {
GVAR(menuDepthPath) = [["ACE_ZeusActions", (getAssignedCuratorLogic player)]];
GVAR(expanded) = true;
- GVAR(expandedTime) = ACE_diagTime;
+ GVAR(expandedTime) = diag_tickTime;
GVAR(lastPath) = +GVAR(menuDepthPath);
GVAR(startHoverTime) = -1000;
};
} else {
GVAR(menuDepthPath) = [["ACE_SelfActions", ACE_player]];
GVAR(expanded) = true;
- GVAR(expandedTime) = ACE_diagTime;
+ GVAR(expandedTime) = diag_tickTime;
GVAR(lastPath) = +GVAR(menuDepthPath);
GVAR(startHoverTime) = -1000;
};
diff --git a/addons/interact_menu/functions/fnc_render.sqf b/addons/interact_menu/functions/fnc_render.sqf
index 117a828b0b..00745a406f 100644
--- a/addons/interact_menu/functions/fnc_render.sqf
+++ b/addons/interact_menu/functions/fnc_render.sqf
@@ -51,12 +51,12 @@ if (GVAR(openedMenuType) >= 0) then {
private _closest = GVAR(currentOptions) select _closestSelection;
_closest params ["_action", "_sPos", "_hoverPath"];
- private _cTime = ACE_diagTime;
+ private _cTime = diag_tickTime;
private _delta = _cTime - GVAR(lastTime);
GVAR(lastTime) = _cTime;
GVAR(rotationAngle) = (GVAR(rotationAngle) + (270*_delta)) mod 360;
- [_sPos, format [QUOTE(PATHTOF(ui\selector%1.paa)), floor (((abs GVAR(rotationAngle)) mod 90) / 6)]] call FUNC(renderSelector);
+ [_sPos, format [QPATHTOF(ui\selector%1.paa), floor (((abs GVAR(rotationAngle)) mod 90) / 6)]] call FUNC(renderSelector);
_foundTarget = true;
GVAR(actionSelected) = true;
@@ -65,17 +65,17 @@ if (GVAR(openedMenuType) >= 0) then {
private _misMatch = !(GVAR(lastPath) isEqualTo _hoverPath);
- if(_misMatch && {ACE_diagTime-GVAR(expandedTime) > linearConversion [0, 2, GVAR(menuAnimationSpeed), 0.25, 0.08333333]}) then {
- GVAR(startHoverTime) = ACE_diagTime;
+ if(_misMatch && {diag_tickTime-GVAR(expandedTime) > linearConversion [0, 2, GVAR(menuAnimationSpeed), 0.25, 0.08333333]}) then {
+ GVAR(startHoverTime) = diag_tickTime;
GVAR(lastPath) = _hoverPath;
GVAR(expanded) = false;
} else {
- if(!GVAR(expanded) && {ACE_diagTime-GVAR(startHoverTime) > linearConversion [0, 2, GVAR(menuAnimationSpeed), 0.25, 0.08333333]}) then {
+ if(!GVAR(expanded) && {diag_tickTime-GVAR(startHoverTime) > linearConversion [0, 2, GVAR(menuAnimationSpeed), 0.25, 0.08333333]}) then {
GVAR(expanded) = true;
// Start the expanding menu animation only if the user is not going up the menu
if !([GVAR(menuDepthPath),GVAR(lastPath)] call FUNC(isSubPath)) then {
- GVAR(expandedTime) = ACE_diagTime;
+ GVAR(expandedTime) = diag_tickTime;
};
GVAR(menuDepthPath) = +GVAR(lastPath);
diff --git a/addons/interact_menu/functions/fnc_renderActionPoints.sqf b/addons/interact_menu/functions/fnc_renderActionPoints.sqf
index c99688564a..d3df02ca40 100644
--- a/addons/interact_menu/functions/fnc_renderActionPoints.sqf
+++ b/addons/interact_menu/functions/fnc_renderActionPoints.sqf
@@ -24,7 +24,7 @@ private _fnc_renderNearbyActions = {
#define MAXINTERACTOBJECTS 3
GVAR(foundActions) = [];
- GVAR(lastTimeSearchedActions) = ACE_diagTime;
+ GVAR(lastTimeSearchedActions) = diag_tickTime;
private _numInteractObjects = 0;
private _nearestObjects = nearestObjects [ACE_player, ["All"], 13];
@@ -128,7 +128,7 @@ GVAR(collectedActionPoints) resize 0;
if (GVAR(openedMenuType) == 0) then {
if (isNull curatorCamera) then {
if (vehicle ACE_player == ACE_player) then {
- if (ACE_diagTime > GVAR(lastTimeSearchedActions) + 0.20) then {
+ if (diag_tickTime > GVAR(lastTimeSearchedActions) + 0.20) then {
// Once every 0.2 secs, collect nearby objects active and visible action points and render them
call _fnc_renderNearbyActions;
} else {
diff --git a/addons/interact_menu/functions/fnc_renderMenu.sqf b/addons/interact_menu/functions/fnc_renderMenu.sqf
index 6abb980620..f975db17f1 100644
--- a/addons/interact_menu/functions/fnc_renderMenu.sqf
+++ b/addons/interact_menu/functions/fnc_renderMenu.sqf
@@ -99,8 +99,8 @@ if (GVAR(UseListMenu)) then {
// Animate menu scale
if (_menuInSelectedPath && {_menuDepth == count _path}) then {
- _scaleX = _scaleX * (0.3 + 0.7 * (((ACE_diagTime - GVAR(expandedTime)) * linearConversion [0, 2, GVAR(menuAnimationSpeed), 8, 16]) min 1));
- _scaleY = _scaleY * (0.3 + 0.7 * (((ACE_diagTime - GVAR(expandedTime)) * linearConversion [0, 2, GVAR(menuAnimationSpeed), 8, 16]) min 1));
+ _scaleX = _scaleX * (0.3 + 0.7 * (((diag_tickTime - GVAR(expandedTime)) * linearConversion [0, 2, GVAR(menuAnimationSpeed), 8, 16]) min 1));
+ _scaleY = _scaleY * (0.3 + 0.7 * (((diag_tickTime - GVAR(expandedTime)) * linearConversion [0, 2, GVAR(menuAnimationSpeed), 8, 16]) min 1));
};
private _target = _actionObject;
diff --git a/addons/interaction/CfgVehicles.hpp b/addons/interaction/CfgVehicles.hpp
index 437b84c3a6..dd6ca32de6 100644
--- a/addons/interaction/CfgVehicles.hpp
+++ b/addons/interaction/CfgVehicles.hpp
@@ -11,7 +11,7 @@ class CfgVehicles {
scope = 2;
isGlobal = 1;
isSingular = 1;
- icon = PATHTOF(UI\Icon_Module_Interaction_ca.paa);
+ icon = QPATHTOF(UI\Icon_Module_Interaction_ca.paa);
class Arguments {
class EnableTeamManagement {
displayName = CSTRING(EnableTeamManagement_DisplayName);
@@ -68,14 +68,14 @@ class CfgVehicles {
statement = "";
showDisabled = 0;
priority = 3.2;
- icon = PATHTOF(UI\team\team_management_ca.paa);
+ icon = QPATHTOF(UI\team\team_management_ca.paa);
class ACE_AssignTeamRed {
displayName = CSTRING(AssignTeamRed);
condition = QUOTE([ARR_2(_player,_target)] call DFUNC(canJoinTeam));
statement = QUOTE([ARR_2(_target,'RED')] call DFUNC(joinTeam));
showDisabled = 1;
- icon = PATHTOF(UI\team\team_red_ca.paa);
+ icon = QPATHTOF(UI\team\team_red_ca.paa);
priority = 2.4;
};
class ACE_AssignTeamGreen {
@@ -83,7 +83,7 @@ class CfgVehicles {
condition = QUOTE([ARR_2(_player,_target)] call DFUNC(canJoinTeam));
statement = QUOTE([ARR_2(_target,'GREEN')] call DFUNC(joinTeam));
showDisabled = 1;
- icon = PATHTOF(UI\team\team_green_ca.paa);
+ icon = QPATHTOF(UI\team\team_green_ca.paa);
priority = 2.3;
};
class ACE_AssignTeamBlue {
@@ -91,7 +91,7 @@ class CfgVehicles {
condition = QUOTE([ARR_2(_player,_target)] call DFUNC(canJoinTeam));
statement = QUOTE([ARR_2(_target,'BLUE')] call DFUNC(joinTeam));
showDisabled = 1;
- icon = PATHTOF(UI\team\team_blue_ca.paa);
+ icon = QPATHTOF(UI\team\team_blue_ca.paa);
priority = 2.2;
};
class ACE_AssignTeamYellow {
@@ -99,7 +99,7 @@ class CfgVehicles {
condition = QUOTE([ARR_2(_player,_target)] call DFUNC(canJoinTeam));
statement = QUOTE([ARR_2(_target,'YELLOW')] call DFUNC(joinTeam));
showDisabled = 1;
- icon = PATHTOF(UI\team\team_yellow_ca.paa);
+ icon = QPATHTOF(UI\team\team_yellow_ca.paa);
priority = 2.1;
};
class ACE_UnassignTeam {
@@ -107,7 +107,7 @@ class CfgVehicles {
condition = QUOTE([ARR_2(_player,_target)] call DFUNC(canJoinTeam) && {assignedTeam _target != 'MAIN'});
statement = QUOTE([ARR_2(_target,'MAIN')] call DFUNC(joinTeam));
showDisabled = 1;
- icon = PATHTOF(UI\team\team_white_ca.paa);
+ icon = QPATHTOF(UI\team\team_white_ca.paa);
priority = 2.5;
};
};
@@ -118,7 +118,7 @@ class CfgVehicles {
statement = QUOTE([_player] joinSilent group _target);
showDisabled = 0;
priority = 2.6;
- icon = PATHTOF(UI\team\team_management_ca.paa);
+ icon = QPATHTOF(UI\team\team_management_ca.paa);
};
class ACE_GetDown {
displayName = CSTRING(GetDown);
@@ -223,7 +223,7 @@ class CfgVehicles {
statement = "";
showDisabled = 1;
priority = 3.2;
- icon = PATHTOF(UI\team\team_management_ca.paa);
+ icon = QPATHTOF(UI\team\team_management_ca.paa);
class ACE_JoinTeamRed {
displayName = CSTRING(JoinTeamRed);
@@ -232,7 +232,7 @@ class CfgVehicles {
statement = QUOTE([ARR_2(_player,'RED')] call DFUNC(joinTeam));
showDisabled = 1;
priority = 2.4;
- icon = PATHTOF(UI\team\team_red_ca.paa);
+ icon = QPATHTOF(UI\team\team_red_ca.paa);
};
class ACE_JoinTeamGreen {
displayName = CSTRING(JoinTeamGreen);
@@ -241,7 +241,7 @@ class CfgVehicles {
statement = QUOTE([ARR_2(_player,'GREEN')] call DFUNC(joinTeam));
showDisabled = 1;
priority = 2.3;
- icon = PATHTOF(UI\team\team_green_ca.paa);
+ icon = QPATHTOF(UI\team\team_green_ca.paa);
};
class ACE_JoinTeamBlue {
displayName = CSTRING(JoinTeamBlue);
@@ -250,7 +250,7 @@ class CfgVehicles {
statement = QUOTE([ARR_2(_player,'BLUE')] call DFUNC(joinTeam));
showDisabled = 1;
priority = 2.2;
- icon = PATHTOF(UI\team\team_blue_ca.paa);
+ icon = QPATHTOF(UI\team\team_blue_ca.paa);
};
class ACE_JoinTeamYellow {
displayName = CSTRING(JoinTeamYellow);
@@ -259,7 +259,7 @@ class CfgVehicles {
statement = QUOTE([ARR_2(_player,'YELLOW')] call DFUNC(joinTeam));
showDisabled = 1;
priority = 2.1;
- icon = PATHTOF(UI\team\team_yellow_ca.paa);
+ icon = QPATHTOF(UI\team\team_yellow_ca.paa);
};
class ACE_LeaveTeam {
displayName = CSTRING(LeaveTeam);
@@ -268,7 +268,7 @@ class CfgVehicles {
statement = QUOTE([ARR_2(_player,'MAIN')] call DFUNC(joinTeam));
showDisabled = 1;
priority = 2.5;
- icon = PATHTOF(UI\team\team_white_ca.paa);
+ icon = QPATHTOF(UI\team\team_white_ca.paa);
};
class ACE_BecomeLeader {
displayName = CSTRING(BecomeLeader);
@@ -277,7 +277,7 @@ class CfgVehicles {
statement = QUOTE(_this call DFUNC(doBecomeLeader));
showDisabled = 1;
priority = 1.0;
- icon = PATHTOF(UI\team\team_white_ca.paa);
+ icon = QPATHTOF(UI\team\team_white_ca.paa);
};
class ACE_LeaveGroup {
displayName = CSTRING(LeaveGroup);
@@ -286,7 +286,7 @@ class CfgVehicles {
statement = QUOTE(_oldGroup = units group _player; _newGroup = createGroup side _player; [_player] joinSilent _newGroup; {_player reveal _x} forEach _oldGroup;);
showDisabled = 1;
priority = 1.2;
- icon = PATHTOF(UI\team\team_management_ca.paa);
+ icon = QPATHTOF(UI\team\team_management_ca.paa);
};
};
@@ -496,14 +496,6 @@ class CfgVehicles {
};
};
- class Pod_Heli_Transport_04_base_F: StaticWeapon {
- class ACE_Actions: ACE_Actions {
- class ACE_MainActions: ACE_MainActions {
- distance = 5;
- };
- };
- };
-
class StaticMGWeapon: StaticWeapon {};
class HMG_01_base_F: StaticMGWeapon {};
@@ -552,6 +544,14 @@ class CfgVehicles {
class ACE_SelfActions {};
};
+ class Slingload_base_F: ReammoBox_F {};
+ class Pod_Heli_Transport_04_base_F: Slingload_base_F {
+ class ACE_Actions: ACE_Actions {
+ class ACE_MainActions: ACE_MainActions {
+ distance = 5;
+ };
+ };
+ };
class ACE_RepairItem_Base: ThingX {
class ACE_Actions {
diff --git a/addons/interaction/RscTitles.hpp b/addons/interaction/RscTitles.hpp
index d03d3e0f36..71070b1715 100644
--- a/addons/interaction/RscTitles.hpp
+++ b/addons/interaction/RscTitles.hpp
@@ -170,7 +170,7 @@ class RscTitles {
class controls {
class SelectIcon: RscInteractionHelperIcon{
idc = 1200;
- text = PATHTOF(UI\mouse_left_ca.paa);
+ text = QPATHTOF(UI\mouse_left_ca.paa);
y = 17.5 * GUI_GRID_H;
};
class SelectText: RscInteractionText{
@@ -180,7 +180,7 @@ class RscTitles {
};
class GoBackIcon: RscInteractionHelperIcon{
idc = 1201;
- text = PATHTOF(UI\mouse_right_ca.paa);
+ text = QPATHTOF(UI\mouse_right_ca.paa);
y = 19.5 * GUI_GRID_H;
};
class GoBackText: RscInteractionText{
@@ -190,7 +190,7 @@ class RscTitles {
};
class ScrollIcon: RscInteractionHelperIcon{
idc = 1202;
- text = PATHTOF(UI\mouse_scroll_ca.paa);
+ text = QPATHTOF(UI\mouse_scroll_ca.paa);
y = 18.5 * GUI_GRID_H;
};
class ScrollText: RscInteractionText{
diff --git a/addons/interaction/config.cpp b/addons/interaction/config.cpp
index 2413256bf4..5a21e452e3 100644
--- a/addons/interaction/config.cpp
+++ b/addons/interaction/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interact_menu"};
- author[] = {"commy2", "KoffeinFlummi", "esteldunedain", "bux578", "dixon13"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2", "KoffeinFlummi", "esteldunedain", "bux578", "dixon13"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/interaction/functions/fnc_addPassengersActions.sqf b/addons/interaction/functions/fnc_addPassengersActions.sqf
index 8ee95b7eb9..7b8ad69ee0 100644
--- a/addons/interaction/functions/fnc_addPassengersActions.sqf
+++ b/addons/interaction/functions/fnc_addPassengersActions.sqf
@@ -34,7 +34,7 @@ _actions = [];
] select (([driver _vehicle, gunner _vehicle, commander _vehicle] find _unit) + 1);
if (_unit getVariable [QEGVAR(captives,isHandcuffed), false]) then {
- _icon = QUOTE(PATHTOEF(captives,UI\handcuff_ca.paa));
+ _icon = QPATHTOEF(captives,UI\handcuff_ca.paa);
};
_actions pushBack [
diff --git a/addons/interaction/functions/fnc_openDoor.sqf b/addons/interaction/functions/fnc_openDoor.sqf
index b2249d1589..180c01fba9 100644
--- a/addons/interaction/functions/fnc_openDoor.sqf
+++ b/addons/interaction/functions/fnc_openDoor.sqf
@@ -62,10 +62,10 @@ GVAR(usedScrollWheel) = false;
};
// this allows for holding the door in it's current state.
- if (ACE_time > _time && {diag_frameno > _frame}) then {
+ if (CBA_missionTime > _time && {diag_frameno > _frame}) then {
GVAR(usedScrollWheel) = true;
};
// do incremental door opening
{_house animate [_x, GVAR(doorTargetPhase)]; false} count _animations;
-}, 0.1, [_house, _animations, getPosASL ACE_player, ACE_time + 0.2, diag_frameno + 2]] call CBA_fnc_addPerFrameHandler;
+}, 0.1, [_house, _animations, getPosASL ACE_player, CBA_missionTime + 0.2, diag_frameno + 2]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/inventory/config.cpp b/addons/inventory/config.cpp
index f0982a46b4..adef451644 100644
--- a/addons/inventory/config.cpp
+++ b/addons/inventory/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Pabst Mirror, commy2"};
- authorUrl = "https://github.com/PabstMirror/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Pabst Mirror, commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/inventory/functions/fnc_inventoryDisplayLoad.sqf b/addons/inventory/functions/fnc_inventoryDisplayLoad.sqf
index ab23701760..0e1daa4a52 100644
--- a/addons/inventory/functions/fnc_inventoryDisplayLoad.sqf
+++ b/addons/inventory/functions/fnc_inventoryDisplayLoad.sqf
@@ -53,7 +53,7 @@ _filter ctrlAddEventHandler ["LBSelChanged", {_this call FUNC(onLBSelChanged)}];
// readd "All" filter to last position and select it
_index = _filter lbAdd _nameAll;
_filter lbSetCurSel _index;
-}, [_filter]] call EFUNC(common,execNextFrame);
+}, [_filter]] call CBA_fnc_execNextFrame;
// monitor changes that can happen and force our update
private _dummyControl = _display ctrlCreate ["RscMapControl", -1];
diff --git a/addons/inventory/functions/fnc_onLBSelChanged.sqf b/addons/inventory/functions/fnc_onLBSelChanged.sqf
index 61e4b12b10..5ae49049fe 100644
--- a/addons/inventory/functions/fnc_onLBSelChanged.sqf
+++ b/addons/inventory/functions/fnc_onLBSelChanged.sqf
@@ -24,4 +24,4 @@ GVAR(selectedFilterIndex) = _index;
params ["_display"];
[_display] call FUNC(forceItemListUpdate);
-}, [ctrlParent _filter]] call EFUNC(common,execNextFrame);
+}, [ctrlParent _filter]] call CBA_fnc_execNextFrame;
diff --git a/addons/javelin/CfgVehicles.hpp b/addons/javelin/CfgVehicles.hpp
index e038c69812..a30489ad14 100644
--- a/addons/javelin/CfgVehicles.hpp
+++ b/addons/javelin/CfgVehicles.hpp
@@ -18,7 +18,7 @@ class CfgVehicles {
magazines[] = {"1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles"};
turretInfoType = "ACE_RscOptics_javelin";
- gunnerOpticsModel = PATHTOF(data\reticle_titan.p3d);
+ gunnerOpticsModel = QPATHTOF(data\reticle_titan.p3d);
opticsZoomMin = 0.08333;
opticsZoomMax = 0.04167;
opticsZoomInit = 0.08333;
@@ -36,7 +36,7 @@ class CfgVehicles {
magazines[] = {"1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles"};
turretInfoType = "ACE_RscOptics_javelin";
- gunnerOpticsModel = PATHTOF(data\reticle_titan.p3d);
+ gunnerOpticsModel = QPATHTOF(data\reticle_titan.p3d);
opticsZoomMin = 0.08333;
opticsZoomMax = 0.04167;
opticsZoomInit = 0.08333;
@@ -54,7 +54,7 @@ class CfgVehicles {
magazines[] = {"1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles"};
turretInfoType = "ACE_RscOptics_javelin";
- gunnerOpticsModel = PATHTOF(data\reticle_titan.p3d);
+ gunnerOpticsModel = QPATHTOF(data\reticle_titan.p3d);
opticsZoomMin = 0.08333;
opticsZoomMax = 0.04167;
opticsZoomInit = 0.08333;
diff --git a/addons/javelin/CfgWeapons.hpp b/addons/javelin/CfgWeapons.hpp
index 5d15a246fd..868b77c36c 100644
--- a/addons/javelin/CfgWeapons.hpp
+++ b/addons/javelin/CfgWeapons.hpp
@@ -15,7 +15,7 @@ class CfgWeapons {
class GVAR(Titan_Static) : missiles_titan_at {
GVAR(enabled) = 1;
weaponInfoType = "ACE_RscOptics_javelin";
- modelOptics = PATHTOF(data\reticle_titan.p3d);
+ modelOptics = QPATHTOF(data\reticle_titan.p3d);
canLock = 0;
magazines[] = {"1Rnd_GAT_missiles"};
@@ -31,7 +31,7 @@ class CfgWeapons {
class launch_B_Titan_short_F: launch_Titan_short_base {
GVAR(enabled) = 1;
weaponInfoType = "ACE_RscOptics_javelin";
- modelOptics = PATHTOF(data\reticle_titan.p3d);
+ modelOptics = QPATHTOF(data\reticle_titan.p3d);
canLock = 0;
@@ -41,7 +41,7 @@ class CfgWeapons {
class launch_I_Titan_short_F: launch_Titan_short_base {
GVAR(enabled) = 1;
weaponInfoType = "ACE_RscOptics_javelin";
- modelOptics = PATHTOF(data\reticle_titan.p3d);
+ modelOptics = QPATHTOF(data\reticle_titan.p3d);
canLock = 0;
@@ -51,7 +51,7 @@ class CfgWeapons {
class launch_O_Titan_short_F: launch_Titan_short_base {
GVAR(enabled) = 1;
weaponInfoType = "ACE_RscOptics_javelin";
- modelOptics = PATHTOF(data\reticle_titan.p3d);
+ modelOptics = QPATHTOF(data\reticle_titan.p3d);
canLock = 0;
@@ -62,7 +62,7 @@ class CfgWeapons {
class launch_Titan_short_F: launch_Titan_short_base {
GVAR(enabled) = 1;
weaponInfoType = "ACE_RscOptics_javelin";
- modelOptics = PATHTOF(data\reticle_titan.p3d);
+ modelOptics = QPATHTOF(data\reticle_titan.p3d);
canLock = 0;
diff --git a/addons/javelin/RscInGameUI.hpp b/addons/javelin/RscInGameUI.hpp
index f33aaffbb4..d780a4749f 100644
--- a/addons/javelin/RscInGameUI.hpp
+++ b/addons/javelin/RscInGameUI.hpp
@@ -306,7 +306,7 @@ class RscInGameUI {
};
class OpticsBorders: RscPicture {
idc = 699105;
- text = PATHTOF(data\javelin_ui_border_ca.paa);
+ text = QPATHTOF(data\javelin_ui_border_ca.paa);
colorText[] = {0,0,0,1};
x = "((SafezoneW -(3.1/4)*SafezoneH)/2) - SafezoneX";
y = "0.15*SafezoneH-SafezoneY";
diff --git a/addons/javelin/config.cpp b/addons/javelin/config.cpp
index 4ce34caa5e..31871ccb53 100644
--- a/addons/javelin/config.cpp
+++ b/addons/javelin/config.cpp
@@ -5,7 +5,9 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
- requiredAddons[] = { "ace_main", "ace_common", "ace_missileguidance" };
+ requiredAddons[] = {"ace_main", "ace_common", "ace_missileguidance"};
+ author = ECSTRING(common,ACETeam);
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/javelin/functions/fnc_onOpticDraw.sqf b/addons/javelin/functions/fnc_onOpticDraw.sqf
index 3424072290..20606dc4dd 100644
--- a/addons/javelin/functions/fnc_onOpticDraw.sqf
+++ b/addons/javelin/functions/fnc_onOpticDraw.sqf
@@ -20,7 +20,7 @@ _currentShooter = (vehicle ACE_player);
_args = uiNamespace getVariable[QGVAR(arguments), [] ];
if( (count _args) > 0) then {
_lastTick = _args select 0;
- if(ACE_diagTime - _lastTick > 1) then {
+ if(diag_tickTime - _lastTick > 1) then {
[] call FUNC(onOpticLoad);
};
};
@@ -193,12 +193,12 @@ if (isNull _newTarget) then {
// Lock on after 3 seconds
if(_currentTarget != _newTarget) then {
TRACE_1("New Target, reseting locking", _newTarget);
- _lockTime = ACE_diagTime;
+ _lockTime = diag_tickTime;
_currentTarget = _newTarget;
playSound "ACE_Javelin_Locking";
} else {
- if(ACE_diagTime - _lockTime > __LOCKONTIME + _randomLockInterval) then {
+ if(diag_tickTime - _lockTime > __LOCKONTIME + _randomLockInterval) then {
TRACE_2("LOCKED!", _currentTarget, _lockTime);
__JavelinIGUISeek ctrlSetTextColor __ColorGreen;
@@ -240,9 +240,9 @@ if (isNull _newTarget) then {
// Allow fire
_fireDisabledEH = [_fireDisabledEH] call FUNC(enableFire);
- if(ACE_diagTime > _soundTime) then {
+ if(diag_tickTime > _soundTime) then {
playSound "ACE_Javelin_Locked";
- _soundTime = ACE_diagTime + 0.25;
+ _soundTime = diag_tickTime + 0.25;
};
} else {
__JavelinIGUITargeting ctrlShow true;
@@ -274,9 +274,9 @@ if (isNull _newTarget) then {
{_x ctrlCommit __TRACKINTERVAL} forEach [__JavelinIGUITargetingGateTL,__JavelinIGUITargetingGateTR,__JavelinIGUITargetingGateBL,__JavelinIGUITargetingGateBR];
- if(ACE_diagTime > _soundTime) then {
+ if(diag_tickTime > _soundTime) then {
playSound "ACE_Javelin_Locking";
- _soundTime = ACE_diagTime + 0.25;
+ _soundTime = diag_tickTime + 0.25;
};
// Disallow fire
_fireDisabledEH = [_fireDisabledEH] call FUNC(disableFire);
@@ -303,7 +303,7 @@ if (isNull _newTarget) then {
//TRACE_2("", _newTarget, _currentTarget);
// Save arguments for next run
-_args set[0, ACE_diagTime];
+_args set[0, diag_tickTime];
_args set[1, _currentTarget];
_args set[2, _runTime];
_args set[3, _lockTime];
diff --git a/addons/javelin/functions/fnc_onOpticLoad.sqf b/addons/javelin/functions/fnc_onOpticLoad.sqf
index 9ab574df32..b75f391112 100644
--- a/addons/javelin/functions/fnc_onOpticLoad.sqf
+++ b/addons/javelin/functions/fnc_onOpticLoad.sqf
@@ -24,7 +24,7 @@ if(GVAR(pfehID) != -1) then {
uiNameSpace setVariable [QGVAR(arguments),
[
- ACE_diagTime, // Last runtime
+ diag_tickTime, // Last runtime
objNull, // currentTargetObject
0, // Run Time
0, // Lock Time
diff --git a/addons/kestrel4500/CfgVehicles.hpp b/addons/kestrel4500/CfgVehicles.hpp
index 9ca6510928..ccc4fa3bd2 100644
--- a/addons/kestrel4500/CfgVehicles.hpp
+++ b/addons/kestrel4500/CfgVehicles.hpp
@@ -9,7 +9,7 @@ class CfgVehicles {
statement = QUOTE(call FUNC(createKestrelDialog));
showDisabled = 0;
priority = 0.1;
- icon = QUOTE(PATHTOF(UI\Kestrel4500_Icon.paa));
+ icon = QPATHTOF(UI\Kestrel4500_Icon.paa);
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
class GVAR(show) {
displayName = CSTRING(ShowKestrel);
@@ -17,7 +17,7 @@ class CfgVehicles {
statement = QUOTE(call FUNC(displayKestrel));
showDisabled = 0;
priority = 0.2;
- icon = QUOTE(PATHTOF(UI\Kestrel4500_Icon.paa));
+ icon = QPATHTOF(UI\Kestrel4500_Icon.paa);
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
};
class GVAR(hide) {
@@ -26,7 +26,7 @@ class CfgVehicles {
statement = QUOTE(call FUNC(displayKestrel));
showDisabled = 0;
priority = 0.3;
- icon = QUOTE(PATHTOF(UI\Kestrel4500_Icon.paa));
+ icon = QPATHTOF(UI\Kestrel4500_Icon.paa);
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
};
};
diff --git a/addons/kestrel4500/CfgWeapons.hpp b/addons/kestrel4500/CfgWeapons.hpp
index c31b736ac6..8b318994a2 100644
--- a/addons/kestrel4500/CfgWeapons.hpp
+++ b/addons/kestrel4500/CfgWeapons.hpp
@@ -8,8 +8,8 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(Name);
descriptionShort = CSTRING(Description);
- model = PATHTOF(data\kestrel4500.p3d);
- picture = PATHTOF(UI\Kestrel4500.paa);
+ model = QPATHTOF(data\kestrel4500.p3d);
+ picture = QPATHTOF(UI\Kestrel4500.paa);
icon = "iconObject_circle";
mapSize = 0.034;
diff --git a/addons/kestrel4500/RscTitles.hpp b/addons/kestrel4500/RscTitles.hpp
index 7046918935..276e8c4392 100644
--- a/addons/kestrel4500/RscTitles.hpp
+++ b/addons/kestrel4500/RscTitles.hpp
@@ -348,25 +348,25 @@ class RscTitles {
fadeout = 0;
class controls {
class Preload_0 {
- text = PATHTOF(UI\Kestrel4500_0.paa);
+ text = QPATHTOF(UI\Kestrel4500_0.paa);
};
class Preload_1 {
- text = PATHTOF(UI\Kestrel4500_1.paa);
+ text = QPATHTOF(UI\Kestrel4500_1.paa);
};
class Preload_2 {
- text = PATHTOF(UI\Kestrel4500_2.paa);
+ text = QPATHTOF(UI\Kestrel4500_2.paa);
};
class Preload_3 {
- text = PATHTOF(UI\Kestrel4500_3.paa);
+ text = QPATHTOF(UI\Kestrel4500_3.paa);
};
class Preload_4 {
- text = PATHTOF(UI\Kestrel4500_4.paa);
+ text = QPATHTOF(UI\Kestrel4500_4.paa);
};
class Preload_5 {
- text = PATHTOF(UI\Kestrel4500_5.paa);
+ text = QPATHTOF(UI\Kestrel4500_5.paa);
};
class Preload_6 {
- text = PATHTOF(UI\Kestrel4500_6.paa);
+ text = QPATHTOF(UI\Kestrel4500_6.paa);
};
};
};
diff --git a/addons/kestrel4500/XEH_postInit.sqf b/addons/kestrel4500/XEH_postInit.sqf
index f22fc2228f..9511041bd2 100644
--- a/addons/kestrel4500/XEH_postInit.sqf
+++ b/addons/kestrel4500/XEH_postInit.sqf
@@ -11,7 +11,7 @@ GVAR(MinAvgMax) = false;
GVAR(MinAvgMaxMode) = 0;
GVAR(referenceHeadingMenu) = 0;
GVAR(referenceHeadingAutoSet) = true;
-GVAR(manualSetCooldown) = ACE_diagTime;
+GVAR(manualSetCooldown) = diag_tickTime;
GVAR(headingSetDisplayTimer) = 0;
GVAR(Menu) = 1;
diff --git a/addons/kestrel4500/config.cpp b/addons/kestrel4500/config.cpp
index 95a533fd9f..74e2f18f19 100644
--- a/addons/kestrel4500/config.cpp
+++ b/addons/kestrel4500/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_Kestrel4500"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ACE_common", "ACE_weather"};
- author[] = {ECSTRING(common,ACETeam), "Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {ECSTRING(common,ACETeam), "Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/kestrel4500/functions/fnc_buttonPressed.sqf b/addons/kestrel4500/functions/fnc_buttonPressed.sqf
index 83c471092a..a051f6b1b6 100644
--- a/addons/kestrel4500/functions/fnc_buttonPressed.sqf
+++ b/addons/kestrel4500/functions/fnc_buttonPressed.sqf
@@ -33,12 +33,12 @@ switch (_this) do {
case 2: { // Auto set
GVAR(RefHeading) = (getDir ACE_player) % 360;
GVAR(referenceHeadingMenu) = 0;
- GVAR(headingSetDisplayTimer) = ACE_diagTime;
+ GVAR(headingSetDisplayTimer) = diag_tickTime;
};
case 3: { // Manual set
GVAR(RefHeading) = GVAR(TmpHeading);
GVAR(referenceHeadingMenu) = 0;
- GVAR(headingSetDisplayTimer) = ACE_diagTime;
+ GVAR(headingSetDisplayTimer) = diag_tickTime;
};
};
};
@@ -73,13 +73,13 @@ switch (_this) do {
GVAR(MinAvgMax) = !GVAR(MinAvgMax);
} else {
if (GVAR(referenceHeadingMenu) == 3) then {
- if (ACE_diagTime - GVAR(manualSetCooldown) < 0.2) then {
+ if (diag_tickTime - GVAR(manualSetCooldown) < 0.2) then {
GVAR(TmpHeading) = GVAR(TmpHeading) - 10;
} else {
GVAR(TmpHeading) = GVAR(TmpHeading) - 1;
};
GVAR(TmpHeading) = (GVAR(TmpHeading) + 360) % 360;
- GVAR(manualSetCooldown) = ACE_diagTime;
+ GVAR(manualSetCooldown) = diag_tickTime;
};
};
};
@@ -88,13 +88,13 @@ switch (_this) do {
GVAR(MinAvgMax) = !GVAR(MinAvgMax);
} else {
if (GVAR(referenceHeadingMenu) == 3) then {
- if (ACE_diagTime - GVAR(manualSetCooldown) < 0.2) then {
+ if (diag_tickTime - GVAR(manualSetCooldown) < 0.2) then {
GVAR(TmpHeading) = GVAR(TmpHeading) + 10;
} else {
GVAR(TmpHeading) = GVAR(TmpHeading) + 1;
};
GVAR(TmpHeading) = (GVAR(TmpHeading) + 360) % 360;
- GVAR(manualSetCooldown) = ACE_diagTime;
+ GVAR(manualSetCooldown) = diag_tickTime;
};
};
};
diff --git a/addons/kestrel4500/functions/fnc_displayKestrel.sqf b/addons/kestrel4500/functions/fnc_displayKestrel.sqf
index 64d06fea1c..28de70a13d 100644
--- a/addons/kestrel4500/functions/fnc_displayKestrel.sqf
+++ b/addons/kestrel4500/functions/fnc_displayKestrel.sqf
@@ -59,8 +59,8 @@ GVAR(Overlay) = true;
[_this select 1] call CBA_fnc_removePerFrameHandler;
};
- if (ACE_diagTime > GVAR(updateTimer)) then {
- GVAR(updateTimer) = ACE_diagTime + 1;
+ if (diag_tickTime > GVAR(updateTimer)) then {
+ GVAR(updateTimer) = diag_tickTime + 1;
private ["_outputData"];
_outputData = [] call FUNC(generateOutputData);
@@ -126,7 +126,7 @@ GVAR(Overlay) = true;
};
call FUNC(updateImpellerState);
- __ctrlKestrel4500 ctrlSetText format [QUOTE(PATHTOF(UI\Kestrel4500_%1.paa)), floor(GVAR(ImpellerState) % 7)];
+ __ctrlKestrel4500 ctrlSetText format [QPATHTOF(UI\Kestrel4500_%1.paa), floor(GVAR(ImpellerState) % 7)];
}, 0.01, []] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/kestrel4500/functions/fnc_generateOutputData.sqf b/addons/kestrel4500/functions/fnc_generateOutputData.sqf
index 016baebef7..c3bce5efa2 100644
--- a/addons/kestrel4500/functions/fnc_generateOutputData.sqf
+++ b/addons/kestrel4500/functions/fnc_generateOutputData.sqf
@@ -31,7 +31,7 @@
*/
#include "script_component.hpp"
-if (ACE_diagTime - GVAR(headingSetDisplayTimer) < 0.8) exitWith {["", "", " Heading Set", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]};
+if (diag_tickTime - GVAR(headingSetDisplayTimer) < 0.8) exitWith {["", "", " Heading Set", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]};
private ["_playerDir", "_playerAltitude", "_temperature", "_humidity", "_barometricPressure", "_airDensity", "_densityAltitude", "_chill", "_heatIndex", "_dewPoint", "_wetBulb", "_dayString", "_monthString", "_windSpeed", "_windDir", "_textTop", "_textCenterBig", "_textCenter", "_textCenterLine1Left", "_textCenterLine2Left", "_textCenterLine3Left", "_textCenterLine1Right", "_textCenterLine2Right", "_textCenterLine3Right", "_textInfoLine1", "_textInfoLine2", "_textBottomBig", "_textCenterLine1", "_textCenterLine2", "_textCenterLine3", "_textCenterLine4", "_textCenterLine5", "_textCenterLine6"];
diff --git a/addons/kestrel4500/initKeybinds.sqf b/addons/kestrel4500/initKeybinds.sqf
index 581ab1a1ae..8c99271970 100644
--- a/addons/kestrel4500/initKeybinds.sqf
+++ b/addons/kestrel4500/initKeybinds.sqf
@@ -56,4 +56,4 @@ _closeCode = {
closeDialog 0;
};
};
-[(localize LSTRING(Name)), QUOTE(PATHTOF(UI\Kestrel4500.paa)), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
+[(localize LSTRING(Name)), QPATHTOF(UI\Kestrel4500.paa), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
diff --git a/addons/laser/config.cpp b/addons/laser/config.cpp
index 79e3115023..1bf19317cf 100644
--- a/addons/laser/config.cpp
+++ b/addons/laser/config.cpp
@@ -5,7 +5,9 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
- requiredAddons[] = { "ace_common" };
+ requiredAddons[] = {"ace_common"};
+ author = ECSTRING(common,ACETeam);
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
@@ -13,4 +15,4 @@ class CfgPatches {
#include "CfgEventhandlers.hpp"
#include "CfgVehicles.hpp"
#include "CfgWeapons.hpp"
-#include "RscInGameUI.hpp"
\ No newline at end of file
+#include "RscInGameUI.hpp"
diff --git a/addons/laser/functions/fnc_laserOn.sqf b/addons/laser/functions/fnc_laserOn.sqf
index b49b123c95..12873b5ed0 100644
--- a/addons/laser/functions/fnc_laserOn.sqf
+++ b/addons/laser/functions/fnc_laserOn.sqf
@@ -17,7 +17,7 @@
#include "script_component.hpp"
private ["_uuid", "_args"];
-_uuid = format["%1%2%3", floor ACE_diagTime, floor random 1000, floor random 10000];
+_uuid = format["%1%2%3", floor diag_tickTime, floor random 1000, floor random 10000];
_args = [_uuid, _this];
["laser_laserOn", _args] call EFUNC(common,globalEvent);
_uuid;
diff --git a/addons/laser_selfdesignate/config.cpp b/addons/laser_selfdesignate/config.cpp
index dfa663e483..015775de06 100644
--- a/addons/laser_selfdesignate/config.cpp
+++ b/addons/laser_selfdesignate/config.cpp
@@ -6,6 +6,8 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_laser"};
+ author = ECSTRING(common,ACETeam);
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/laser_selfdesignate/functions/fnc_laserHudDesignateOn.sqf b/addons/laser_selfdesignate/functions/fnc_laserHudDesignateOn.sqf
index 5a67e6cb08..545e975187 100644
--- a/addons/laser_selfdesignate/functions/fnc_laserHudDesignateOn.sqf
+++ b/addons/laser_selfdesignate/functions/fnc_laserHudDesignateOn.sqf
@@ -32,7 +32,7 @@ FUNC(laserHudDesignatePFH) = {
};
if( (count _args) < 4) then {
- _args set[3, ACE_diagTime + FCS_UPDATE_DELAY];
+ _args set[3, diag_tickTime + FCS_UPDATE_DELAY];
};
_forceUpdateTime = _args select 3;
@@ -57,9 +57,9 @@ FUNC(laserHudDesignatePFH) = {
};
*/
- if(ACE_diagTime > _forceUpdateTime) then {
+ if(diag_tickTime > _forceUpdateTime) then {
["ace_fcs_forceUpdate", []] call ace_common_fnc_localEvent;
- _args set[3, ACE_diagTime + FCS_UPDATE_DELAY];
+ _args set[3, diag_tickTime + FCS_UPDATE_DELAY];
};
_this set[0, _args];
diff --git a/addons/laserpointer/config.cpp b/addons/laserpointer/config.cpp
index cbb3105696..63ac154471 100644
--- a/addons/laserpointer/config.cpp
+++ b/addons/laserpointer/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_acc_pointer_red","ACE_acc_pointer_green","ACE_acc_pointer_green_IR"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2"};
- authorUrl = "https://github.com/commy2";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/logistics_uavbattery/CfgSounds.hpp b/addons/logistics_uavbattery/CfgSounds.hpp
index 530c5b86a9..3cf83715ba 100644
--- a/addons/logistics_uavbattery/CfgSounds.hpp
+++ b/addons/logistics_uavbattery/CfgSounds.hpp
@@ -1,7 +1,7 @@
class CfgSounds {
class ACE_replaceUAVBattery {
name = "ACE_replaceUAVBattery";
- sound[]={QUOTE(PATHTOF(sounds\exchange_battery.ogg)),1,1};
+ sound[]={QPATHTOF(sounds\exchange_battery.ogg),1,1};
titles[]={};
};
};
diff --git a/addons/logistics_uavbattery/CfgVehicles.hpp b/addons/logistics_uavbattery/CfgVehicles.hpp
index a6f2db786f..2daa8c8011 100644
--- a/addons/logistics_uavbattery/CfgVehicles.hpp
+++ b/addons/logistics_uavbattery/CfgVehicles.hpp
@@ -20,7 +20,7 @@ class CfgVehicles {
statement = QUOTE([ARR_2(_player, _target)] call FUNC(refuelUAV));
showDisabled = 0;
priority = 1.245;
- icon = QUOTE(PATHTOF(ui\UAV_battery_ca.paa));
+ icon = QPATHTOF(ui\UAV_battery_ca.paa);
};
};
};
diff --git a/addons/logistics_uavbattery/CfgWeapons.hpp b/addons/logistics_uavbattery/CfgWeapons.hpp
index 46120f7c3d..8beedff39b 100644
--- a/addons/logistics_uavbattery/CfgWeapons.hpp
+++ b/addons/logistics_uavbattery/CfgWeapons.hpp
@@ -6,8 +6,8 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(Battery_Name);
descriptionShort = CSTRING(Battery_Description);
- model = QUOTE(PATHTOF(data\ace_battery.p3d));
- picture = QUOTE(PATHTOF(ui\UAV_battery_ca.paa));
+ model = QPATHTOF(data\ace_battery.p3d);
+ picture = QPATHTOF(ui\UAV_battery_ca.paa);
class ItemInfo: InventoryItem_Base_F {
mass = 20;
};
diff --git a/addons/logistics_uavbattery/config.cpp b/addons/logistics_uavbattery/config.cpp
index c6123e590f..5197a899e3 100644
--- a/addons/logistics_uavbattery/config.cpp
+++ b/addons/logistics_uavbattery/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_UAVBattery"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"marc_book"};
- authorUrl = "";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"marc_book"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/logistics_wirecutter/CfgSounds.hpp b/addons/logistics_wirecutter/CfgSounds.hpp
index 9958190ec1..598e72255b 100644
--- a/addons/logistics_wirecutter/CfgSounds.hpp
+++ b/addons/logistics_wirecutter/CfgSounds.hpp
@@ -1,12 +1,12 @@
class CfgSounds {
class ACE_Wirecutter_sound {
name = "ACE_wirecutter_sound";
- sound[] = {QUOTE(PATHTOF(sound\wire_cut.ogg)), "db-0", 1};
+ sound[] = {QPATHTOF(sound\wire_cut.ogg), "db-0", 1};
titles[] = {};
};
class ACE_Wirecutter_sound_long {
name = "ACE_wirecutter_sound_long";
- sound[] = {QUOTE(PATHTOF(sound\wire_cut_long.ogg)), "db-0", 1};
+ sound[] = {QPATHTOF(sound\wire_cut_long.ogg), "db-0", 1};
titles[] = {};
};
};
diff --git a/addons/logistics_wirecutter/CfgWeapons.hpp b/addons/logistics_wirecutter/CfgWeapons.hpp
index 2b365cc8e6..0674c44f1a 100644
--- a/addons/logistics_wirecutter/CfgWeapons.hpp
+++ b/addons/logistics_wirecutter/CfgWeapons.hpp
@@ -6,8 +6,8 @@ class CfgWeapons {
author = ECSTRING(common,ACETeam);
displayName = CSTRING(wirecutterName);
descriptionShort = CSTRING(wirecutterDescription);
- model = QUOTE(PATHTOF(data\ace_wirecutter.p3d));
- picture = QUOTE(PATHTOF(ui\item_wirecutter_ca.paa));
+ model = QPATHTOF(data\ace_wirecutter.p3d);
+ picture = QPATHTOF(ui\item_wirecutter_ca.paa);
scope = 2;
class ItemInfo: InventoryItem_Base_F {
mass = 65;
diff --git a/addons/logistics_wirecutter/config.cpp b/addons/logistics_wirecutter/config.cpp
index d83cff4035..910dcdc9bb 100644
--- a/addons/logistics_wirecutter/config.cpp
+++ b/addons/logistics_wirecutter/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_wirecutter"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"gpgpgpgp", "PabstMirror"};
- authorUrl = "";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"gpgpgpgp", "PabstMirror"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/logistics_wirecutter/functions/fnc_interactEH.sqf b/addons/logistics_wirecutter/functions/fnc_interactEH.sqf
index e28ff17db6..f926a53e01 100644
--- a/addons/logistics_wirecutter/functions/fnc_interactEH.sqf
+++ b/addons/logistics_wirecutter/functions/fnc_interactEH.sqf
@@ -56,7 +56,7 @@ TRACE_1("Starting wire-cut action PFEH",_interactionType);
if ([_x] call FUNC(isFence)) then {
_fencesHelped pushBack _x;
_helper = "ACE_LogicDummy" createVehicleLocal (getpos _x);
- _action = [QGVAR(helperCutFence), (localize LSTRING(CutFence)), QUOTE(PATHTOF(ui\wirecutter_ca.paa)), _fncStatement, _fncCondition, {}, _x, {[0,0,0]}, 5.5] call EFUNC(interact_menu,createAction);
+ _action = [QGVAR(helperCutFence), (localize LSTRING(CutFence)), QPATHTOF(ui\wirecutter_ca.paa), _fncStatement, _fncCondition, {}, _x, {[0,0,0]}, 5.5] call EFUNC(interact_menu,createAction);
[_helper, 0, [],_action] call EFUNC(interact_menu,addActionToObject);
_helper setPosASL ((getPosASL _x) vectorAdd [0,0,1.25]);
_addedHelpers pushBack _helper;
diff --git a/addons/magazinerepack/CfgSounds.hpp b/addons/magazinerepack/CfgSounds.hpp
index 1390397e5e..a189c18b9c 100644
--- a/addons/magazinerepack/CfgSounds.hpp
+++ b/addons/magazinerepack/CfgSounds.hpp
@@ -1,12 +1,12 @@
class CfgSounds {
class GVAR(soundMagazineFinished) {
name = QGVAR(soundMagazineFinished);
- sound[]={QUOTE(PATHTOF(sounds\magrepack_finished.wav)),1,1};
+ sound[]={QPATHTOF(sounds\magrepack_finished.wav),1,1};
titles[]={};
};
class GVAR(soundRoundFinished) {
name = QGVAR(soundRoundFinished);
- sound[] = {QUOTE(PATHTOF(sounds\magrepack_single.wav)),1,1};
+ sound[] = {QPATHTOF(sounds\magrepack_single.wav),1,1};
titles[] = {};
};
};
diff --git a/addons/magazinerepack/CfgVehicles.hpp b/addons/magazinerepack/CfgVehicles.hpp
index 78af19bcfe..0bf4833bf0 100644
--- a/addons/magazinerepack/CfgVehicles.hpp
+++ b/addons/magazinerepack/CfgVehicles.hpp
@@ -8,7 +8,7 @@ class CfgVehicles {
exceptions[] = {"isNotInside", "isNotSitting"};
insertChildren = QUOTE(_this call FUNC(getMagazineChildren));
priority = -2;
- icon = QUOTE(PATHTOF(UI\repack_ca.paa));
+ icon = QPATHTOF(UI\repack_ca.paa);
};
};
};
diff --git a/addons/magazinerepack/config.cpp b/addons/magazinerepack/config.cpp
index 47c0ac889c..c660b44ca7 100644
--- a/addons/magazinerepack/config.cpp
+++ b/addons/magazinerepack/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"commy2","esteldunedain"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2","esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/main/config.cpp b/addons/main/config.cpp
index 95b530c7c9..9969e52447 100644
--- a/addons/main/config.cpp
+++ b/addons/main/config.cpp
@@ -567,8 +567,8 @@ class CfgPatches {
"cba_xeh_a3",
"cba_jr"
};
- author[] = {ECSTRING(common,ACETeam)};
- authorUrl = "http://ace3mod.com/";
+ author = ECSTRING(common,ACETeam);
+ url = CSTRING(URL);
VERSION_CONFIG;
};
};
@@ -581,7 +581,7 @@ class CfgMods {
hidePicture = "true";
hideName = "true";
actionName = "Website";
- action = "http://ace3mod.com/";
+ action = CSTRING(URL);
description = "Issue Tracker: https://github.com/acemod/ACE3/issues";
};
};
diff --git a/addons/main/script_macros.hpp b/addons/main/script_macros.hpp
index dc06424727..891114b93c 100644
--- a/addons/main/script_macros.hpp
+++ b/addons/main/script_macros.hpp
@@ -12,8 +12,6 @@
#define QFUNC(var1) QUOTE(DFUNC(var1))
#define QEFUNC(var1,var2) QUOTE(DEFUNC(var1,var2))
-#define PATHTOEF(var1,var2) PATHTOF_SYS(PREFIX,var1,var2)
-
#define GETVAR_SYS(var1,var2) getVariable [ARR_2(QUOTE(var1),var2)]
#define SETVAR_SYS(var1,var2) setVariable [ARR_2(QUOTE(var1),var2)]
#define SETPVAR_SYS(var1,var2) setVariable [ARR_3(QUOTE(var1),var2,true)]
@@ -82,12 +80,12 @@
#define TYPE_BACKPACK 901
#ifdef DISABLE_COMPILE_CACHE
- #define PREP(fncName) DFUNC(fncName) = compile preprocessFileLineNumbers QUOTE(PATHTOF(functions\DOUBLES(fnc,fncName).sqf))
+ #define PREP(fncName) DFUNC(fncName) = compile preprocessFileLineNumbers QPATHTOF(functions\DOUBLES(fnc,fncName).sqf)
#else
- #define PREP(fncName) [QUOTE(PATHTOF(functions\DOUBLES(fnc,fncName).sqf)), QFUNC(fncName)] call CBA_fnc_compileFunction
+ #define PREP(fncName) [QPATHTOF(functions\DOUBLES(fnc,fncName).sqf), QFUNC(fncName)] call CBA_fnc_compileFunction
#endif
-#define PREP_MODULE(folder) [] call compile preprocessFileLineNumbers QUOTE(PATHTOF(folder\__PREP__.sqf))
+#define PREP_MODULE(folder) [] call compile preprocessFileLineNumbers QPATHTOF(folder\__PREP__.sqf)
#define HASH_CREATE ([] call EFUNC(common,hashCreate))
#define HASH_SET(hash, key, val) ([hash, key, val, __FILE__, __LINE__] call EFUNC(common,hashSet))
@@ -101,9 +99,6 @@
#define HASHLIST_SET(hashList, index, value) ([hashList, index, value, __FILE__, __LINE__] call EFUNC(common,hashListSet))
#define HASHLIST_PUSH(hashList, value) ([hashList, value, __FILE__, __LINE__] call EFUNC(common,hashListPush))
-// Time functions for accuracy per frame
-#define ACE_tickTime (ACE_time + (diag_tickTime - ACE_diagTime))
-
#define ACE_isHC (!hasInterface && !isDedicated)
#define IDC_STAMINA_BAR 193
diff --git a/addons/main/script_mod.hpp b/addons/main/script_mod.hpp
index 1d9a8f2b6b..cda38b0458 100644
--- a/addons/main/script_mod.hpp
+++ b/addons/main/script_mod.hpp
@@ -13,4 +13,4 @@
// MINIMAL required version for the Mod. Components can specify others..
#define REQUIRED_VERSION 1.56
-#define REQUIRED_CBA_VERSION {2,3,1}
+#define REQUIRED_CBA_VERSION {2,4,0}
diff --git a/addons/main/stringtable.xml b/addons/main/stringtable.xml
index 985bfb4836..4648225f9f 100644
--- a/addons/main/stringtable.xml
+++ b/addons/main/stringtable.xml
@@ -12,5 +12,16 @@
Logistica ACE
ACE Logistique
+
+ http://ace3mod.com/
+ http://ace3mod.com/
+ http://ace3mod.com/
+ http://ace3mod.com/
+ http://ace3mod.com/
+ http://ace3mod.com/
+ http://ace3mod.com/
+ http://ace3mod.com/
+ http://ace3mod.com/
+
-
\ No newline at end of file
+
diff --git a/addons/map/CfgVehicles.hpp b/addons/map/CfgVehicles.hpp
index df52756eee..16eba79cb2 100644
--- a/addons/map/CfgVehicles.hpp
+++ b/addons/map/CfgVehicles.hpp
@@ -24,7 +24,7 @@ class CfgVehicles {
scope = 2;
isGlobal = 1;
isSingular = 1;
- icon = PATHTOF(UI\Icon_Module_Map_ca.paa);
+ icon = QPATHTOF(UI\Icon_Module_Map_ca.paa);
class Arguments {
class MapIllumination {
displayName = CSTRING(MapIllumination_DisplayName);
@@ -84,7 +84,7 @@ class CfgVehicles {
scope = 2;
isGlobal = 0;
isSingular = 1;
- icon = PATHTOF(UI\Icon_Module_BFTracking_ca.paa);
+ icon = QPATHTOF(UI\Icon_Module_BFTracking_ca.paa);
class Arguments {
class Enabled {
displayName = CSTRING(BFT_Enabled_DisplayName);
diff --git a/addons/map/XEH_postInitClient.sqf b/addons/map/XEH_postInitClient.sqf
index 18bc8793cc..7ee567cabf 100644
--- a/addons/map/XEH_postInitClient.sqf
+++ b/addons/map/XEH_postInitClient.sqf
@@ -30,7 +30,7 @@ call FUNC(determineZoom);
if (isNull findDisplay 12) exitWith {};
GVAR(lastStillPosition) = ((findDisplay 12) displayCtrl 51) ctrlMapScreenToWorld [0.5, 0.5];
- GVAR(lastStillTime) = ACE_time;
+ GVAR(lastStillTime) = CBA_missionTime;
GVAR(isShaking) = false;
//map sizes are multiples of 1280
diff --git a/addons/map/config.cpp b/addons/map/config.cpp
index e8a38d1222..78bf2340b7 100644
--- a/addons/map/config.cpp
+++ b/addons/map/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"KoffeinFlummi","Rocko","esteldunedain"};
- authorUrl = "https://github.com/KoffeinFlummi/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"KoffeinFlummi","Rocko","esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/map/functions/fnc_updateMapEffects.sqf b/addons/map/functions/fnc_updateMapEffects.sqf
index 0e36a6fdd6..b89a75aa32 100644
--- a/addons/map/functions/fnc_updateMapEffects.sqf
+++ b/addons/map/functions/fnc_updateMapEffects.sqf
@@ -44,8 +44,8 @@ if (GVAR(mapShake)) then {
_amplitude = (_speed - 0.1) / 5 * (1000 * _mapScale);
_time = 0.1;
- _shakePos = [(GVAR(lastStillPosition) select 0) + sin((ACE_time + _time - GVAR(lastStillTime))*100) * _amplitude * 0.25,
- (GVAR(lastStillPosition) select 1) + sin((ACE_time + _time - GVAR(lastStillTime))*260) * _amplitude];
+ _shakePos = [(GVAR(lastStillPosition) select 0) + sin((CBA_missionTime + _time - GVAR(lastStillTime))*100) * _amplitude * 0.25,
+ (GVAR(lastStillPosition) select 1) + sin((CBA_missionTime + _time - GVAR(lastStillTime))*260) * _amplitude];
_mapCtrl ctrlMapAnimAdd [_time, _mapScale, _shakePos];
ctrlMapAnimCommit _mapCtrl;
@@ -62,7 +62,7 @@ if (GVAR(mapShake)) then {
} else {
// The map is still, store state
GVAR(lastStillPosition) = _mapCentre;
- GVAR(lastStillTime) = ACE_time;
+ GVAR(lastStillTime) = CBA_missionTime;
};
};
};
diff --git a/addons/map_gestures/CfgVehicles.hpp b/addons/map_gestures/CfgVehicles.hpp
index d4c88883e6..5593d66181 100644
--- a/addons/map_gestures/CfgVehicles.hpp
+++ b/addons/map_gestures/CfgVehicles.hpp
@@ -8,7 +8,7 @@ class CfgVehicles {
isGlobal = 0;
isSingular = 1;
author = ECSTRING(common,ACETeam);
- icon = PATHTOF(ui\icon_module_map_gestures_ca.paa);
+ icon = QPATHTOF(ui\icon_module_map_gestures_ca.paa);
class Arguments {
class enabled {
displayName = CSTRING(enabled_DisplayName);
@@ -49,7 +49,7 @@ class CfgVehicles {
function = QFUNC(moduleGroupSettings);
isGlobal = 0;
author = ECSTRING(common,ACETeam);
- icon = PATHTOF(ui\icon_module_map_gestures_ca.paa);
+ icon = QPATHTOF(ui\icon_module_map_gestures_ca.paa);
class Arguments {
class leadColor {
displayName = CSTRING(leadColor_displayName);
diff --git a/addons/map_gestures/config.cpp b/addons/map_gestures/config.cpp
index 72e7f82078..52f333c717 100644
--- a/addons/map_gestures/config.cpp
+++ b/addons/map_gestures/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Dslyecxi", "MikeMatrix"};
- authorUrl = "https://github.com/MikeMatrix";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Dslyecxi", "MikeMatrix"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/maptools/CfgWeapons.hpp b/addons/maptools/CfgWeapons.hpp
index 5cec99bfb0..dc7a7046dd 100644
--- a/addons/maptools/CfgWeapons.hpp
+++ b/addons/maptools/CfgWeapons.hpp
@@ -5,8 +5,8 @@ class CfgWeapons {
class ACE_MapTools: ACE_ItemCore {
displayName = CSTRING(Name);
descriptionShort = CSTRING(Description);
- model = QUOTE(PATHTOF(data\ace_MapTools.p3d));
- picture = PATHTOF(UI\maptool_item.paa);
+ model = QPATHTOF(data\ace_MapTools.p3d);
+ picture = QPATHTOF(UI\maptool_item.paa);
scope = 2;
class ItemInfo: InventoryItem_Base_F {
mass = 1;
diff --git a/addons/maptools/MapGpsUI.hpp b/addons/maptools/MapGpsUI.hpp
index 170f0d1620..c5b230f163 100644
--- a/addons/maptools/MapGpsUI.hpp
+++ b/addons/maptools/MapGpsUI.hpp
@@ -26,7 +26,7 @@ class RscTitles {
y = Y_gps;
w = W_gps;
h = H_gps;
- text = PATHTOF(UI\mapGps.paa);
+ text = QPATHTOF(UI\mapGps.paa);
colorBackground[] = {1, 1, 1, 1};
};
class heading: RscText{
diff --git a/addons/maptools/config.cpp b/addons/maptools/config.cpp
index 1e82cd2269..6fedff6302 100644
--- a/addons/maptools/config.cpp
+++ b/addons/maptools/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_MapTools"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"esteldunedain"};
- authorUrl = "https://github.com/esteldunedain/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/maptools/functions/fnc_updateMapToolMarkers.sqf b/addons/maptools/functions/fnc_updateMapToolMarkers.sqf
index 5d11c6a6e9..530d213773 100644
--- a/addons/maptools/functions/fnc_updateMapToolMarkers.sqf
+++ b/addons/maptools/functions/fnc_updateMapToolMarkers.sqf
@@ -35,10 +35,10 @@ if (!("ACE_MapTools" in items ACE_player)|| {GVAR(mapTool_Shown) == 0}) exitWith
_rotatingTexture = "";
_textureWidth = 0;
if (GVAR(mapTool_Shown) == 1) then {
- _rotatingTexture = QUOTE(PATHTOF(data\mapToolRotatingNormal.paa));
+ _rotatingTexture = QPATHTOF(data\mapToolRotatingNormal.paa);
_textureWidth = TEXTURE_WIDTH_IN_M;
} else {
- _rotatingTexture = QUOTE(PATHTOF(data\mapToolRotatingSmall.paa));
+ _rotatingTexture = QPATHTOF(data\mapToolRotatingSmall.paa);
_textureWidth = TEXTURE_WIDTH_IN_M / 2;
};
@@ -51,7 +51,7 @@ _scaleY = _scaleX * ((_resWidth / _resHeight) / _aspectRatio); //handle bad aspe
_xPos = GVAR(mapTool_pos) select 0;
_yPos = (GVAR(mapTool_pos) select 1) + _textureWidth * CENTER_OFFSET_Y_PERC;
-_theMap drawIcon [QUOTE(PATHTOF(data\mapToolFixed.paa)), [1,1,1,1], [_xPos,_yPos], _scaleX, _scaleY, 0, "", 0];
+_theMap drawIcon [QPATHTOF(data\mapToolFixed.paa), [1,1,1,1], [_xPos,_yPos], _scaleX, _scaleY, 0, "", 0];
// Position and rotation of the rotating part
_xPos = (GVAR(mapTool_pos) select 0) + sin(GVAR(mapTool_angle)) * _textureWidth * CENTER_OFFSET_Y_PERC;
diff --git a/addons/markers/CfgEventHandlers.hpp b/addons/markers/CfgEventHandlers.hpp
index becf395052..e1f9294767 100644
--- a/addons/markers/CfgEventHandlers.hpp
+++ b/addons/markers/CfgEventHandlers.hpp
@@ -16,3 +16,9 @@ class Extended_PostInit_EventHandlers {
init = QUOTE(call COMPILE_FILE(XEH_postInit));
};
};
+
+class Extended_DisplayLoad_EventHandlers {
+ class RscDiary {
+ ADDON = QUOTE(_this call FUNC(mapDisplayInitEH));
+ };
+};
diff --git a/addons/markers/XEH_PREP.hpp b/addons/markers/XEH_PREP.hpp
index 67344454ec..c6ad5c6ba2 100644
--- a/addons/markers/XEH_PREP.hpp
+++ b/addons/markers/XEH_PREP.hpp
@@ -1,6 +1,7 @@
PREP(getEnabledChannels);
PREP(initInsertMarker);
+PREP(mapDisplayInitEH);
PREP(mapDrawEH);
PREP(onLBSelChangedChannel);
PREP(onLBSelChangedColor);
diff --git a/addons/markers/config.cpp b/addons/markers/config.cpp
index 24d3c778d8..658a3ab370 100644
--- a/addons/markers/config.cpp
+++ b/addons/markers/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/markers/functions/fnc_initInsertMarker.sqf b/addons/markers/functions/fnc_initInsertMarker.sqf
index 2de05575f7..549a89730d 100644
--- a/addons/markers/functions/fnc_initInsertMarker.sqf
+++ b/addons/markers/functions/fnc_initInsertMarker.sqf
@@ -238,4 +238,4 @@
//Update now and add eventHandler:
[_aceAngleSlider, _curSelAngle] call FUNC(onSliderPosChangedAngle);
_aceAngleSlider ctrlAddEventHandler ["SliderPosChanged", {_this call FUNC(onSliderPosChangedAngle)}];
-}, _this] call EFUNC(common,execNextFrame);
+}, _this] call CBA_fnc_execNextFrame;
diff --git a/addons/markers/functions/fnc_mapDisplayInitEH.sqf b/addons/markers/functions/fnc_mapDisplayInitEH.sqf
new file mode 100644
index 0000000000..662f6f80c0
--- /dev/null
+++ b/addons/markers/functions/fnc_mapDisplayInitEH.sqf
@@ -0,0 +1,34 @@
+/*
+ * Author: PabstMirror
+ * Handles XEH DisplayLoad for the various map displays (RscDiary)
+ *
+ * Arguments:
+ * 0: Map Display (idd 12,37,52,53)
+ *
+ * Return Value:
+ * None
+ *
+ * Example:
+ * [display] call ace_markers_fnc_mapDisplayInitEH
+ *
+ * Public: No
+ */
+#include "script_component.hpp"
+
+disableSerialization;
+
+params ["_display"];
+TRACE_1("params",_display);
+
+private _bisShapeLB = _display displayctrl 1091;
+private _curSelShape = missionNamespace getVariable [QGVAR(curSelMarkerShape), 0];
+TRACE_2("shape",_bisShapeLB,_curSelShape);
+_bisShapeLB ctrlAddEventHandler ["LBSelChanged", {_this call FUNC(onLBSelChangedShape)}];
+_bisShapeLB lbSetCurSel _curSelShape;
+
+
+private _bisColorLB = _display displayctrl 1090;
+private _curSelColor = missionNamespace getVariable [QGVAR(curSelMarkerColor), 0];
+TRACE_2("color",_bisColorLB,_curSelColor);
+_bisColorLB ctrlAddEventHandler ["LBSelChanged", {_this call FUNC(onLBSelChangedColor)}];
+_bisColorLB lbSetCurSel _curSelColor;
diff --git a/addons/markers/functions/fnc_onLBSelChangedColor.sqf b/addons/markers/functions/fnc_onLBSelChangedColor.sqf
index 215cd72580..dc186a6c61 100644
--- a/addons/markers/functions/fnc_onLBSelChangedColor.sqf
+++ b/addons/markers/functions/fnc_onLBSelChangedColor.sqf
@@ -26,3 +26,15 @@ GVAR(curSelMarkerColor) = _index;
private _config = (configFile >> "CfgMarkerColors") select _data;
GVAR(currentMarkerColorConfigName) = configName _config;
+
+//Set map display to same color:
+private _bisColorLB = switch (false) do {
+ case (isNull findDisplay 12): {(findDisplay 12) displayCtrl 1090};
+ case (isNull findDisplay 52): {(findDisplay 52) displayCtrl 1090};
+ case (isNull findDisplay 53): {(findDisplay 53) displayCtrl 1090};
+ case (isNull findDisplay 37): {(findDisplay 37) displayCtrl 1090};
+ default {controlNull};
+};
+if (_ctrl != _bisColorLB) then { //Don't set what we got a EH from
+ _bisColorLB lbSetCurSel GVAR(curSelMarkerColor);
+};
diff --git a/addons/markers/functions/fnc_onLBSelChangedShape.sqf b/addons/markers/functions/fnc_onLBSelChangedShape.sqf
index 41f0f30a0d..6fd9aabd89 100644
--- a/addons/markers/functions/fnc_onLBSelChangedShape.sqf
+++ b/addons/markers/functions/fnc_onLBSelChangedShape.sqf
@@ -26,3 +26,15 @@ GVAR(curSelMarkerShape) = _index;
private _config = (configFile >> "CfgMarkers") select _data;
GVAR(currentMarkerConfigName) = configName _config;
+
+//Set map display to same shape:
+private _bisShapeLB = switch (false) do {
+ case (isNull findDisplay 12): {(findDisplay 12) displayCtrl 1091};
+ case (isNull findDisplay 52): {(findDisplay 52) displayCtrl 1091};
+ case (isNull findDisplay 53): {(findDisplay 53) displayCtrl 1091};
+ case (isNull findDisplay 37): {(findDisplay 37) displayCtrl 1091};
+ default {controlNull};
+};
+if (_ctrl != _bisShapeLB) then { //Don't set what we got a EH from
+ _bisShapeLB lbSetCurSel GVAR(curSelMarkerShape);
+};
diff --git a/addons/markers/functions/fnc_placeMarker.sqf b/addons/markers/functions/fnc_placeMarker.sqf
index 5b0783b454..d3f52413be 100644
--- a/addons/markers/functions/fnc_placeMarker.sqf
+++ b/addons/markers/functions/fnc_placeMarker.sqf
@@ -32,5 +32,5 @@ if (_closeNum == 1) then {
]
]] call EFUNC(common,globalEvent);
- }, []] call EFUNC(common,execNextFrame);
+ }, []] call CBA_fnc_execNextFrame;
};
diff --git a/addons/medical/ACE_Medical_Actions.hpp b/addons/medical/ACE_Medical_Actions.hpp
index 5934203333..900e6cb26c 100644
--- a/addons/medical/ACE_Medical_Actions.hpp
+++ b/addons/medical/ACE_Medical_Actions.hpp
@@ -6,7 +6,7 @@ class ACE_Head {
ACTION_CONDITION
modifierFunction = QUOTE([ARR_4(_target,_player,0,_this select 3)] call FUNC(modifyMedicalAction));
EXCEPTIONS
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;
class Bandage {
displayName = CSTRING(Bandage);
@@ -16,7 +16,7 @@ class ACE_Head {
EXCEPTIONS
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
// Advanced medical
class FieldDressing {
@@ -27,28 +27,28 @@ class ACE_Head {
EXCEPTIONS
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'head', 'PackingBandage')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'head', 'PackingBandage')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
condition = QUOTE([ARR_4(_player, _target, 'head', 'ElasticBandage')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'head', 'ElasticBandage')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class QuikClot: fieldDressing {
displayName = CSTRING(Actions_QuikClot);
condition = QUOTE([ARR_4(_player, _target, 'head', 'QuikClot')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'head', 'QuikClot')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class CheckPulse: fieldDressing {
displayName = CSTRING(Actions_CheckPulse);
@@ -83,7 +83,7 @@ class ACE_Torso {
ACTION_CONDITION
modifierFunction = QUOTE([ARR_4(_target,_player,1,_this select 3)] call FUNC(modifyMedicalAction));
EXCEPTIONS
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;
class Bandage {
displayName = CSTRING(Bandage);
@@ -94,7 +94,7 @@ class ACE_Torso {
showDisabled = 1;
priority = 2;
enableInside = 1;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PlaceInBodyBag {
displayName = CSTRING(PlaceInBodyBag);
@@ -115,7 +115,7 @@ class ACE_Torso {
showDisabled = 1;
priority = 2;
enableInside = 1;
- icon = PATHTOF(UI\icons\triageCard.paa);
+ icon = QPATHTOF(UI\icons\triageCard.paa);
};
class Diagnose {
displayName = CSTRING(Actions_Diagnose);
@@ -138,35 +138,35 @@ class ACE_Torso {
showDisabled = 0;
priority = 2;
enableInside = 1;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'body', 'PackingBandage')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'body', 'PackingBandage')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
condition = QUOTE([ARR_4(_player, _target, 'body', 'ElasticBandage')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'body', 'ElasticBandage')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class QuikClot: fieldDressing {
displayName = CSTRING(Actions_QuikClot);
condition = QUOTE([ARR_4(_player, _target, 'body', 'QuikClot')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'body', 'QuikClot')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class SurgicalKit: fieldDressing {
displayName = CSTRING(Use_SurgicalKit);
condition = QUOTE([ARR_4(_player, _target, 'body', 'SurgicalKit')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'body', 'SurgicalKit')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\surgicalKit.paa);
+ icon = QPATHTOF(UI\icons\surgicalKit.paa);
};
class PersonalAidKit: fieldDressing {
displayName = CSTRING(Use_Aid_Kit);
@@ -190,7 +190,7 @@ class ACE_ArmLeft {
ACTION_CONDITION
modifierFunction = QUOTE([ARR_4(_target,_player,2,_this select 3)] call FUNC(modifyMedicalAction));
EXCEPTIONS
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;
class Bandage {
@@ -201,7 +201,7 @@ class ACE_ArmLeft {
EXCEPTIONS
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
// Advanced medical
@@ -213,70 +213,70 @@ class ACE_ArmLeft {
EXCEPTIONS
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'PackingBandage')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'PackingBandage')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'ElasticBandage')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'ElasticBandage')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class QuikClot: fieldDressing {
displayName = CSTRING(Actions_QuikClot);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'QuikClot')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'QuikClot')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class Tourniquet: fieldDressing {
displayName = CSTRING(Actions_Tourniquet);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'Tourniquet')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'Tourniquet')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\tourniquet.paa);
+ icon = QPATHTOF(UI\icons\tourniquet.paa);
};
class Morphine: fieldDressing {
displayName = CSTRING(Inject_Morphine);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'Morphine')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'Morphine')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Adenosine: Morphine {
displayName = CSTRING(Inject_Adenosine);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'Adenosine')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'Adenosine')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Atropine: Morphine {
displayName = CSTRING(Inject_Atropine);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'Atropine')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'Atropine')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Epinephrine: Morphine {
displayName = CSTRING(Inject_Epinephrine);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'Epinephrine')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'Epinephrine')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class BloodIV: fieldDressing {
displayName = CSTRING(Actions_Blood4_1000);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'BloodIV')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'BloodIV')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\iv.paa);
+ icon = QPATHTOF(UI\icons\iv.paa);
};
class BloodIV_500: BloodIV {
displayName = CSTRING(Actions_Blood4_500);
@@ -353,7 +353,7 @@ class ACE_ArmRight {
ACTION_CONDITION
modifierFunction = QUOTE([ARR_4(_target,_player,3,_this select 3)] call FUNC(modifyMedicalAction));
EXCEPTIONS
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;
class Bandage {
@@ -364,7 +364,7 @@ class ACE_ArmRight {
EXCEPTIONS
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
// Advanced medical
@@ -376,14 +376,14 @@ class ACE_ArmRight {
EXCEPTIONS
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'hand_r', 'PackingBandage')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_r', 'PackingBandage')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
@@ -402,14 +402,14 @@ class ACE_ArmRight {
condition = QUOTE([ARR_4(_player, _target, 'hand_r', 'Tourniquet')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_r', 'Tourniquet')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\tourniquet.paa);
+ icon = QPATHTOF(UI\icons\tourniquet.paa);
};
class Morphine: fieldDressing {
displayName = CSTRING(Inject_Morphine);
condition = QUOTE([ARR_4(_player, _target, 'hand_r', 'Morphine')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_r', 'Morphine')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Adenosine: Morphine {
@@ -417,7 +417,7 @@ class ACE_ArmRight {
condition = QUOTE([ARR_4(_player, _target, 'hand_r', 'Adenosine')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_r', 'Adenosine')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Atropine: Morphine {
displayName = CSTRING(Inject_Atropine);
@@ -436,7 +436,7 @@ class ACE_ArmRight {
condition = QUOTE([ARR_4(_player, _target, 'hand_r', 'BloodIV')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'hand_r', 'BloodIV')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\iv.paa);
+ icon = QPATHTOF(UI\icons\iv.paa);
};
class BloodIV_500: BloodIV {
displayName = CSTRING(Actions_Blood4_500);
@@ -514,7 +514,7 @@ class ACE_LegLeft {
ACTION_CONDITION
modifierFunction = QUOTE([ARR_4(_target,_player,4,_this select 3)] call FUNC(modifyMedicalAction));
EXCEPTIONS
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;
class Bandage {
@@ -525,7 +525,7 @@ class ACE_LegLeft {
EXCEPTIONS
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
@@ -538,14 +538,14 @@ class ACE_LegLeft {
EXCEPTIONS
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'leg_l', 'PackingBandage')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'PackingBandage')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
@@ -564,28 +564,28 @@ class ACE_LegLeft {
condition = QUOTE([ARR_4(_player, _target, 'leg_l', 'Tourniquet')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'Tourniquet')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\tourniquet.paa);
+ icon = QPATHTOF(UI\icons\tourniquet.paa);
};
class Morphine: fieldDressing {
displayName = CSTRING(Inject_Morphine);
condition = QUOTE([ARR_4(_player, _target, 'leg_l', 'Morphine')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'Morphine')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Adenosine: Morphine {
displayName = CSTRING(Inject_Atropine);
condition = QUOTE([ARR_4(_player, _target, 'leg_l', 'Adenosine')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'Adenosine')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Atropine: Morphine {
displayName = CSTRING(Inject_Atropine);
condition = QUOTE([ARR_4(_player, _target, 'leg_l', 'Atropine')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'Atropine')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Epinephrine: Morphine {
displayName = CSTRING(Inject_Epinephrine);
@@ -598,7 +598,7 @@ class ACE_LegLeft {
condition = QUOTE([ARR_4(_player, _target, 'leg_l', 'BloodIV')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'BloodIV')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\iv.paa);
+ icon = QPATHTOF(UI\icons\iv.paa);
};
class BloodIV_500: BloodIV {
displayName = CSTRING(Actions_Blood4_500);
@@ -662,7 +662,7 @@ class ACE_LegRight {
ACTION_CONDITION
modifierFunction = QUOTE([ARR_4(_target,_player,5,_this select 3)] call FUNC(modifyMedicalAction));
EXCEPTIONS
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;
class Bandage {
@@ -673,7 +673,7 @@ class ACE_LegRight {
EXCEPTIONS
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
@@ -686,14 +686,14 @@ class ACE_LegRight {
EXCEPTIONS
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'leg_r', 'PackingBandage')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'leg_r', 'PackingBandage')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
@@ -712,21 +712,21 @@ class ACE_LegRight {
condition = QUOTE([ARR_4(_player, _target, 'leg_r', 'Tourniquet')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'leg_r', 'Tourniquet')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\tourniquet.paa);
+ icon = QPATHTOF(UI\icons\tourniquet.paa);
};
class Morphine: fieldDressing {
displayName = CSTRING(Inject_Morphine);
condition = QUOTE([ARR_4(_player, _target, 'leg_r', 'Morphine')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'leg_r', 'Morphine')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Adenosine: Morphine {
displayName = CSTRING(Inject_Atropine);
condition = QUOTE([ARR_4(_player, _target, 'leg_r', 'Adenosine')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'leg_r', 'Adenosine')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Atropine: Morphine {
displayName = CSTRING(Inject_Atropine);
@@ -745,7 +745,7 @@ class ACE_LegRight {
condition = QUOTE([ARR_4(_player, _target, 'leg_r', 'BloodIV')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'leg_r', 'BloodIV')] call DFUNC(treatment));
EXCEPTIONS
- icon = PATHTOF(UI\icons\iv.paa);
+ icon = QPATHTOF(UI\icons\iv.paa);
};
class BloodIV_500: BloodIV {
displayName = CSTRING(Actions_Blood4_500);
diff --git a/addons/medical/ACE_Medical_SelfActions.hpp b/addons/medical/ACE_Medical_SelfActions.hpp
index 54a8ba60f5..fca025adcb 100644
--- a/addons/medical/ACE_Medical_SelfActions.hpp
+++ b/addons/medical/ACE_Medical_SelfActions.hpp
@@ -4,11 +4,11 @@ class Medical {
exceptions[] = {"isNotInside", "isNotSitting"};
statement = QUOTE([ARR_3(_target, true, 0)] call DFUNC(displayPatientInformation));
condition = "true";
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
class ACE_Head {
displayName = CSTRING(Head);
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
exceptions[] = {"isNotInside", "isNotSitting"};
statement = QUOTE([ARR_3(_target, true, 0)] call DFUNC(displayPatientInformation));
modifierFunction = QUOTE([ARR_4(_target,_player,0,_this select 3)] call FUNC(modifyMedicalAction));
@@ -23,7 +23,7 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'head', 'Bandage')] call DFUNC(treatment));
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
// Advanced medical
class FieldDressing {
@@ -34,28 +34,28 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'head', 'FieldDressing')] call DFUNC(treatment));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'head', 'PackingBandage')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'head', 'PackingBandage')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
condition = QUOTE([ARR_4(_player, _target, 'head', 'ElasticBandage')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'head', 'ElasticBandage')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class QuikClot: fieldDressing {
displayName = CSTRING(Actions_QuikClot);
condition = QUOTE([ARR_4(_player, _target, 'head', 'QuikClot')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'head', 'QuikClot')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class CheckPulse: fieldDressing {
displayName = CSTRING(Actions_CheckPulse);
@@ -81,7 +81,7 @@ class Medical {
modifierFunction = QUOTE([ARR_4(_target,_player,1,_this select 3)] call FUNC(modifyMedicalAction));
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
class Bandage {
displayName = CSTRING(Bandage);
@@ -91,7 +91,7 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'body', 'Bandage')] call DFUNC(treatment));
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class TriageCard {
@@ -102,7 +102,7 @@ class Medical {
statement = QUOTE([ARR_2(_target, true)] call DFUNC(displayTriageCard));
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\triageCard.paa);
+ icon = QPATHTOF(UI\icons\triageCard.paa);
};
// Advanced medical
@@ -114,28 +114,28 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'body', 'FieldDressing')] call DFUNC(treatment));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'body', 'PackingBandage')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'body', 'PackingBandage')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
condition = QUOTE([ARR_4(_player, _target, 'body', 'ElasticBandage')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'body', 'ElasticBandage')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class QuikClot: fieldDressing {
displayName = CSTRING(Actions_QuikClot);
condition = QUOTE([ARR_4(_player, _target, 'body', 'QuikClot')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'body', 'QuikClot')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
};
class ACE_ArmLeft {
@@ -145,7 +145,7 @@ class Medical {
statement = QUOTE([ARR_3(_target, true, 2)] call DFUNC(displayPatientInformation));
modifierFunction = QUOTE([ARR_4(_target,_player,2,_this select 3)] call FUNC(modifyMedicalAction));
condition = "true";
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
class Bandage {
displayName = CSTRING(Bandage);
@@ -155,7 +155,7 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'Bandage')] call DFUNC(treatment));
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
// Advanced medical
@@ -167,63 +167,63 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'FieldDressing')] call DFUNC(treatment));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'PackingBandage')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'PackingBandage')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'ElasticBandage')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'ElasticBandage')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class QuikClot: fieldDressing {
displayName = CSTRING(Actions_QuikClot);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'QuikClot')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'QuikClot')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class Tourniquet: fieldDressing {
displayName = CSTRING(Actions_Tourniquet);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'Tourniquet')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'Tourniquet')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\tourniquet.paa);
+ icon = QPATHTOF(UI\icons\tourniquet.paa);
};
class Morphine: fieldDressing {
displayName = CSTRING(Inject_Morphine);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'Morphine')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'Morphine')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Adenosine: Morphine {
displayName = CSTRING(Inject_Atropine);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'Adenosine')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'Adenosine')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Atropine: Morphine {
displayName = CSTRING(Inject_Atropine);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'Atropine')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'Atropine')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Epinephrine: Morphine {
displayName = CSTRING(Inject_Epinephrine);
condition = QUOTE([ARR_4(_player, _target, 'hand_l', 'Epinephrine')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_l', 'Epinephrine')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class CheckPulse: fieldDressing {
displayName = CSTRING(Actions_CheckPulse);
@@ -252,7 +252,7 @@ class Medical {
statement = QUOTE([ARR_3(_target, true, 3)] call DFUNC(displayPatientInformation));
modifierFunction = QUOTE([ARR_4(_target,_player,3,_this select 3)] call FUNC(modifyMedicalAction));
condition = "true";
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
class Bandage {
displayName = CSTRING(Bandage);
@@ -262,7 +262,7 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'hand_r', 'Bandage')] call DFUNC(treatment));
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
// Advanced medical
@@ -274,14 +274,14 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'hand_r', 'FieldDressing')] call DFUNC(treatment));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'hand_r', 'PackingBandage')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_r', 'PackingBandage')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
@@ -300,21 +300,21 @@ class Medical {
condition = QUOTE([ARR_4(_player, _target, 'hand_r', 'Tourniquet')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_r', 'Tourniquet')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\tourniquet.paa);
+ icon = QPATHTOF(UI\icons\tourniquet.paa);
};
class Morphine: fieldDressing {
displayName = CSTRING(Inject_Morphine);
condition = QUOTE([ARR_4(_player, _target, 'hand_r', 'Morphine')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_r', 'Morphine')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Adenosine: Morphine {
displayName = CSTRING(Inject_Atropine);
condition = QUOTE([ARR_4(_player, _target, 'hand_r', 'Adenosine')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'hand_r', 'Adenosine')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Atropine: Morphine {
displayName = CSTRING(Inject_Atropine);
@@ -355,7 +355,7 @@ class Medical {
statement = QUOTE([ARR_3(_target, true, 4)] call DFUNC(displayPatientInformation));
modifierFunction = QUOTE([ARR_4(_target,_player,4,_this select 3)] call FUNC(modifyMedicalAction));
condition = "true";
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
class Bandage {
displayName = CSTRING(Bandage);
@@ -365,7 +365,7 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'Bandage')] call DFUNC(treatment));
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
@@ -378,14 +378,14 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'FieldDressing')] call DFUNC(treatment));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'leg_l', 'PackingBandage')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'PackingBandage')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
@@ -404,28 +404,28 @@ class Medical {
condition = QUOTE([ARR_4(_player, _target, 'leg_l', 'Tourniquet')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'Tourniquet')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\tourniquet.paa);
+ icon = QPATHTOF(UI\icons\tourniquet.paa);
};
class Morphine: fieldDressing {
displayName = CSTRING(Inject_Morphine);
condition = QUOTE([ARR_4(_player, _target, 'leg_l', 'Morphine')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'Morphine')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Adenosine: Morphine {
displayName = CSTRING(Inject_Atropine);
condition = QUOTE([ARR_4(_player, _target, 'leg_l', 'Adenosine')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'Adenosine')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Atropine: Morphine {
displayName = CSTRING(Inject_Atropine);
condition = QUOTE([ARR_4(_player, _target, 'leg_l', 'Atropine')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'leg_l', 'Atropine')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Epinephrine: Morphine {
displayName = CSTRING(Inject_Epinephrine);
@@ -447,7 +447,7 @@ class Medical {
statement = QUOTE([ARR_3(_target, true, 5)] call DFUNC(displayPatientInformation));
modifierFunction = QUOTE([ARR_4(_target,_player,5,_this select 3)] call FUNC(modifyMedicalAction));
condition = "true";
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
class Bandage {
displayName = CSTRING(Bandage);
@@ -457,7 +457,7 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'leg_r', 'Bandage')] call DFUNC(treatment));
showDisabled = 1;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
@@ -470,14 +470,14 @@ class Medical {
statement = QUOTE([ARR_4(_player, _target, 'leg_r', 'FieldDressing')] call DFUNC(treatment));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\bandage.paa);
+ icon = QPATHTOF(UI\icons\bandage.paa);
};
class PackingBandage: fieldDressing {
displayName = CSTRING(Actions_PackingBandage);
condition = QUOTE([ARR_4(_player, _target, 'leg_r', 'PackingBandage')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'leg_r', 'PackingBandage')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\packingBandage.paa);
+ icon = QPATHTOF(UI\icons\packingBandage.paa);
};
class ElasticBandage: fieldDressing {
displayName = CSTRING(Actions_ElasticBandage);
@@ -496,21 +496,21 @@ class Medical {
condition = QUOTE([ARR_4(_player, _target, 'leg_r', 'Tourniquet')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'leg_r', 'Tourniquet')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\tourniquet.paa);
+ icon = QPATHTOF(UI\icons\tourniquet.paa);
};
class Morphine: fieldDressing {
displayName = CSTRING(Inject_Morphine);
condition = QUOTE([ARR_4(_player, _target, 'leg_r', 'Morphine')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'leg_r', 'Morphine')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Adenosine: Morphine {
displayName = CSTRING(Inject_Atropine);
condition = QUOTE([ARR_4(_player, _target, 'leg_r', 'Adenosine')] call DFUNC(canTreatCached));
exceptions[] = {"isNotInside"};
statement = QUOTE([ARR_4(_player, _target, 'leg_r', 'Adenosine')] call DFUNC(treatment));
- icon = PATHTOF(UI\icons\autoInjector.paa);
+ icon = QPATHTOF(UI\icons\autoInjector.paa);
};
class Atropine: Morphine {
displayName = CSTRING(Inject_Atropine);
diff --git a/addons/medical/CfgEden.hpp b/addons/medical/CfgEden.hpp
index 508d53d54c..a9b4594b66 100644
--- a/addons/medical/CfgEden.hpp
+++ b/addons/medical/CfgEden.hpp
@@ -16,9 +16,9 @@ class Cfg3DEN {
class Value: ctrlToolbox {
idc = 100;
style = "0x02";
- x = "48 * (pixelW * 1.25 * 4)";
- w = "82 * (pixelW * 1.25 * 4)";
- h = "5 * (pixelH * 1.25 * 4)";
+ x = "48 * (pixelW * pixelGrid * 0.25)";
+ w = "82 * (pixelW * pixelGrid * 0.25)";
+ h = "5 * (pixelH * pixelGrid * 0.25)";
rows = 1;
columns = 4;
strings[] = {"$STR_3DEN_Attributes_Lock_Default_text", CSTRING(AssignMedicRoles_role_none), CSTRING(AssignMedicRoles_role_medic), CSTRING(AssignMedicRoles_role_doctorShort)};
diff --git a/addons/medical/CfgSounds.hpp b/addons/medical/CfgSounds.hpp
index 6b5fa48344..9cc5faedf9 100644
--- a/addons/medical/CfgSounds.hpp
+++ b/addons/medical/CfgSounds.hpp
@@ -1,37 +1,37 @@
class CfgSounds {
class ACE_heartbeat_fast_1 {
name = "ACE_heartbeat_fast_1";
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\fast_1.wav)), "db+1", 1};
+ sound[] = {QPATHTOF(sounds\heart_beats\fast_1.wav), "db+1", 1};
titles[] = {};
};
class ACE_heartbeat_fast_2 {
name = "ACE_heartbeat_fast_2";
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\fast_2.wav)), "db+1", 1};
+ sound[] = {QPATHTOF(sounds\heart_beats\fast_2.wav), "db+1", 1};
titles[] = {};
};
class ACE_heartbeat_fast_3 {
name = "ACE_heartbeat_fast_3";
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\fast_3.wav)), "db+1", 1};
+ sound[] = {QPATHTOF(sounds\heart_beats\fast_3.wav), "db+1", 1};
titles[] = {};
};
class ACE_heartbeat_norm_1 {
name = "ACE_heartbeat_norm_1";
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\norm_1.wav)), "db+1", 1};
+ sound[] = {QPATHTOF(sounds\heart_beats\norm_1.wav), "db+1", 1};
titles[] = {};
};
class ACE_heartbeat_norm_2 {
name = "ACE_heartbeat_norm_2";
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\norm_2.wav)), "db+1", 1};
+ sound[] = {QPATHTOF(sounds\heart_beats\norm_2.wav), "db+1", 1};
titles[] = {};
};
class ACE_heartbeat_slow_1 {
name = "ACE_heartbeat_slow_1";
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\slow_1.wav)), "db+1", 1};
+ sound[] = {QPATHTOF(sounds\heart_beats\slow_1.wav), "db+1", 1};
titles[] = {};
};
class ACE_heartbeat_slow_2 {
name = "ACE_heartbeat_slow_2";
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\slow_2.wav)), "db+1", 1};
+ sound[] = {QPATHTOF(sounds\heart_beats\slow_2.wav), "db+1", 1};
titles[] = {};
};
};
diff --git a/addons/medical/CfgVehicles.hpp b/addons/medical/CfgVehicles.hpp
index 86ad45296b..3425fa9ad3 100644
--- a/addons/medical/CfgVehicles.hpp
+++ b/addons/medical/CfgVehicles.hpp
@@ -14,7 +14,7 @@ class CfgVehicles {
class ACE_moduleMedicalSettings: ACE_Module {
scope = 2;
displayName = CSTRING(MedicalSettings_Module_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Medical_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Medical_ca.paa);
category = "ACE_medical";
function = QUOTE(DFUNC(moduleMedicalSettings));
functionPriority = 1;
@@ -156,9 +156,9 @@ class CfgVehicles {
class ACE_moduleBasicMedicalSettings: ACE_Module {
scope = 2;
displayName = CSTRING(BasicMedicalSettings_Module_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Medical_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Medical_ca.paa);
category = "ACE_medical";
- function = QUOTE(FUNC(moduleBasicMedicalSettings));
+ function = QFUNC(moduleBasicMedicalSettings);
functionPriority = 10;
isGlobal = 2;
isSingular = 1;
@@ -198,9 +198,9 @@ class CfgVehicles {
class ACE_moduleAdvancedMedicalSettings: ACE_Module {
scope = 2;
displayName = CSTRING(AdvancedMedicalSettings_Module_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Medical_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Medical_ca.paa);
category = "ACE_medical";
- function = QUOTE(FUNC(moduleAdvancedMedicalSettings));
+ function = QFUNC(moduleAdvancedMedicalSettings);
functionPriority = 10;
isGlobal = 2;
isSingular = 1;
@@ -320,7 +320,7 @@ class CfgVehicles {
class ACE_moduleReviveSettings: ACE_Module {
scope = 2;
displayName = CSTRING(ReviveSettings_Module_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Medical_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Medical_ca.paa);
category = "ACE_medical";
function = QUOTE(DFUNC(moduleReviveSettings));
functionPriority = 1;
@@ -364,9 +364,9 @@ class CfgVehicles {
class ACE_moduleAssignMedicRoles: Module_F {
scope = 2;
displayName = CSTRING(AssignMedicRoles_Module_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Medical_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Medical_ca.paa);
category = "ACE_medical";
- function = QUOTE(FUNC(moduleAssignMedicRoles));
+ function = QFUNC(moduleAssignMedicRoles);
functionPriority = 10;
isGlobal = 2;
isTriggerActivated = 0;
@@ -411,9 +411,9 @@ class CfgVehicles {
class ACE_moduleAssignMedicVehicle: Module_F {
scope = 2;
displayName = CSTRING(AssignMedicVehicle_Module_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Medical_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Medical_ca.paa);
category = "ACE_medical";
- function = QUOTE(FUNC(moduleAssignMedicalVehicle));
+ function = QFUNC(moduleAssignMedicalVehicle);
functionPriority = 10;
isGlobal = 2;
isTriggerActivated = 0;
@@ -455,9 +455,9 @@ class CfgVehicles {
class ACE_moduleAssignMedicalFacility: Module_F {
scope = 2;
displayName = CSTRING(AssignMedicalFacility_Module_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Medical_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Medical_ca.paa);
category = "ACE_medical";
- function = QUOTE(FUNC(moduleAssignMedicalFacility));
+ function = QFUNC(moduleAssignMedicalFacility);
functionPriority = 10;
isGlobal = 2;
isTriggerActivated = 0;
@@ -534,7 +534,7 @@ class CfgVehicles {
exceptions[] = {"isNotInside"};
condition = QUOTE((vehicle _target != _target && vehicle _target == vehicle _player) || GVAR(menuTypeStyle) == 1);
statement = QUOTE([ARR_3(_target, true, 0)] call DFUNC(displayPatientInformation));
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
#undef EXCEPTIONS
#undef ACTION_CONDITION
@@ -549,7 +549,7 @@ class CfgVehicles {
statement = QUOTE([ARR_2(_player, _target)] call DFUNC(actionLoadUnit));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
exceptions[] = {"isNotDragging", "isNotCarrying"};
};
class GVAR(UnLoadPatient) {
@@ -559,7 +559,7 @@ class CfgVehicles {
statement = QUOTE([ARR_2(_player, _target)] call DFUNC(actionUnloadUnit));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\icons\medical_cross.paa);
+ icon = QPATHTOF(UI\icons\medical_cross.paa);
exceptions[] = {"isNotDragging", "isNotCarrying", "isNotInside"};
};
};
@@ -659,7 +659,7 @@ class CfgVehicles {
scope = 1;
scopeCurator = 2;
side = -1;
- model = QUOTE(PATHTOEF(apl,bodybag.p3d));
+ model = QPATHTOEF(apl,bodybag.p3d);
icon = "";
displayName = CSTRING(Bodybag_Display);
EGVAR(dragging,canDrag) = 1;
@@ -686,40 +686,40 @@ class CfgVehicles {
scopeCurator = 0;
displayName = " ";
destrType = "DestructNo";
- model = QUOTE(PATHTOF(data\littergeneric.p3d));
+ model = QPATHTOF(data\littergeneric.p3d);
};
class ACE_MedicalLitter_clean: ACE_MedicalLitterBase {
- model = QUOTE(PATHTOF(data\littergeneric_clean.p3d));
+ model = QPATHTOF(data\littergeneric_clean.p3d);
};
class ACE_MedicalLitter_bandage1: ACE_MedicalLitterBase {
- model = QUOTE(PATHTOF(data\littergeneric_bandages1.p3d));
+ model = QPATHTOF(data\littergeneric_bandages1.p3d);
};
class ACE_MedicalLitter_bandage2: ACE_MedicalLitterBase {
- model = QUOTE(PATHTOF(data\littergeneric_bandages2.p3d));
+ model = QPATHTOF(data\littergeneric_bandages2.p3d);
};
class ACE_MedicalLitter_bandage3: ACE_MedicalLitterBase {
- model = QUOTE(PATHTOF(data\littergeneric_bandages3.p3d));
+ model = QPATHTOF(data\littergeneric_bandages3.p3d);
};
class ACE_MedicalLitter_packingBandage: ACE_MedicalLitterBase {
- model = QUOTE(PATHTOF(data\littergeneric_packingBandage.p3d));
+ model = QPATHTOF(data\littergeneric_packingBandage.p3d);
};
class ACE_MedicalLitter_gloves: ACE_MedicalLitterBase {
- model = QUOTE(PATHTOF(data\littergeneric_gloves.p3d));
+ model = QPATHTOF(data\littergeneric_gloves.p3d);
};
class ACE_MedicalLitter_adenosine: ACE_MedicalLitterBase {
- model = QUOTE(PATHTOF(data\littergeneric_adenosine.p3d));
+ model = QPATHTOF(data\littergeneric_adenosine.p3d);
};
class ACE_MedicalLitter_atropine: ACE_MedicalLitterBase {
- model = QUOTE(PATHTOF(data\littergeneric_atropine.p3d));
+ model = QPATHTOF(data\littergeneric_atropine.p3d);
};
class ACE_MedicalLitter_epinephrine: ACE_MedicalLitterBase {
- model = QUOTE(PATHTOF(data\littergeneric_epinephrine.p3d));
+ model = QPATHTOF(data\littergeneric_epinephrine.p3d);
};
class ACE_MedicalLitter_morphine: ACE_MedicalLitterBase {
- model = QUOTE(PATHTOF(data\littergeneric_morphine.p3d));
+ model = QPATHTOF(data\littergeneric_morphine.p3d);
};
class ACE_MedicalLitter_QuickClot: ACE_MedicalLitterBase {
- model = QUOTE(PATHTOF(data\littergeneric_Quikclot.p3d));
+ model = QPATHTOF(data\littergeneric_Quikclot.p3d);
};
class Item_Base_F;
class ACE_fieldDressingItem: Item_Base_F {
@@ -880,7 +880,7 @@ class CfgVehicles {
scopeCurator = 2;
accuracy = 1000;
displayName = CSTRING(medicalSupplyCrate);
- model = PATHTOF(data\ace_medcrate.p3d);
+ model = QPATHTOF(data\ace_medcrate.p3d);
author = ECSTRING(common,ACETeam);
class TransportItems {
MACRO_ADDITEM(ACE_fieldDressing,50);
diff --git a/addons/medical/CfgWeapons.hpp b/addons/medical/CfgWeapons.hpp
index 1c752c2aea..df9a756a34 100644
--- a/addons/medical/CfgWeapons.hpp
+++ b/addons/medical/CfgWeapons.hpp
@@ -22,8 +22,8 @@ class CfgWeapons {
class ACE_ItemCore;
class ACE_fieldDressing: ACE_ItemCore {
scope = 2;
- model = QUOTE(PATHTOF(data\bandage.p3d));
- picture = QUOTE(PATHTOF(ui\items\fieldDressing_x_ca.paa));
+ model = QPATHTOF(data\bandage.p3d);
+ picture = QPATHTOF(ui\items\fieldDressing_x_ca.paa);
displayName = CSTRING(Bandage_Basic_Display);
descriptionShort = CSTRING(Bandage_Basic_Desc_Short);
descriptionUse = CSTRING(Bandage_Basic_Desc_Use);
@@ -34,8 +34,8 @@ class CfgWeapons {
class ACE_packingBandage: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Packing_Bandage_Display);
- picture = QUOTE(PATHTOF(ui\items\packingBandage_x_ca.paa));
- model = QUOTE(PATHTOF(data\packingbandage.p3d));
+ picture = QPATHTOF(ui\items\packingBandage_x_ca.paa);
+ model = QPATHTOF(data\packingbandage.p3d);
descriptionShort = CSTRING(Packing_Bandage_Desc_Short);
descriptionUse = CSTRING(Packing_Bandage_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -45,7 +45,7 @@ class CfgWeapons {
class ACE_elasticBandage: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Bandage_Elastic_Display);
- picture = QUOTE(PATHTOF(ui\items\elasticBandage_x_ca.paa));
+ picture = QPATHTOF(ui\items\elasticBandage_x_ca.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Bandage_F.p3d";
descriptionShort = CSTRING(Bandage_Elastic_Desc_Short);
descriptionUse = CSTRING(Bandage_Elastic_Desc_Use);
@@ -56,8 +56,8 @@ class CfgWeapons {
class ACE_tourniquet: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Tourniquet_Display);
- picture = QUOTE(PATHTOF(ui\items\tourniquet_x_ca.paa));
- model = QUOTE(PATHTOF(data\tourniquet.p3d));
+ picture = QPATHTOF(ui\items\tourniquet_x_ca.paa);
+ model = QPATHTOF(data\tourniquet.p3d);
descriptionShort = CSTRING(Tourniquet_Desc_Short);
descriptionUse = CSTRING(Tourniquet_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -67,8 +67,8 @@ class CfgWeapons {
class ACE_morphine: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Morphine_Display);
- picture = QUOTE(PATHTOF(ui\items\morphine_x_ca.paa));
- model = QUOTE(PATHTOF(data\morphine.p3d));
+ picture = QPATHTOF(ui\items\morphine_x_ca.paa);
+ model = QPATHTOF(data\morphine.p3d);
descriptionShort = CSTRING(Morphine_Desc_Short);
descriptionUse = CSTRING(Morphine_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -78,8 +78,8 @@ class CfgWeapons {
class ACE_adenosine: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Adenosine_Display);
- picture = QUOTE(PATHTOF(ui\items\adenosine_x_ca.paa));
- model = QUOTE(PATHTOF(data\adenosine.p3d));
+ picture = QPATHTOF(ui\items\adenosine_x_ca.paa);
+ model = QPATHTOF(data\adenosine.p3d);
descriptionShort = CSTRING(adenosine_Desc_Short);
descriptionUse = CSTRING(adenosine_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -89,8 +89,8 @@ class CfgWeapons {
class ACE_atropine: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Atropine_Display);
- picture = QUOTE(PATHTOF(ui\items\atropine_x_ca.paa));
- model = QUOTE(PATHTOF(data\atropine.p3d));
+ picture = QPATHTOF(ui\items\atropine_x_ca.paa);
+ model = QPATHTOF(data\atropine.p3d);
descriptionShort = CSTRING(Atropine_Desc_Short);
descriptionUse = CSTRING(Atropine_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -100,8 +100,8 @@ class CfgWeapons {
class ACE_epinephrine: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Epinephrine_Display);
- picture = QUOTE(PATHTOF(ui\items\epinephrine_x_ca.paa));
- model = QUOTE(PATHTOF(data\epinephrine.p3d));
+ picture = QPATHTOF(ui\items\epinephrine_x_ca.paa);
+ model = QPATHTOF(data\epinephrine.p3d);
descriptionShort = CSTRING(Epinephrine_Desc_Short);
descriptionUse = CSTRING(Epinephrine_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -112,10 +112,10 @@ class CfgWeapons {
class ACE_plasmaIV: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Plasma_IV);
- model = QUOTE(PATHTOF(data\IVBag_1000ml.p3d));
+ model = QPATHTOF(data\IVBag_1000ml.p3d);
hiddenSelections[] = {"camo"};
- hiddenSelectionsTextures[] = { QUOTE(PATHTOF(data\IVBag_plasma_1000ml_ca.paa)) };
- picture = QUOTE(PATHTOF(ui\items\plasmaIV_x_ca.paa));
+ hiddenSelectionsTextures[] = { QPATHTOF(data\IVBag_plasma_1000ml_ca.paa) };
+ picture = QPATHTOF(ui\items\plasmaIV_x_ca.paa);
descriptionShort = CSTRING(Plasma_IV_Desc_Short);
descriptionUse = CSTRING(Plasma_IV_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -124,27 +124,27 @@ class CfgWeapons {
};
class ACE_plasmaIV_500: ACE_plasmaIV {
displayName = CSTRING(Plasma_IV_500);
- model = QUOTE(PATHTOF(data\IVBag_500ml.p3d));
- hiddenSelectionsTextures[] = { QUOTE(PATHTOF(data\IVBag_plasma_500ml_ca.paa)) };
+ model = QPATHTOF(data\IVBag_500ml.p3d);
+ hiddenSelectionsTextures[] = { QPATHTOF(data\IVBag_plasma_500ml_ca.paa) };
class ItemInfo: InventoryItem_Base_F {
mass = 5;
};
};
class ACE_plasmaIV_250: ACE_plasmaIV {
displayName = CSTRING(Plasma_IV_250);
- model = QUOTE(PATHTOF(data\IVBag_250ml.p3d));
- hiddenSelectionsTextures[] = { QUOTE(PATHTOF(data\IVBag_plasma_250ml_ca.paa)) };
+ model = QPATHTOF(data\IVBag_250ml.p3d);
+ hiddenSelectionsTextures[] = { QPATHTOF(data\IVBag_plasma_250ml_ca.paa) };
class ItemInfo: InventoryItem_Base_F {
mass = 2.5;
};
};
class ACE_bloodIV: ACE_ItemCore {
scope = 2;
- model = QUOTE(PATHTOF(data\IVBag_1000ml.p3d));
+ model = QPATHTOF(data\IVBag_1000ml.p3d);
displayName = CSTRING(Blood_IV);
- picture = QUOTE(PATHTOF(ui\items\bloodIV_x_ca.paa));
+ picture = QPATHTOF(ui\items\bloodIV_x_ca.paa);
hiddenSelections[] = {"camo"};
- hiddenSelectionsTextures[] = { QUOTE(PATHTOF(data\IVBag_blood_1000ml_ca.paa)) };
+ hiddenSelectionsTextures[] = { QPATHTOF(data\IVBag_blood_1000ml_ca.paa) };
descriptionShort = CSTRING(Blood_IV_Desc_Short);
descriptionUse = CSTRING(Blood_IV_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -153,16 +153,16 @@ class CfgWeapons {
};
class ACE_bloodIV_500: ACE_bloodIV {
displayName = CSTRING(Blood_IV_500);
- model = QUOTE(PATHTOF(data\IVBag_500ml.p3d));
- hiddenSelectionsTextures[] = { QUOTE(PATHTOF(data\IVBag_blood_500ml_ca.paa)) };
+ model = QPATHTOF(data\IVBag_500ml.p3d);
+ hiddenSelectionsTextures[] = { QPATHTOF(data\IVBag_blood_500ml_ca.paa) };
class ItemInfo: InventoryItem_Base_F {
mass = 5;
};
};
class ACE_bloodIV_250: ACE_bloodIV {
displayName = CSTRING(Blood_IV_250);
- model = QUOTE(PATHTOF(data\IVBag_250ml.p3d));
- hiddenSelectionsTextures[] = { QUOTE(PATHTOF(data\IVBag_blood_250ml_ca.paa)) };
+ model = QPATHTOF(data\IVBag_250ml.p3d);
+ hiddenSelectionsTextures[] = { QPATHTOF(data\IVBag_blood_250ml_ca.paa) };
class ItemInfo: InventoryItem_Base_F {
mass = 2.5;
};
@@ -170,10 +170,10 @@ class CfgWeapons {
class ACE_salineIV: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Saline_IV);
- model = QUOTE(PATHTOF(data\IVBag_1000ml.p3d));
+ model = QPATHTOF(data\IVBag_1000ml.p3d);
hiddenSelections[] = {"camo"};
- hiddenSelectionsTextures[] = { QUOTE(PATHTOF(data\IVBag_saline_1000ml_ca.paa)) };
- picture = QUOTE(PATHTOF(ui\items\salineIV_x_ca.paa));
+ hiddenSelectionsTextures[] = { QPATHTOF(data\IVBag_saline_1000ml_ca.paa) };
+ picture = QPATHTOF(ui\items\salineIV_x_ca.paa);
descriptionShort = CSTRING(Saline_IV_Desc_Short);
descriptionUse = CSTRING(Saline_IV_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -182,16 +182,16 @@ class CfgWeapons {
};
class ACE_salineIV_500: ACE_salineIV {
displayName = CSTRING(Saline_IV_500);
- model = QUOTE(PATHTOF(data\IVBag_500ml.p3d));
- hiddenSelectionsTextures[] = { QUOTE(PATHTOF(data\IVBag_saline_500ml_ca.paa)) };
+ model = QPATHTOF(data\IVBag_500ml.p3d);
+ hiddenSelectionsTextures[] = { QPATHTOF(data\IVBag_saline_500ml_ca.paa) };
class ItemInfo: InventoryItem_Base_F {
mass = 5;
};
};
class ACE_salineIV_250: ACE_salineIV {
displayName = CSTRING(Saline_IV_250);
- model = QUOTE(PATHTOF(data\IVBag_250ml.p3d));
- hiddenSelectionsTextures[] = { QUOTE(PATHTOF(data\IVBag_saline_250ml_ca.paa)) };
+ model = QPATHTOF(data\IVBag_250ml.p3d);
+ hiddenSelectionsTextures[] = { QPATHTOF(data\IVBag_saline_250ml_ca.paa) };
class ItemInfo: InventoryItem_Base_F {
mass = 2.5;
};
@@ -199,8 +199,8 @@ class CfgWeapons {
class ACE_quikclot: ACE_ItemCore {
scope = 2;
displayName = CSTRING(QuikClot_Display);
- model = QUOTE(PATHTOF(data\QuikClot.p3d));
- picture = QUOTE(PATHTOF(ui\items\quickclot_x_ca.paa));
+ model = QPATHTOF(data\QuikClot.p3d);
+ picture = QPATHTOF(ui\items\quickclot_x_ca.paa);
descriptionShort = CSTRING(QuikClot_Desc_Short);
descriptionUse = CSTRING(QuikClot_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -210,7 +210,7 @@ class CfgWeapons {
class ACE_personalAidKit: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Aid_Kit_Display);
- picture = QUOTE(PATHTOF(ui\items\personal_aid_kit_x_ca.paa));
+ picture = QPATHTOF(ui\items\personal_aid_kit_x_ca.paa);
descriptionShort = CSTRING(Aid_Kit_Desc_Short);
descriptionUse = CSTRING(Aid_Kit_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -220,8 +220,8 @@ class CfgWeapons {
class ACE_surgicalKit: ACE_ItemCore {
scope=2;
displayName= CSTRING(SurgicalKit_Display);
- model = QUOTE(PATHTOF(data\surgical_kit.p3d));
- picture = QUOTE(PATHTOF(ui\items\surgicalKit_x_ca.paa));
+ model = QPATHTOF(data\surgical_kit.p3d);
+ picture = QPATHTOF(ui\items\surgicalKit_x_ca.paa);
descriptionShort = CSTRING(SurgicalKit_Desc_Short);
descriptionUse = CSTRING(SurgicalKit_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
@@ -231,8 +231,8 @@ class CfgWeapons {
class ACE_bodyBag: ACE_ItemCore {
scope=2;
displayName= CSTRING(Bodybag_Display);
- model = QUOTE(PATHTOF(data\bodybagItem.p3d));
- picture = QUOTE(PATHTOF(ui\items\bodybag_x_ca.paa));
+ model = QPATHTOF(data\bodybagItem.p3d);
+ picture = QPATHTOF(ui\items\bodybag_x_ca.paa);
descriptionShort = CSTRING(Bodybag_Desc_Short);
descriptionUse = CSTRING(Bodybag_Desc_Use);
class ItemInfo: InventoryItem_Base_F {
diff --git a/addons/medical/XEH_postInit.sqf b/addons/medical/XEH_postInit.sqf
index f0d3b907f6..e26815ec7c 100644
--- a/addons/medical/XEH_postInit.sqf
+++ b/addons/medical/XEH_postInit.sqf
@@ -104,7 +104,7 @@ GVAR(effectPainCC) = [
// Initialize Other Variables
GVAR(effectBlind) = false;
-GVAR(effectTimeBlood) = ACE_time;
+GVAR(effectTimeBlood) = CBA_missionTime;
// MAIN EFFECTS LOOP
[{
@@ -139,11 +139,11 @@ GVAR(effectTimeBlood) = ACE_time;
[{
GVAR(effectBlindingCC) ppEffectAdjust [1,1,0, [1,1,1,0], [0,0,0,1], [0,0,0,0]];
GVAR(effectBlindingCC) ppEffectCommit ((_this select 0) * 2);
- }, [_strength], 0.01, 0] call EFUNC(common,waitAndExecute);
+ }, [_strength], 0.01, 0] call CBA_fnc_waitAndExecute;
[{
GVAR(effectBlindingCC) ppEffectEnable false;
- }, [], (_strength * 2) + 0.5, 0] call EFUNC(common,waitAndExecute);
+ }, [], (_strength * 2) + 0.5, 0] call CBA_fnc_waitAndExecute;
GVAR(effectBlind) = false;
};
@@ -151,8 +151,8 @@ GVAR(effectTimeBlood) = ACE_time;
_bleeding = [ACE_player] call FUNC(getBloodLoss);
// Bleeding Indicator
- if (_bleeding > 0 and GVAR(effectTimeBlood) + 3.5 < ACE_time) then {
- GVAR(effectTimeBlood) = ACE_time;
+ if (_bleeding > 0 and GVAR(effectTimeBlood) + 3.5 < CBA_missionTime) then {
+ GVAR(effectTimeBlood) = CBA_missionTime;
[600 * _bleeding] call BIS_fnc_bloodEffect;
};
@@ -168,8 +168,8 @@ GVAR(effectTimeBlood) = ACE_time;
}, 0.5, []] call CBA_fnc_addPerFrameHandler;
-GVAR(lastHeartBeat) = ACE_time;
-GVAR(lastHeartBeatSound) = ACE_time;
+GVAR(lastHeartBeat) = CBA_missionTime;
+GVAR(lastHeartBeatSound) = CBA_missionTime;
// HEARTRATE BASED EFFECTS
[{
@@ -189,8 +189,8 @@ GVAR(lastHeartBeatSound) = ACE_time;
GVAR(effectPainCC) ppEffectEnable false;
};
} else {
- if ((ACE_time > GVAR(lastHeartBeat) + _interval)) then {
- GVAR(lastHeartBeat) = ACE_time;
+ if ((CBA_missionTime > GVAR(lastHeartBeat) + _interval)) then {
+ GVAR(lastHeartBeat) = CBA_missionTime;
// Pain effect, no pain effect in zeus camera
if (isNull curatorCamera) then {
@@ -206,15 +206,15 @@ GVAR(lastHeartBeatSound) = ACE_time;
[{
GVAR(effectPainCA) ppEffectAdjust [(_this select 0), (_this select 0), false];
GVAR(effectPainCA) ppEffectCommit (_this select 1);
- }, [_strength * 0.1, _interval * 0.2], _interval * 0.05, 0] call EFUNC(common,waitAndExecute);
+ }, [_strength * 0.1, _interval * 0.2], _interval * 0.05, 0] call CBA_fnc_waitAndExecute;
[{
GVAR(effectPainCA) ppEffectAdjust [(_this select 0), (_this select 0), false];
GVAR(effectPainCA) ppEffectCommit 0.01;
- }, [_strength * 0.7], _interval * 0.3, 0] call EFUNC(common,waitAndExecute);
+ }, [_strength * 0.7], _interval * 0.3, 0] call CBA_fnc_waitAndExecute;
[{
GVAR(effectPainCA) ppEffectAdjust [(_this select 0), (_this select 0), false];
GVAR(effectPainCA) ppEffectCommit (_this select 1);
- }, [_strength * 0.1, _interval * 0.55], _interval * 0.4, 0] call EFUNC(common,waitAndExecute);
+ }, [_strength * 0.1, _interval * 0.55], _interval * 0.4, 0] call CBA_fnc_waitAndExecute;
} else {
GVAR(effectPainCA) ppEffectEnable false;
};
@@ -228,15 +228,15 @@ GVAR(lastHeartBeatSound) = ACE_time;
[{
GVAR(effectPainCC) ppEffectAdjust [1,1,0, [1,1,1,1], [0,0,0,0], [1,1,1,1], [1 - (_this select 0),1 - (_this select 0),0,0,0,0.2,2]];
GVAR(effectPainCC) ppEffectCommit (_this select 1);
- }, [_strength * 0.1, _interval * 0.2], _interval * 0.05, 0] call EFUNC(common,waitAndExecute);
+ }, [_strength * 0.1, _interval * 0.2], _interval * 0.05, 0] call CBA_fnc_waitAndExecute;
[{
GVAR(effectPainCC) ppEffectAdjust [1,1,0, [1,1,1,1], [0,0,0,0], [1,1,1,1], [1 - (_this select 0),1 - (_this select 0),0,0,0,0.2,2]];
GVAR(effectPainCC) ppEffectCommit 0.01;
- }, [_strength * 0.7], _interval * 0.3, 0] call EFUNC(common,waitAndExecute);
+ }, [_strength * 0.7], _interval * 0.3, 0] call CBA_fnc_waitAndExecute;
[{
GVAR(effectPainCC) ppEffectAdjust [1,1,0, [1,1,1,1], [0,0,0,0], [1,1,1,1], [1 - (_this select 0),1 - (_this select 0),0,0,0,0.2,2]];
GVAR(effectPainCC) ppEffectCommit (_this select 1);
- }, [_strength * 0.1, _interval * 0.55], _interval * 0.4, 0] call EFUNC(common,waitAndExecute);
+ }, [_strength * 0.1, _interval * 0.55], _interval * 0.4, 0] call CBA_fnc_waitAndExecute;
} else {
GVAR(effectPainCC) ppEffectEnable false;
};
@@ -247,8 +247,8 @@ GVAR(lastHeartBeatSound) = ACE_time;
if (GVAR(level) >= 2 && {_heartRate > 0}) then {
_minTime = 60 / _heartRate;
- if (ACE_time - GVAR(lastHeartBeatSound) > _minTime) then {
- GVAR(lastHeartBeatSound) = ACE_time;
+ if (CBA_missionTime - GVAR(lastHeartBeatSound) > _minTime) then {
+ GVAR(lastHeartBeatSound) = CBA_missionTime;
// Heart rate sound effect
if (_heartRate < 60) then {
_sound = GVAR(heartBeatSounds_Normal) select (random((count GVAR(heartBeatSounds_Normal)) -1));
diff --git a/addons/medical/XEH_preInit.sqf b/addons/medical/XEH_preInit.sqf
index 85232498bd..a5dc596ba2 100644
--- a/addons/medical/XEH_preInit.sqf
+++ b/addons/medical/XEH_preInit.sqf
@@ -35,7 +35,7 @@ private _fixStatic = {
1 preloadObject (_this select 0);
}, {
TRACE_1("preload done",_this);
- }, [_vehType]] call EFUNC(common,waitUntilAndExecute);
+ }, [_vehType]] call CBA_fnc_waitUntilAndExecute;
};
};
["StaticWeapon", "init", _fixStatic] call CBA_fnc_addClassEventHandler;
@@ -47,7 +47,7 @@ addMissionEventHandler ["Loaded",{
1 preloadObject (_this select 0);
}, {
TRACE_1("preload done",_this);
- }, [_x]] call EFUNC(common,waitUntilAndExecute);
+ }, [_x]] call CBA_fnc_waitUntilAndExecute;
} forEach GVAR(fixedStatics);
}];
diff --git a/addons/medical/config.cpp b/addons/medical/config.cpp
index d40fb9e6a6..911c9bd125 100644
--- a/addons/medical/config.cpp
+++ b/addons/medical/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_fieldDressing", "ACE_packingBandage", "ACE_elasticBandage", "ACE_tourniquet", "ACE_morphine", "ACE_atropine", "ACE_epinephrine", "ACE_plasmaIV", "ACE_plasmaIV_500", "ACE_plasmaIV_250", "ACE_bloodIV", "ACE_bloodIV_500", "ACE_bloodIV_250", "ACE_salineIV", "ACE_salineIV_500", "ACE_salineIV_250", "ACE_quikclot", "ACE_personalAidKit", "ACE_surgicalKit", "ACE_bodyBag"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction", "ace_apl"};
- author[] = {"Glowbal", "KoffeinFlummi"};
- authorUrl = "";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Glowbal", "KoffeinFlummi"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/medical/functions/fnc_addDamageToUnit.sqf b/addons/medical/functions/fnc_addDamageToUnit.sqf
index a11cc4689f..1969e3ff74 100644
--- a/addons/medical/functions/fnc_addDamageToUnit.sqf
+++ b/addons/medical/functions/fnc_addDamageToUnit.sqf
@@ -54,7 +54,7 @@ private _debugCode = {
ACE_LOGERROR_6("addDamageToUnit - FAILED - [unit:%1, partNo:%2, addDmg:%3] results:[alive:%4 old:%5 new:%6]", _unit, _partNumber, _damageToAdd, alive _unit, _startDmg, _endDmg);
};
};
-[{diag_frameno > (_this select 0)}, _debugCode, [_checkAtFrame, _unit, _startDmg, _damageToAdd, _partNumber]] call EFUNC(common,waitUntilAndExecute);
+[{diag_frameno > (_this select 0)}, _debugCode, [_checkAtFrame, _unit, _startDmg, _damageToAdd, _partNumber]] call CBA_fnc_waitUntilAndExecute;
#endif
private _return = [_unit, _selection, (_currentDamage + _damageToAdd), _unit, _typeOfDamage, _hitpointIndex] call FUNC(handleDamage);
diff --git a/addons/medical/functions/fnc_addToTriageCard.sqf b/addons/medical/functions/fnc_addToTriageCard.sqf
index ca54d8cd27..4fce53e0ab 100644
--- a/addons/medical/functions/fnc_addToTriageCard.sqf
+++ b/addons/medical/functions/fnc_addToTriageCard.sqf
@@ -29,7 +29,7 @@ _amount = 1;
private "_info";
_info = _log select _forEachIndex;
_info set [1,(_info select 1) + 1];
- _info set [2, ACE_gameTime];
+ _info set [2, CBA_missionTime];
_log set [_forEachIndex, _info];
_amount = (_info select 1);
@@ -38,7 +38,7 @@ _amount = 1;
} forEach _log;
if (!_inList) then {
- _log pushBack [_newItem, 1, ACE_gameTime];
+ _log pushBack [_newItem, 1, CBA_missionTime];
};
_unit setVariable [QGVAR(triageCard), _log, true];
["Medical_onItemAddedToTriageCard", [_unit, _newItem, _amount]] call EFUNC(common,localEvent);
diff --git a/addons/medical/functions/fnc_addVitalLoop.sqf b/addons/medical/functions/fnc_addVitalLoop.sqf
index 52b2cc11f9..e0730322af 100644
--- a/addons/medical/functions/fnc_addVitalLoop.sqf
+++ b/addons/medical/functions/fnc_addVitalLoop.sqf
@@ -27,4 +27,4 @@ if ((_unit getVariable[QGVAR(addedToUnitLoop),false] || !alive _unit) && !_force
// Schedule the loop to be executed again 1 sec later
// @todo: should the loop be started righ away instead?
_unit setVariable [QGVAR(addedToUnitLoop), true, true];
-[DFUNC(vitalLoop), [_unit, ACE_time], 1] call EFUNC(common,waitAndExecute);
+[DFUNC(vitalLoop), [_unit, CBA_missionTime], 1] call CBA_fnc_waitAndExecute;
diff --git a/addons/medical/functions/fnc_bodyCleanupLoop.sqf b/addons/medical/functions/fnc_bodyCleanupLoop.sqf
index 03c1234713..af17ffcd34 100644
--- a/addons/medical/functions/fnc_bodyCleanupLoop.sqf
+++ b/addons/medical/functions/fnc_bodyCleanupLoop.sqf
@@ -27,4 +27,4 @@ if (GVAR(bodiesToDelete) isEqualTo []) exitWith {
};
// Schedule the loop to be executed again 20 sec later
-[DFUNC(bodyCleanupLoop), [], 20] call EFUNC(common,waitAndExecute);
+[DFUNC(bodyCleanupLoop), [], 20] call CBA_fnc_waitAndExecute;
diff --git a/addons/medical/functions/fnc_getCardiacOutput.sqf b/addons/medical/functions/fnc_getCardiacOutput.sqf
index d07319e8b5..74da98012b 100644
--- a/addons/medical/functions/fnc_getCardiacOutput.sqf
+++ b/addons/medical/functions/fnc_getCardiacOutput.sqf
@@ -14,7 +14,7 @@
#include "script_component.hpp"
/*
- Cardiac output (Q or or CO ) is the volume of blood being pumped by the heart, in particular by a left or right ventricle in the ACE_time interval of one minute. CO may be measured in many ways, for example dm3/min (1 dm3 equals 1 litre).
+ Cardiac output (Q or or CO ) is the volume of blood being pumped by the heart, in particular by a left or right ventricle in the CBA_missionTime interval of one minute. CO may be measured in many ways, for example dm3/min (1 dm3 equals 1 litre).
Source: http://en.wikipedia.org/wiki/Cardiac_output
*/
diff --git a/addons/medical/functions/fnc_handleBandageOpening.sqf b/addons/medical/functions/fnc_handleBandageOpening.sqf
index 84ffa01258..49c5ab35f3 100644
--- a/addons/medical/functions/fnc_handleBandageOpening.sqf
+++ b/addons/medical/functions/fnc_handleBandageOpening.sqf
@@ -117,5 +117,5 @@ if (random(1) <= _reopeningChance) then {
};
// Otherwise something went wrong, we we don't reopen them..
//};
- }, [_target, _impact, _part, _injuryIndex, +_injury], _delay] call EFUNC(common,waitAndExecute);
+ }, [_target, _impact, _part, _injuryIndex, +_injury], _delay] call CBA_fnc_waitAndExecute;
};
diff --git a/addons/medical/functions/fnc_handleCreateLitter.sqf b/addons/medical/functions/fnc_handleCreateLitter.sqf
index 3ea891ba53..b67d2107b0 100644
--- a/addons/medical/functions/fnc_handleCreateLitter.sqf
+++ b/addons/medical/functions/fnc_handleCreateLitter.sqf
@@ -29,7 +29,7 @@ _litterObject = _litterClass createVehicleLocal _position;
_litterObject setDir _direction;
_litterObject setPosATL _position;
// Move the litter next frame to get rid of HORRIBLE spacing, fixes #1112
-[{ params ["_object", "_pos"]; _object setPosATL _pos; }, [_litterObject, _position]] call EFUNC(common,execNextFrame);
+[{ params ["_object", "_pos"]; _object setPosATL _pos; }, [_litterObject, _position]] call CBA_fnc_execNextFrame;
_maxLitterCount = getArray (configFile >> "ACE_Settings" >> QGVAR(litterSimulationDetail) >> "_values") select GVAR(litterSimulationDetail);
if((count GVAR(allCreatedLitter)) > _maxLitterCount ) then {
@@ -41,7 +41,7 @@ if((count GVAR(allCreatedLitter)) > _maxLitterCount ) then {
} forEach (_oldLitter select 1);
};
-GVAR(allCreatedLitter) pushBack [ACE_time, [_litterObject]];
+GVAR(allCreatedLitter) pushBack [CBA_missionTime, [_litterObject]];
if(!GVAR(litterPFHRunning) && {GVAR(litterCleanUpDelay) > 0}) then {
// Start the litter cleanup loop
diff --git a/addons/medical/functions/fnc_handleDamage.sqf b/addons/medical/functions/fnc_handleDamage.sqf
index b46ffcf1ad..4cf237e949 100644
--- a/addons/medical/functions/fnc_handleDamage.sqf
+++ b/addons/medical/functions/fnc_handleDamage.sqf
@@ -120,11 +120,11 @@ if (_unit getVariable [QGVAR(preventInstaDeath), GVAR(preventInstaDeath)]) exitW
if (_delayedUnconsicous) then {
[{
[_this select 0, true] call FUNC(setUnconscious);
- }, [_unit], 0.7] call EFUNC(common,waitAndExecute);
+ }, [_unit], 0.7] call CBA_fnc_waitAndExecute;
} else {
[{
[_this select 0, true] call FUNC(setUnconscious);
- }, [_unit]] call EFUNC(common,execNextFrame);
+ }, [_unit]] call CBA_fnc_execNextFrame;
};
0.89;
};
diff --git a/addons/medical/functions/fnc_handleLocal.sqf b/addons/medical/functions/fnc_handleLocal.sqf
index 270a993b43..42e8a9b7b2 100644
--- a/addons/medical/functions/fnc_handleLocal.sqf
+++ b/addons/medical/functions/fnc_handleLocal.sqf
@@ -25,7 +25,7 @@ if (_local) then {
if ((_unit getVariable ["ACE_isUnconscious",false]) && {count (_unit getVariable [QGVAR(unconsciousArguments), []]) >= 6}) then {
private "_arguments";
_arguments = (_unit getVariable [QGVAR(unconsciousArguments), []]);
- _arguments set [2, ACE_time];
+ _arguments set [2, CBA_missionTime];
[DFUNC(unconsciousPFH), 0.1, _arguments ] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/medical/functions/fnc_handleUnitVitals.sqf b/addons/medical/functions/fnc_handleUnitVitals.sqf
index 23272f0890..103561da0e 100644
--- a/addons/medical/functions/fnc_handleUnitVitals.sqf
+++ b/addons/medical/functions/fnc_handleUnitVitals.sqf
@@ -19,9 +19,9 @@ TRACE_3("ACE_DEBUG",_unit,_interval,_unit);
if (_interval == 0) exitWith {};
_lastTimeValuesSynced = _unit getVariable [QGVAR(lastMomentValuesSynced), 0];
-_syncValues = (ACE_time - _lastTimeValuesSynced >= (10 + floor(random(10))) && GVAR(keepLocalSettingsSynced));
+_syncValues = (CBA_missionTime - _lastTimeValuesSynced >= (10 + floor(random(10))) && GVAR(keepLocalSettingsSynced));
if (_syncValues) then {
- _unit setVariable [QGVAR(lastMomentValuesSynced), ACE_time];
+ _unit setVariable [QGVAR(lastMomentValuesSynced), CBA_missionTime];
};
_bloodVolume = (_unit getVariable [QGVAR(bloodVolume), 100]) + ([_unit] call FUNC(getBloodVolumeChange));
diff --git a/addons/medical/functions/fnc_init.sqf b/addons/medical/functions/fnc_init.sqf
index 868b07fbf4..504135c204 100644
--- a/addons/medical/functions/fnc_init.sqf
+++ b/addons/medical/functions/fnc_init.sqf
@@ -86,4 +86,4 @@ _unit setVariable [QGVAR(allLogs), [], true];
// items
[{
_this call FUNC(itemCheck);
-}, [_unit], 0.5, 0.1] call EFUNC(common,waitAndExecute);
+}, [_unit], 0.5, 0.1] call CBA_fnc_waitAndExecute;
diff --git a/addons/medical/functions/fnc_isInMedicalFacility.sqf b/addons/medical/functions/fnc_isInMedicalFacility.sqf
index f934978d2b..313ee8eca4 100644
--- a/addons/medical/functions/fnc_isInMedicalFacility.sqf
+++ b/addons/medical/functions/fnc_isInMedicalFacility.sqf
@@ -19,7 +19,7 @@ params ["_unit"];
//Cache the results as this function could be called rapidly
(_unit getVariable [QGVAR(cacheInFacility), [-9, false]]) params ["_expireTime", "_lastResult"];
-if (ACE_time < _expireTime) exitWith {_lastResult};
+if (CBA_missionTime < _expireTime) exitWith {_lastResult};
private _eyePos = eyePos _unit;
private _isInBuilding = false;
@@ -58,6 +58,6 @@ if (!_isInBuilding) then {
};
//Save the results (with a 1 second expiry)
-_unit setVariable [QGVAR(cacheInFacility), [ACE_time + 1, _isInBuilding]];
+_unit setVariable [QGVAR(cacheInFacility), [CBA_missionTime + 1, _isInBuilding]];
_isInBuilding;
diff --git a/addons/medical/functions/fnc_litterCleanupLoop.sqf b/addons/medical/functions/fnc_litterCleanupLoop.sqf
index ac102d5d59..00e301be6e 100644
--- a/addons/medical/functions/fnc_litterCleanupLoop.sqf
+++ b/addons/medical/functions/fnc_litterCleanupLoop.sqf
@@ -15,7 +15,7 @@
{
_x params ["_time", "_objects"];
- if (ACE_time - _time >= GVAR(litterCleanUpDelay)) then {
+ if (CBA_missionTime - _time >= GVAR(litterCleanUpDelay)) then {
{
deleteVehicle _x;
} forEach _objects;
@@ -30,4 +30,4 @@ if ( (count GVAR(allCreatedLitter)) == 0) exitWith {
};
// Schedule the loop to be executed again 30 sec later
-[DFUNC(litterCleanupLoop), [], 30] call EFUNC(common,waitAndExecute);
+[DFUNC(litterCleanupLoop), [], 30] call CBA_fnc_waitAndExecute;
diff --git a/addons/medical/functions/fnc_medicationEffectLoop.sqf b/addons/medical/functions/fnc_medicationEffectLoop.sqf
index 6d89675d8a..00ef00a82c 100644
--- a/addons/medical/functions/fnc_medicationEffectLoop.sqf
+++ b/addons/medical/functions/fnc_medicationEffectLoop.sqf
@@ -39,4 +39,4 @@ _amountDecreased = _amountDecreased + _decreaseRate;
if (_amountDecreased >= 1 || (_usedMeds <= 0) || !alive _unit) exitWith {};
// Schedule the loop to be executed again 1 sec later
-[DFUNC(medicationEffectLoop), [_unit, _variableName, _amountDecreased, _decreaseRate, _viscosityAdjustmentRate, _painReduceRate], 1] call EFUNC(common,waitAndExecute);
+[DFUNC(medicationEffectLoop), [_unit, _variableName, _amountDecreased, _decreaseRate, _viscosityAdjustmentRate, _painReduceRate], 1] call CBA_fnc_waitAndExecute;
diff --git a/addons/medical/functions/fnc_modifyMedicalAction.sqf b/addons/medical/functions/fnc_modifyMedicalAction.sqf
index 02e5985297..f36a87855b 100644
--- a/addons/medical/functions/fnc_modifyMedicalAction.sqf
+++ b/addons/medical/functions/fnc_modifyMedicalAction.sqf
@@ -24,10 +24,10 @@ if (GVAR(level) < 2 || {!([_target] call FUNC(hasMedicalEnabled))}) exitWith {
_pointDamage = (_target getVariable [QGVAR(bodyPartStatus), [0,0,0,0,0,0]]) select _selectionN;
if (_pointDamage >= 0.8) exitWith {
- _actionData set [2, QUOTE(PATHTOF(UI\icons\medical_crossRed.paa))];
+ _actionData set [2, QPATHTOF(UI\icons\medical_crossRed.paa)];
};
if (_pointDamage > 0) exitWith {
- _actionData set [2, QUOTE(PATHTOF(UI\icons\medical_crossYellow.paa))];
+ _actionData set [2, QPATHTOF(UI\icons\medical_crossYellow.paa)];
};
};
@@ -36,6 +36,6 @@ _openWounds = _target getVariable [QGVAR(openWounds), []];
{
_x params ["", "", "_selectionX", "_amountOf", "_x4"];
if (_amountOf > 0 && {(_selectionN == _selectionX)} && {_x4 > 0}) exitWith {
- _actionData set [2, QUOTE(PATHTOF(UI\icons\medical_crossRed.paa))];
+ _actionData set [2, QPATHTOF(UI\icons\medical_crossRed.paa)];
};
} forEach _openWounds;
diff --git a/addons/medical/functions/fnc_playInjuredSound.sqf b/addons/medical/functions/fnc_playInjuredSound.sqf
index 6dae7ab276..38b967b03e 100644
--- a/addons/medical/functions/fnc_playInjuredSound.sqf
+++ b/addons/medical/functions/fnc_playInjuredSound.sqf
@@ -76,7 +76,7 @@ if (_pain > 0 && {[_unit] call EFUNC(common,isAwake)}) exitWith {
// Clean up the lock
[{
(_this select 0) setVariable [QGVAR(playingInjuredSound),nil];
- }, [_unit], _delay, _delay] call EFUNC(common,waitAndExecute);
+ }, [_unit], _delay, _delay] call CBA_fnc_waitAndExecute;
};
// Clean up in case there has not been played any sounds.
diff --git a/addons/medical/functions/fnc_reviveStateLoop.sqf b/addons/medical/functions/fnc_reviveStateLoop.sqf
index 77a48c9340..bfc55ae6d8 100644
--- a/addons/medical/functions/fnc_reviveStateLoop.sqf
+++ b/addons/medical/functions/fnc_reviveStateLoop.sqf
@@ -35,7 +35,7 @@ if ((alive _unit) && {(vehicle _unit) != _unit} && {!alive (vehicle _unit)}) the
};
// If the timer run out, let the unit die and exit the loop
-if (GVAR(maxReviveTime) > 0 && {ACE_time - _startTime > GVAR(maxReviveTime)}) exitwith {
+if (GVAR(maxReviveTime) > 0 && {CBA_missionTime - _startTime > GVAR(maxReviveTime)}) exitwith {
_unit setVariable [QGVAR(inReviveState), nil, true];
_unit setVariable [QGVAR(reviveStartTime), nil];
[_unit, true] call FUNC(setDead);
@@ -53,4 +53,4 @@ if !(_unit getVariable [QGVAR(inReviveState), false]) exitwith {
};
// Schedule the loop to be executed again 1 sec later
-[DFUNC(reviveStateLoop), [_unit], 1] call EFUNC(common,waitAndExecute);
+[DFUNC(reviveStateLoop), [_unit], 1] call CBA_fnc_waitAndExecute;
diff --git a/addons/medical/functions/fnc_setCardiacArrest.sqf b/addons/medical/functions/fnc_setCardiacArrest.sqf
index bf4a679bdc..70e7d5c253 100644
--- a/addons/medical/functions/fnc_setCardiacArrest.sqf
+++ b/addons/medical/functions/fnc_setCardiacArrest.sqf
@@ -35,9 +35,9 @@ _timeInCardiacArrest = 120 + round(random(600));
[_idPFH] call CBA_fnc_removePerFrameHandler;
_unit setVariable [QGVAR(inCardiacArrest), nil,true];
};
- if (ACE_time - _startTime >= _timeInCardiacArrest) exitWith {
+ if (CBA_missionTime - _startTime >= _timeInCardiacArrest) exitWith {
[_idPFH] call CBA_fnc_removePerFrameHandler;
_unit setVariable [QGVAR(inCardiacArrest), nil,true];
[_unit] call FUNC(setDead);
};
-}, 1, [_unit, ACE_time, _timeInCardiacArrest] ] call CBA_fnc_addPerFrameHandler;
+}, 1, [_unit, CBA_missionTime, _timeInCardiacArrest] ] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/medical/functions/fnc_setDead.sqf b/addons/medical/functions/fnc_setDead.sqf
index 061a28c081..d68ba0e41f 100644
--- a/addons/medical/functions/fnc_setDead.sqf
+++ b/addons/medical/functions/fnc_setDead.sqf
@@ -38,7 +38,7 @@ if (((_reviveVal == 1 && {[_unit] call EFUNC(common,isPlayer)} || _reviveVal ==
};
_unit setVariable [QGVAR(inReviveState), true, true];
- _unit setVariable [QGVAR(reviveStartTime), ACE_time];
+ _unit setVariable [QGVAR(reviveStartTime), CBA_missionTime];
[_unit, true] call FUNC(setUnconscious);
// Run the loop that tracks the revive state
@@ -59,7 +59,7 @@ if (isPLayer _unit) then {
if (!_delaySetDamage) then {
[_unit, 1] call FUNC(setStructuralDamage);
} else {
- [FUNC(setStructuralDamage), [_unit, 1]] call EFUNC(common,execNextFrame);
+ [FUNC(setStructuralDamage), [_unit, 1]] call CBA_fnc_execNextFrame;
};
true;
diff --git a/addons/medical/functions/fnc_setUnconscious.sqf b/addons/medical/functions/fnc_setUnconscious.sqf
index 25bc8aacb5..dbeecce939 100644
--- a/addons/medical/functions/fnc_setUnconscious.sqf
+++ b/addons/medical/functions/fnc_setUnconscious.sqf
@@ -103,7 +103,7 @@ if (GVAR(delayUnconCaptive) == 0) then {
if (_unit getVariable ["ACE_isUnconscious", false]) then {
[_unit, "setCaptive", QGVAR(unconscious), true] call EFUNC(common,statusEffect_set);
};
- },[_unit], GVAR(delayUnconCaptive)] call EFUNC(common,waitAndExecute);
+ },[_unit], GVAR(delayUnconCaptive)] call CBA_fnc_waitAndExecute;
};
_anim = [_unit] call EFUNC(common,getDeathAnim);
@@ -113,9 +113,9 @@ _anim = [_unit] call EFUNC(common,getDeathAnim);
if ((_unit getVariable "ACE_isUnconscious") and (animationState _unit != _anim)) then {
[_unit, _anim, 2, true] call EFUNC(common,doAnimation);
};
-}, [_unit, _anim], 0.5, 0] call EFUNC(common,waitAndExecute);
+}, [_unit, _anim], 0.5, 0] call CBA_fnc_waitAndExecute;
-_startingTime = ACE_time;
+_startingTime = CBA_missionTime;
[DFUNC(unconsciousPFH), 0.1, [_unit, _originalPos, _startingTime, _minWaitingTime, false, vehicle _unit isKindOf "ParachuteBase"] ] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/medical/functions/fnc_treatment.sqf b/addons/medical/functions/fnc_treatment.sqf
index d7f80edc35..dfb0584e9f 100644
--- a/addons/medical/functions/fnc_treatment.sqf
+++ b/addons/medical/functions/fnc_treatment.sqf
@@ -23,7 +23,7 @@ params ["_caller", "_target", "_selectionName", "_className"];
if (uiNamespace getVariable [QEGVAR(interact_menu,cursorMenuOpened),false]) exitwith {
[{
_this call FUNC(treatment);
- }, _this] call EFUNC(common,execNextFrame);
+ }, _this] call CBA_fnc_execNextFrame;
};
if !(_target isKindOf "CAManBase") exitWith {false};
diff --git a/addons/medical/functions/fnc_treatmentAdvanced_CPRLocal.sqf b/addons/medical/functions/fnc_treatmentAdvanced_CPRLocal.sqf
index 07431ac66d..1a546dd8d0 100644
--- a/addons/medical/functions/fnc_treatmentAdvanced_CPRLocal.sqf
+++ b/addons/medical/functions/fnc_treatmentAdvanced_CPRLocal.sqf
@@ -20,7 +20,7 @@ params ["_caller","_target"];
if (_target getVariable [QGVAR(inReviveState), false]) then {
_reviveStartTime = _target getVariable [QGVAR(reviveStartTime),0];
if (_reviveStartTime > 0) then {
- _target setVariable [QGVAR(reviveStartTime), (_reviveStartTime + random(20)) min ACE_time];
+ _target setVariable [QGVAR(reviveStartTime), (_reviveStartTime + random(20)) min CBA_missionTime];
};
};
diff --git a/addons/medical/functions/fnc_unconsciousPFH.sqf b/addons/medical/functions/fnc_unconsciousPFH.sqf
index e78c80f3ec..055753a0f3 100644
--- a/addons/medical/functions/fnc_unconsciousPFH.sqf
+++ b/addons/medical/functions/fnc_unconsciousPFH.sqf
@@ -130,13 +130,13 @@ if (_parachuteCheck) then {
if (!local _unit) exitWith {
TRACE_6("ACE_DEBUG_Unconscious_PFH",_unit, _args, _startingTime, _minWaitingTime, _idPFH, _unit getVariable QGVAR(unconsciousArguments));
- _args set [3, _minWaitingTime - (ACE_time - _startingTime)];
+ _args set [3, _minWaitingTime - (CBA_missionTime - _startingTime)];
_unit setVariable [QGVAR(unconsciousArguments), _args, true];
[_idPFH] call CBA_fnc_removePerFrameHandler;
};
// Ensure we are waiting at least a minimum period before checking if we can wake up the unit again, allows for temp knock outs
-if ((ACE_time - _startingTime) >= _minWaitingTime) exitWith {
+if ((CBA_missionTime - _startingTime) >= _minWaitingTime) exitWith {
TRACE_2("ACE_DEBUG_Unconscious_Temp knock outs",_unit, [_unit] call FUNC(getUnconsciousCondition));
if (!([_unit] call FUNC(getUnconsciousCondition))) then {
_unit setVariable ["ACE_isUnconscious", false, true];
diff --git a/addons/medical/functions/fnc_vitalLoop.sqf b/addons/medical/functions/fnc_vitalLoop.sqf
index c9df4c6e91..6e5bb7fb2b 100644
--- a/addons/medical/functions/fnc_vitalLoop.sqf
+++ b/addons/medical/functions/fnc_vitalLoop.sqf
@@ -29,7 +29,7 @@ if (!local _unit) exitWith {
};
// Handle unit vitals
-[_unit, ACE_time - _lastTime] call FUNC(handleUnitVitals);
+[_unit, CBA_missionTime - _lastTime] call FUNC(handleUnitVitals);
// Play injured sounds
private _pain = _unit getVariable [QGVAR(pain), 0];
@@ -45,4 +45,4 @@ if (_pain > (_unit getVariable [QGVAR(painSuppress), 0])) then {
};
// Schedule the loop to be executed again 1 sec later
-[DFUNC(vitalLoop), [_unit, ACE_time], 1] call EFUNC(common,waitAndExecute);
+[DFUNC(vitalLoop), [_unit, CBA_missionTime], 1] call CBA_fnc_waitAndExecute;
diff --git a/addons/medical/ui/RscTitles.hpp b/addons/medical/ui/RscTitles.hpp
index 520a431d7b..76c1da46c0 100644
--- a/addons/medical/ui/RscTitles.hpp
+++ b/addons/medical/ui/RscTitles.hpp
@@ -19,34 +19,34 @@ class Rsctitles {
colorBackground[] = {1,1,1,1};
colorPicture[] = {1,1,1,1};
colorText[] = {1,1,1,1};
- text = QUOTE(PATHTOF(ui\body_background.paa));
+ text = QPATHTOF(ui\body_background.paa);
};
class bodyImgHead: bodyImgBackground {
idc = 50;
colorBackground[] = {1,1,1,1};
colorPicture[] = {1,1,1,1};
colorText[] = {1,1,1,1};
- text = QUOTE(PATHTOF(ui\body_head.paa));
+ text = QPATHTOF(ui\body_head.paa);
};
class bodyImgTorso: bodyImgHead {
idc = 51;
- text = QUOTE(PATHTOF(ui\body_torso.paa));
+ text = QPATHTOF(ui\body_torso.paa);
};
class bodyImgArms_l: bodyImgHead {
idc = 52;
- text = QUOTE(PATHTOF(ui\body_arm_left.paa));
+ text = QPATHTOF(ui\body_arm_left.paa);
};
class bodyImgArms_r: bodyImgHead {
idc = 53;
- text = QUOTE(PATHTOF(ui\body_arm_right.paa));
+ text = QPATHTOF(ui\body_arm_right.paa);
};
class bodyImgLegs_l: bodyImgHead {
idc = 54;
- text = QUOTE(PATHTOF(ui\body_leg_left.paa));
+ text = QPATHTOF(ui\body_leg_left.paa);
};
class bodyImgLegs_r: bodyImgHead {
idc = 55;
- text = QUOTE(PATHTOF(ui\body_leg_right.paa));
+ text = QPATHTOF(ui\body_leg_right.paa);
};
class InjuryListLabel {
idc = 199;
diff --git a/addons/medical/ui/triagecard.hpp b/addons/medical/ui/triagecard.hpp
index 1122c2e942..6a5138def8 100644
--- a/addons/medical/ui/triagecard.hpp
+++ b/addons/medical/ui/triagecard.hpp
@@ -30,11 +30,11 @@ class GVAR(triageCard) {
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
colorText[] = {1,1,0,1};
colorBackground[] = {0,0,0,0};
- text = QUOTE(PATHTOF(ui\triage_card_corner_l.paa));
+ text = QPATHTOF(ui\triage_card_corner_l.paa);
};
class cornor_top_r: cornor_top_l {
x = "20 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
- text = QUOTE(PATHTOF(ui\triage_card_corner_r.paa));
+ text = QPATHTOF(ui\triage_card_corner_r.paa);
};
class TriageCardLabel {
diff --git a/addons/medical_menu/CfgVehicles.hpp b/addons/medical_menu/CfgVehicles.hpp
index d2bbf55fd1..1918511566 100644
--- a/addons/medical_menu/CfgVehicles.hpp
+++ b/addons/medical_menu/CfgVehicles.hpp
@@ -5,7 +5,7 @@ class CfgVehicles {
class ACE_moduleMedicalMenuSettings: ACE_Module {
scope = 2;
displayName = CSTRING(module_DisplayName);
- icon = QUOTE(PATHTOEF(medical,UI\Icon_Module_Medical_ca.paa));
+ icon = QPATHTOEF(medical,UI\Icon_Module_Medical_ca.paa);
category = "ACE_medical";
function = QUOTE(DFUNC(module));
functionPriority = 1;
@@ -50,7 +50,7 @@ class CfgVehicles {
exceptions[] = {"isNotInside"};
condition = QUOTE([ARR_2(ACE_player,_target)] call FUNC(canOpenMenu));
statement = QUOTE([_target] call DFUNC(openMenu));
- icon = PATHTOEF(medical,UI\icons\medical_cross.paa);
+ icon = QPATHTOEF(medical,UI\icons\medical_cross.paa);
};
};
@@ -63,7 +63,7 @@ class CfgVehicles {
exceptions[] = {"isNotInside"};
condition = QUOTE([ARR_2(ACE_player,_target)] call FUNC(canOpenMenu));
statement = QUOTE([_target] call DFUNC(openMenu));
- icon = PATHTOEF(medical,UI\icons\medical_cross.paa);
+ icon = QPATHTOEF(medical,UI\icons\medical_cross.paa);
};
};
};
diff --git a/addons/medical_menu/XEH_postInit.sqf b/addons/medical_menu/XEH_postInit.sqf
index 92e2af341f..deddb4b3d8 100644
--- a/addons/medical_menu/XEH_postInit.sqf
+++ b/addons/medical_menu/XEH_postInit.sqf
@@ -12,7 +12,7 @@ GVAR(pendingReopen) = false;
GVAR(pendingReopen) = false;
[{
[GVAR(INTERACTION_TARGET)] call FUNC(openMenu);
- }, []] call EFUNC(common,execNextFrame);
+ }, []] call CBA_fnc_execNextFrame;
};
}] call EFUNC(common,addEventhandler);
@@ -31,7 +31,7 @@ GVAR(pendingReopen) = false;
false
},
{
- if (ACE_time - GVAR(lastOpenedOn) > 0.5) exitWith {
+ if (CBA_missionTime - GVAR(lastOpenedOn) > 0.5) exitWith {
[objNull] call FUNC(openMenu);
};
false
diff --git a/addons/medical_menu/config.cpp b/addons/medical_menu/config.cpp
index 27e0db03b9..bdc9bf1f25 100644
--- a/addons/medical_menu/config.cpp
+++ b/addons/medical_menu/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_medical"};
- author[] = {$STR_ACE_Common_ACETeam, "Glowbal"};
- authorUrl = "http://ace3mod.com";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Glowbal"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/medical_menu/functions/fnc_handleUI_DisplayOptions.sqf b/addons/medical_menu/functions/fnc_handleUI_DisplayOptions.sqf
index 67e295e22e..97e5c19519 100644
--- a/addons/medical_menu/functions/fnc_handleUI_DisplayOptions.sqf
+++ b/addons/medical_menu/functions/fnc_handleUI_DisplayOptions.sqf
@@ -44,7 +44,7 @@ if (_name isEqualTo "toggle") exitWith {
closeDialog 0;
[{
[_this select 0] call FUNC(openMenu);
- }, [_newTarget], 0.1] call EFUNC(common,waitAndExecute);
+ }, [_newTarget], 0.1] call CBA_fnc_waitAndExecute;
};
// Clean the dropdown options list from all actions
@@ -77,7 +77,7 @@ if (_name isEqualTo "triage") exitWith {
_message = localize _message;
};
};
- _triageCardTexts pushBack format["%1x - %2 (%3m)", _amount, _message, round((ACE_gameTime - _time) / 60)];
+ _triageCardTexts pushBack format["%1x - %2 (%3m)", _amount, _message, round((CBA_missionTime - _time) / 60)];
nil;
} count _log;
diff --git a/addons/medical_menu/functions/fnc_openMenu.sqf b/addons/medical_menu/functions/fnc_openMenu.sqf
index a8a51ff028..e6ed7e6135 100644
--- a/addons/medical_menu/functions/fnc_openMenu.sqf
+++ b/addons/medical_menu/functions/fnc_openMenu.sqf
@@ -34,6 +34,6 @@ if (dialog || {isNull _interactionTarget}) exitWith {
GVAR(INTERACTION_TARGET) = _interactionTarget;
createDialog QGVAR(medicalMenu);
-GVAR(lastOpenedOn) = ACE_time;
+GVAR(lastOpenedOn) = CBA_missionTime;
true
diff --git a/addons/medical_menu/ui/menu.hpp b/addons/medical_menu/ui/menu.hpp
index c443819caa..16c79e7c6a 100644
--- a/addons/medical_menu/ui/menu.hpp
+++ b/addons/medical_menu/ui/menu.hpp
@@ -51,7 +51,7 @@ class GVAR(medicalMenu) {
y = "2.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
w = "38 * (((safezoneW / safezoneH) min 1.2) / 40)";
h = "3.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
- text = QUOTE(PATHTOF(data\background_img.paa));
+ text = QPATHTOF(data\background_img.paa);
colorText[] = {1, 1, 1, 0.0};
};
class CatagoryLeft: HeaderName {
@@ -94,42 +94,42 @@ class GVAR(medicalMenu) {
colorBackground[] = {0,0,0,1};
colorPicture[] = {1,1,1,1};
colorText[] = {1,1,1,1};
- text = QUOTE(PATHTOF(data\icons\triage_card_small.paa));
+ text = QPATHTOF(data\icons\triage_card_small.paa);
};
class iconImg2: iconImg1 {
idc = 112;
x = "3 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
- text = QUOTE(PATHTOF(data\icons\examine_patient_small.paa));
+ text = QPATHTOF(data\icons\examine_patient_small.paa);
};
class iconImg3: iconImg1 {
idc = 113;
x = "4.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
- text = QUOTE(PATHTOF(data\icons\bandage_fracture_small.paa));
+ text = QPATHTOF(data\icons\bandage_fracture_small.paa);
};
class iconImg4: iconImg1 {
idc = 114;
x = "6 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
- text = QUOTE(PATHTOF(data\icons\medication_small.paa));
+ text = QPATHTOF(data\icons\medication_small.paa);
};
class iconImg5: iconImg1 {
idc = 115;
x = "7.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
- text = QUOTE(PATHTOF(data\icons\airway_management_small.paa));
+ text = QPATHTOF(data\icons\airway_management_small.paa);
};
class iconImg6: iconImg1 {
idc = 116;
x = "9 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
- text = QUOTE(PATHTOF(data\icons\advanced_treatment_small.paa));
+ text = QPATHTOF(data\icons\advanced_treatment_small.paa);
};
class iconImg7: iconImg1 {
idc = 117;
x = "10.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
- text = QUOTE(PATHTOF(data\icons\icon_carry.paa));
+ text = QPATHTOF(data\icons\icon_carry.paa);
};
class iconImg8: iconImg1 {
idc = 118;
x = "12 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
- text = QUOTE(PATHTOF(data\icons\toggle_self_small.paa));
+ text = QPATHTOF(data\icons\toggle_self_small.paa);
};
@@ -274,7 +274,7 @@ class GVAR(medicalMenu) {
colorBackground[] = {1,1,1,1};
colorPicture[] = {1,1,1,1};
colorText[] = {1,1,1,1};
- text = QUOTE(PATHTOEF(medical,ui\body_background.paa));
+ text = QPATHTOEF(medical,ui\body_background.paa);
};
class bodyImgHead: bodyImgBackground {
idc = 50;
@@ -286,28 +286,28 @@ class GVAR(medicalMenu) {
colorBackground[] = {1,1,1,1};
colorPicture[] = {1,1,1,0.75};
colorText[] = {1,1,1,0.75};
- text = QUOTE(PATHTOEF(medical,ui\body_head.paa));
+ text = QPATHTOEF(medical,ui\body_head.paa);
};
class bodyImgTorso: bodyImgHead {
idc = 51;
- text = QUOTE(PATHTOEF(medical,ui\body_torso.paa));
+ text = QPATHTOEF(medical,ui\body_torso.paa);
};
class bodyImgArms_l: bodyImgHead {
idc = 52;
- text = QUOTE(PATHTOEF(medical,ui\body_arm_left.paa));
+ text = QPATHTOEF(medical,ui\body_arm_left.paa);
};
class bodyImgArms_r: bodyImgHead {
idc = 53;
- text = QUOTE(PATHTOEF(medical,ui\body_arm_right.paa));
+ text = QPATHTOEF(medical,ui\body_arm_right.paa);
};
class bodyImgLegs_l: bodyImgHead {
idc = 54;
- text = QUOTE(PATHTOEF(medical,ui\body_leg_left.paa));
+ text = QPATHTOEF(medical,ui\body_leg_left.paa);
};
class bodyImgLegs_r: bodyImgHead {
idc = 55;
- text = QUOTE(PATHTOEF(medical,ui\body_leg_right.paa));
+ text = QPATHTOEF(medical,ui\body_leg_right.paa);
};
diff --git a/addons/microdagr/CfgVehicles.hpp b/addons/microdagr/CfgVehicles.hpp
index 3fcf92beaa..cf596c9762 100644
--- a/addons/microdagr/CfgVehicles.hpp
+++ b/addons/microdagr/CfgVehicles.hpp
@@ -8,21 +8,21 @@ class CfgVehicles {
displayName = CSTRING(configure);
condition = QUOTE(([DISPLAY_MODE_DIALOG] call FUNC(canShow)) && {GVAR(currentShowMode) != DISPLAY_MODE_DIALOG});
statement = QUOTE([DISPLAY_MODE_DIALOG] call FUNC(openDisplay));
- icon = QUOTE(PATHTOF(UI\icon_microDAGR.paa));
+ icon = QPATHTOF(UI\icon_microDAGR.paa);
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
class GVAR(show) {
//Opens the mini map
displayName = CSTRING(show);
condition = QUOTE(([DISPLAY_MODE_DISPLAY] call FUNC(canShow)) && {GVAR(currentShowMode) != DISPLAY_MODE_DISPLAY});
statement = QUOTE([DISPLAY_MODE_DISPLAY] call FUNC(openDisplay));
- icon = QUOTE(PATHTOF(UI\icon_microDAGR.paa));
+ icon = QPATHTOF(UI\icon_microDAGR.paa);
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
};
class GVAR(close) {
displayName = CSTRING(closeUnit);
condition = QUOTE(GVAR(currentShowMode) != DISPLAY_MODE_CLOSED);
statement = QUOTE([DISPLAY_MODE_CLOSED] call FUNC(openDisplay));
- icon = QUOTE(PATHTOF(UI\icon_microDAGR.paa));
+ icon = QPATHTOF(UI\icon_microDAGR.paa);
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
};
};
@@ -39,7 +39,7 @@ class CfgVehicles {
scope = 2;
isGlobal = 0;
isSingular = 1;
- icon = QUOTE(PATHTOF(UI\Icon_Module_microDAGR_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_microDAGR_ca.paa);
functionPriority = 0;
class Arguments {
class MapDataAvailable {
@@ -72,7 +72,7 @@ class CfgVehicles {
displayName = CSTRING(itemName);
author = ECSTRING(common,ACETeam);
vehicleClass = "Items";
- icon = QUOTE(PATHTOF(UI\icon_microDAGR.paa));
+ icon = QPATHTOF(UI\icon_microDAGR.paa);
class TransportItems {
MACRO_ADDITEM(ACE_microDAGR,1);
};
diff --git a/addons/microdagr/CfgWeapons.hpp b/addons/microdagr/CfgWeapons.hpp
index 6fa84b6e7b..92ace96c53 100644
--- a/addons/microdagr/CfgWeapons.hpp
+++ b/addons/microdagr/CfgWeapons.hpp
@@ -7,8 +7,8 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(itemName);
descriptionShort = CSTRING(itemDescription);
- model = QUOTE(PATHTOF(data\MicroDAGR.p3d));
- picture = QUOTE(PATHTOF(images\microDAGR_item.paa));
+ model = QPATHTOF(data\MicroDAGR.p3d);
+ picture = QPATHTOF(images\microDAGR_item.paa);
class ItemInfo: InventoryItem_Base_F {
mass = 2;
};
diff --git a/addons/microdagr/XEH_clientInit.sqf b/addons/microdagr/XEH_clientInit.sqf
index c918bcf454..c11019cafb 100644
--- a/addons/microdagr/XEH_clientInit.sqf
+++ b/addons/microdagr/XEH_clientInit.sqf
@@ -16,7 +16,7 @@ _closeCode = {
if (GVAR(currentShowMode) == DISPLAY_MODE_CLOSED) exitWith {};
[DISPLAY_MODE_CLOSED] call FUNC(openDisplay);
};
-[(localize LSTRING(itemName)), QUOTE(PATHTOF(images\microDAGR_item.paa)), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
+[(localize LSTRING(itemName)), QPATHTOF(images\microDAGR_item.paa), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
//Add Eventhandler:
diff --git a/addons/microdagr/config.cpp b/addons/microdagr/config.cpp
index 7a39df8980..d8823d0dc0 100644
--- a/addons/microdagr/config.cpp
+++ b/addons/microdagr/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_microDAGR"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"PabstMirror"};
- authorUrl = "https://github.com/PabstMirror/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"PabstMirror"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/microdagr/functions/fnc_canShow.sqf b/addons/microdagr/functions/fnc_canShow.sqf
index 70e8989031..d339f80794 100644
--- a/addons/microdagr/functions/fnc_canShow.sqf
+++ b/addons/microdagr/functions/fnc_canShow.sqf
@@ -27,8 +27,10 @@ _returnValue = switch (_showType) do {
("ACE_microDAGR" in (items ACE_player)) && {[ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)}
};
case (DISPLAY_MODE_DISPLAY): {
- //Can't have minimap up while zoomed in
- (cameraview != "GUNNER") && {"ACE_microDAGR" in (items ACE_player)} && {[ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)}
+ //Can't have minimap up while zoomed in on foot, but allow drivers to use while in "Gunner" to handle non-3d vehicles like most tanks
+ ((cameraView != "GUNNER") || {(vehicle ACE_player != ACE_player) && {driver vehicle ACE_player == ACE_player}}) &&
+ {"ACE_microDAGR" in (items ACE_player)} &&
+ {[ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)}
};
default { false };
};
diff --git a/addons/microdagr/functions/fnc_showApplicationPage.sqf b/addons/microdagr/functions/fnc_showApplicationPage.sqf
index dba6b54f18..9b461d6b64 100644
--- a/addons/microdagr/functions/fnc_showApplicationPage.sqf
+++ b/addons/microdagr/functions/fnc_showApplicationPage.sqf
@@ -40,7 +40,7 @@ if (GVAR(currentApplicationPage) == APP_MODE_INFODISPLAY) then {
if (GVAR(currentWaypoint) == -2) then {
(_display displayCtrl IDC_MODEDISPLAY_TARGETICON) ctrlSetText "\A3\ui_f\data\igui\rscingameui\rscoptics\laser_designator_iconLaserOn.paa"
} else {
- (_display displayCtrl IDC_MODEDISPLAY_TARGETICON) ctrlSetText QUOTE(PATHTOF(images\icon_menuMark.paa));
+ (_display displayCtrl IDC_MODEDISPLAY_TARGETICON) ctrlSetText QPATHTOF(images\icon_menuMark.paa);
};
};
};
@@ -100,19 +100,19 @@ if (GVAR(currentApplicationPage) == APP_MODE_MARK) then {
//Buttons pushed:
if (GVAR(currentApplicationPage) == APP_MODE_INFODISPLAY) then {
- (_display displayCtrl IDC_BUTTONBG0) ctrlSetText QUOTE(PATHTOF(images\button_pushedDown.paa));
+ (_display displayCtrl IDC_BUTTONBG0) ctrlSetText QPATHTOF(images\button_pushedDown.paa);
} else {
- (_display displayCtrl IDC_BUTTONBG0) ctrlSetText QUOTE(PATHTOF(images\button_pushedUp.paa));
+ (_display displayCtrl IDC_BUTTONBG0) ctrlSetText QPATHTOF(images\button_pushedUp.paa);
};
if (GVAR(currentApplicationPage) == APP_MODE_COMPASS) then {
- (_display displayCtrl IDC_BUTTONBG1) ctrlSetText QUOTE(PATHTOF(images\button_pushedDown.paa));
+ (_display displayCtrl IDC_BUTTONBG1) ctrlSetText QPATHTOF(images\button_pushedDown.paa);
} else {
- (_display displayCtrl IDC_BUTTONBG1) ctrlSetText QUOTE(PATHTOF(images\button_pushedUp.paa));
+ (_display displayCtrl IDC_BUTTONBG1) ctrlSetText QPATHTOF(images\button_pushedUp.paa);
};
if (GVAR(currentApplicationPage) == APP_MODE_MAP) then {
- (_display displayCtrl IDC_BUTTONBG2) ctrlSetText QUOTE(PATHTOF(images\button_pushedDown.paa));
+ (_display displayCtrl IDC_BUTTONBG2) ctrlSetText QPATHTOF(images\button_pushedDown.paa);
} else {
- (_display displayCtrl IDC_BUTTONBG2) ctrlSetText QUOTE(PATHTOF(images\button_pushedUp.paa));
+ (_display displayCtrl IDC_BUTTONBG2) ctrlSetText QPATHTOF(images\button_pushedUp.paa);
};
//Update the page now:
diff --git a/addons/microdagr/gui_controls.hpp b/addons/microdagr/gui_controls.hpp
index a8fbb8f83f..c60201b34e 100644
--- a/addons/microdagr/gui_controls.hpp
+++ b/addons/microdagr/gui_controls.hpp
@@ -10,7 +10,7 @@ class controlsBackground {
};
class StatusBarBS: RscPicture {
idc = -1;
- text = QUOTE(PATHTOF(images\microDAGR_topBar.paa));
+ text = QPATHTOF(images\microDAGR_topBar.paa);
x = X_PART(0);
y = Y_PART(0);
w = W_PART(25);
@@ -187,7 +187,7 @@ class controls {
};
class selfIcon: RscPicture {
idc = -1;
- text = QUOTE(PATHTOF(images\icon_self.paa));
+ text = QPATHTOF(images\icon_self.paa);
x = W_PART(0.5);
y = H_PART(2);
w = W_PART(4);
@@ -242,7 +242,7 @@ class controls {
};
class CompasIcon: RscPicture {
idc = -1;
- text = QUOTE(PATHTOF(images\icon_infoCompass.paa));
+ text = QPATHTOF(images\icon_infoCompass.paa);
x = W_PART(0.5);
y = H_PART(8.5);
w = W_PART(2);
@@ -284,7 +284,7 @@ class controls {
class controls {
class TimeIcon: RscPicture {
idc = -1;
- text = QUOTE(PATHTOF(images\icon_infoClock.paa));
+ text = QPATHTOF(images\icon_infoClock.paa);
x = W_PART(0.5);
y = H_PART(3.5);
w = W_PART(2);
@@ -315,7 +315,7 @@ class controls {
class controls {
class TargetIcon: RscPicture {
idc = IDC_MODEDISPLAY_TARGETICON;
- text = QUOTE(PATHTOF(images\icon_menuMark.paa));
+ text = QPATHTOF(images\icon_menuMark.paa);
x = W_PART(0.5);
y = H_PART(0.5);
w = W_PART(2);
@@ -440,7 +440,7 @@ class controls {
class mapTrackButton: GVAR(RscActiveTextPicture) {
onbuttonclick = QUOTE(['autotrack'] call FUNC(modeMapButtons));
idc = IDC_MODEMAP_MAPTRACKBUTTON;
- text = QUOTE(PATHTOF(images\icon_mapTrack.paa));
+ text = QPATHTOF(images\icon_mapTrack.paa);
x = X_PART(11);
y = Y_PART(18.75);
w = W_PART(3);
@@ -449,14 +449,14 @@ class controls {
class mapZoomIn: mapTrackButton {
onbuttonclick = QUOTE(['zoomin'] call FUNC(modeMapButtons));
idc = IDC_MODEMAP_MAPZOOMIN;
- text = QUOTE(PATHTOF(images\icon_mapPlus.paa));
+ text = QPATHTOF(images\icon_mapPlus.paa);
color[] = {1,1,1,0.4};
x = X_PART(4);
};
class mapZoomOut: mapTrackButton {
onbuttonclick = QUOTE(['zoomout'] call FUNC(modeMapButtons));
idc = IDC_MODEMAP_MAPZOOMOUT;
- text = QUOTE(PATHTOF(images\icon_mapMinus.paa));
+ text = QPATHTOF(images\icon_mapMinus.paa);
color[] = {1,1,1,0.4};
x = X_PART(18);
};
@@ -472,7 +472,7 @@ class controls {
class Controls {
class ButtonTL: GVAR(RscActiveTextPicture) {
idc = -1;
- text = QUOTE(PATHTOF(images\icon_menuMark.paa));
+ text = QPATHTOF(images\icon_menuMark.paa);
x = W_PART(3);
y = H_PART(1.5);
w = W_PART(8);
@@ -480,7 +480,7 @@ class controls {
onbuttonclick = QUOTE([4] call FUNC(saveCurrentAndSetNewMode));
};
class ButtonTR: ButtonTL {
- text = QUOTE(PATHTOF(images\icon_menuWaypoints.paa));
+ text = QPATHTOF(images\icon_menuWaypoints.paa);
x = W_PART(14);
y = H_PART(1.5);
onbuttonclick = QUOTE([5] call FUNC(saveCurrentAndSetNewMode));
@@ -492,7 +492,7 @@ class controls {
onbuttonclick = QUOTE(_this call FUNC(appMenuButtonConnectRangefinder));
};
class ButtonBR: ButtonTL {
- text = QUOTE(PATHTOF(images\icon_menuSettings.paa));
+ text = QPATHTOF(images\icon_menuSettings.paa);
x = W_PART(14);
y = H_PART(10.5);
onbuttonclick = QUOTE([6] call FUNC(saveCurrentAndSetNewMode));
@@ -555,7 +555,7 @@ class controls {
};
class DeleteButton: GVAR(RscActiveTextPicture) {
idc = -1;
- text = QUOTE(PATHTOF(images\icon_deleteButton.paa));
+ text = QPATHTOF(images\icon_deleteButton.paa);
x = W_PART(20);
y = H_PART(2.75);
w = W_PART(2);
@@ -717,7 +717,7 @@ class controls {
class ButtonBG0: RscPicture {
idc = IDC_BUTTONBG0;
- text = QUOTE(PATHTOF(images\button_pushedDown.paa));
+ text = QPATHTOF(images\button_pushedDown.paa);
x = X_PART(0 * (25/3));
y = Y_PART(21);
w = W_PART((25/3));
@@ -733,7 +733,7 @@ class controls {
};
class ButtonIcon0: GVAR(RscActiveTextPicture) {
idc = -1;
- text = QUOTE(PATHTOF(images\icon_info.paa));
+ text = QPATHTOF(images\icon_info.paa);
x = X_PART(0 * (25/3));
y = Y_PART(21);
w = W_PART((25/3));
@@ -741,19 +741,19 @@ class controls {
onbuttonclick = QUOTE([APP_MODE_INFODISPLAY] call FUNC(saveCurrentAndSetNewMode));
};
class ButtonIcon1: ButtonIcon0 {
- text = QUOTE(PATHTOF(images\icon_compass.paa));
+ text = QPATHTOF(images\icon_compass.paa);
x = X_PART(1 * (25/3));
onbuttonclick = QUOTE([APP_MODE_COMPASS] call FUNC(saveCurrentAndSetNewMode));
};
class ButtonIcon2: ButtonIcon0 {
- text = QUOTE(PATHTOF(images\icon_map.paa));
+ text = QPATHTOF(images\icon_map.paa);
x = X_PART(2 * (25/3));
onbuttonclick = QUOTE([APP_MODE_MAP] call FUNC(saveCurrentAndSetNewMode));
};
//At the end: The Big Shell overlay
class MicroDagrShell: RscPicture {
idc = IDC_MICRODAGRSHELL;
- text = QUOTE(PATHTOF(images\microDAGR_shellPicture.paa));
+ text = QPATHTOF(images\microDAGR_shellPicture.paa);
x = X_PART(-14.77);
y = Y_PART(-5.875);
w = W_PART(53.62);
diff --git a/addons/missileguidance/config.cpp b/addons/missileguidance/config.cpp
index 526d9ba757..81c0aedc5e 100644
--- a/addons/missileguidance/config.cpp
+++ b/addons/missileguidance/config.cpp
@@ -6,6 +6,8 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_laser"};
+ author = ECSTRING(common,ACETeam);
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/missileguidance/functions/fnc_guidancePFH.sqf b/addons/missileguidance/functions/fnc_guidancePFH.sqf
index 43e9ad2925..36c11d58af 100644
--- a/addons/missileguidance/functions/fnc_guidancePFH.sqf
+++ b/addons/missileguidance/functions/fnc_guidancePFH.sqf
@@ -24,7 +24,7 @@ _seekerParams = _args select 3;
_stateParams = _args select 4;
_lastRunTime = _stateParams select 0;
-_runtimeDelta = ACE_diagTime - _lastRunTime;
+_runtimeDelta = diag_tickTime - _lastRunTime;
_adjustTime = 1;
if(accTime > 0) then {
@@ -100,7 +100,7 @@ _PS setDropInterval 3.0;
hintSilent format["d: %1", _distanceToTarget];
#endif
-_stateParams set[0, ACE_diagTime];
+_stateParams set[0, diag_tickTime];
_args set[4, _stateParams];
_this set[0, _args];
\ No newline at end of file
diff --git a/addons/missileguidance/functions/fnc_onFired.sqf b/addons/missileguidance/functions/fnc_onFired.sqf
index 068fab152b..2a263721de 100644
--- a/addons/missileguidance/functions/fnc_onFired.sqf
+++ b/addons/missileguidance/functions/fnc_onFired.sqf
@@ -89,7 +89,7 @@ _args = [_this,
getNumber ( _config >> "seekerAccuracy" ),
getNumber ( _config >> "seekerMaxRange" )
],
- [ ACE_diagTime, [], [] ]
+ [ diag_tickTime, [], [] ]
];
// Hand off to the guiding unit. We just use local player so local PFH fires for now
diff --git a/addons/missionmodules/CfgVehicles.hpp b/addons/missionmodules/CfgVehicles.hpp
index ebf0b04f66..6a2f74b934 100644
--- a/addons/missionmodules/CfgVehicles.hpp
+++ b/addons/missionmodules/CfgVehicles.hpp
@@ -9,9 +9,9 @@ class CfgVehicles {
class ACE_moduleAmbianceSound: Module_F {
scope = 2;
displayName = CSTRING(AmbianceSounds_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Ambient_Sounds_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Ambient_Sounds_ca.paa);
category = "ACE_missionModules";
- function = QUOTE(FUNC(moduleAmbianceSound));
+ function = QFUNC(moduleAmbianceSound);
functionPriority = 1;
isGlobal = 1;
isTriggerActivated = 0;
diff --git a/addons/missionmodules/config.cpp b/addons/missionmodules/config.cpp
index c373b84615..2f58f5c42f 100644
--- a/addons/missionmodules/config.cpp
+++ b/addons/missionmodules/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Glowbal"};
- authorUrl = "";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Glowbal"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/missionmodules/functions/fnc_moduleAmbianceSound.sqf b/addons/missionmodules/functions/fnc_moduleAmbianceSound.sqf
index 3ee45f324e..eb44a68f15 100644
--- a/addons/missionmodules/functions/fnc_moduleAmbianceSound.sqf
+++ b/addons/missionmodules/functions/fnc_moduleAmbianceSound.sqf
@@ -74,7 +74,7 @@ if (_activated && local _logic) then {
[_pfhHandle] call CBA_fnc_removePerFrameHandler;
};
- if (ACE_time - _lastTimePlayed >= ((_minDelayBetweensounds + random(_maxDelayBetweenSounds)) min _maxDelayBetweenSounds)) then {
+ if (CBA_missionTime - _lastTimePlayed >= ((_minDelayBetweensounds + random(_maxDelayBetweenSounds)) min _maxDelayBetweenSounds)) then {
// Find all players in session.
_allUnits = if (isMultiplayer) then {playableUnits} else {[ACE_player]};
@@ -109,11 +109,11 @@ if (_activated && local _logic) then {
// If no unit is to close to this position, we will play the sound.
if ({(_newPos distance _x < (_minimalDistance / 2))}count _allUnits == 0) then {
playSound3D [selectRandom _ambianceSounds, objNull, false, _newPos, _volume, 1, 1000];
- _args set [8, ACE_time];
+ _args set [8, CBA_missionTime];
};
};
};
- }, 0.1, [_logic, _ambianceSounds, _minimalDistance, _maximalDistance, _minDelayBetweensounds, _maxDelayBetweenSounds, _volume, _followPlayers, ACE_time] ] call CBA_fnc_addPerFrameHandler;
+ }, 0.1, [_logic, _ambianceSounds, _minimalDistance, _maximalDistance, _minDelayBetweensounds, _maxDelayBetweenSounds, _volume, _followPlayers, CBA_missionTime] ] call CBA_fnc_addPerFrameHandler;
};
true;
diff --git a/addons/mk6mortar/CfgVehicles.hpp b/addons/mk6mortar/CfgVehicles.hpp
index fa6667f874..75b0277192 100644
--- a/addons/mk6mortar/CfgVehicles.hpp
+++ b/addons/mk6mortar/CfgVehicles.hpp
@@ -8,7 +8,7 @@ class CfgVehicles {
condition = QUOTE(_this call FUNC(rangeTableCanUse));
statement = QUOTE(_this call FUNC(rangeTableOpen));
priority = 0;
- icon = QUOTE(PATHTOF(UI\icon_rangeTable.paa));
+ icon = QPATHTOF(UI\icon_rangeTable.paa);
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
};
};
@@ -102,7 +102,7 @@ class CfgVehicles {
scope = 2;
isGlobal = 0;
isSingular = 1;
- icon = QUOTE(PATHTOF(UI\Icon_Module_mk6_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_mk6_ca.paa);
functionPriority = 0;
class Arguments {
class airResistanceEnabled {
diff --git a/addons/mk6mortar/CfgWeapons.hpp b/addons/mk6mortar/CfgWeapons.hpp
index f535840e99..cb5454321d 100644
--- a/addons/mk6mortar/CfgWeapons.hpp
+++ b/addons/mk6mortar/CfgWeapons.hpp
@@ -7,7 +7,7 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(rangetable_name);
descriptionShort = CSTRING(rangetable_description);
- picture = QUOTE(PATHTOF(UI\icon_rangeTable.paa));
+ picture = QPATHTOF(UI\icon_rangeTable.paa);
class ItemInfo: InventoryItem_Base_F {
mass = 0.5;
};
diff --git a/addons/mk6mortar/RscRangeTable.hpp b/addons/mk6mortar/RscRangeTable.hpp
index 6bf0e51619..c719dd7ee4 100644
--- a/addons/mk6mortar/RscRangeTable.hpp
+++ b/addons/mk6mortar/RscRangeTable.hpp
@@ -7,7 +7,7 @@ class ACE_82mm_RangeTable_Dialog {
class ControlsBackground {
class TableBackground: RscPicture {
idc = -1;
- text = QUOTE(PATHTOF(UI\RangeTable_background.paa));
+ text = QPATHTOF(UI\RangeTable_background.paa);
x = "18 *(safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
y = "1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
w = "16.2634559672906 * (safeZoneH / 40)";
diff --git a/addons/mk6mortar/cfgMagazines.hpp b/addons/mk6mortar/cfgMagazines.hpp
index 679539e1a2..a726bc5a9f 100644
--- a/addons/mk6mortar/cfgMagazines.hpp
+++ b/addons/mk6mortar/cfgMagazines.hpp
@@ -8,8 +8,8 @@ class cfgMagazines {
displayName = CSTRING(magazine_HE_displayName);
displayNameShort = "";
descriptionShort = CSTRING(magazine_descriptionShort);
- model = PATHTOF(data\l16_ammo_he.p3d);
- picture = PATHTOF(UI\w_l16_ammo_he_ca.paa);
+ model = QPATHTOF(data\l16_ammo_he.p3d);
+ picture = QPATHTOF(UI\w_l16_ammo_he_ca.paa);
mass = 50;
};
class 8Rnd_82mm_Mo_Smoke_white;
@@ -21,8 +21,8 @@ class cfgMagazines {
displayName = CSTRING(magazine_Smoke_displayName);
displayNameShort = "";
descriptionShort = CSTRING(magazine_descriptionShort);
- model = PATHTOF(data\l16_ammo_smk_white.p3d);
- picture = PATHTOF(UI\w_l16_ammo_smk_white_ca.paa);
+ model = QPATHTOF(data\l16_ammo_smk_white.p3d);
+ picture = QPATHTOF(UI\w_l16_ammo_smk_white_ca.paa);
mass = 50;
};
class 8Rnd_82mm_Mo_Flare_white;
@@ -34,8 +34,8 @@ class cfgMagazines {
displayName = CSTRING(magazine_Illum_displayName);
displayNameShort = "";
descriptionShort = CSTRING(magazine_descriptionShort);
- model = PATHTOF(data\l16_ammo_illum.p3d);
- picture = PATHTOF(UI\w_l16_ammo_illum_ca.paa);
+ model = QPATHTOF(data\l16_ammo_illum.p3d);
+ picture = QPATHTOF(UI\w_l16_ammo_illum_ca.paa);
mass = 50;
};
class 8Rnd_82mm_Mo_guided;
@@ -47,8 +47,8 @@ class cfgMagazines {
displayName = CSTRING(magazine_HE_Guided_displayName);
displayNameShort = "";
descriptionShort = CSTRING(magazine_descriptionShort);
- model = PATHTOF(data\l16_ammo_he.p3d);
- picture = PATHTOF(UI\w_l16_ammo_he_ca.paa);
+ model = QPATHTOF(data\l16_ammo_he.p3d);
+ picture = QPATHTOF(UI\w_l16_ammo_he_ca.paa);
mass = 50;
};
class 8Rnd_82mm_Mo_LG;
@@ -60,8 +60,8 @@ class cfgMagazines {
displayName = CSTRING(magazine_HE_LaserGuided_displayName);
displayNameShort = "";
descriptionShort = CSTRING(magazine_descriptionShort);
- model = PATHTOF(data\l16_ammo_he.p3d);
- picture = PATHTOF(UI\w_l16_ammo_he_ca.paa);
+ model = QPATHTOF(data\l16_ammo_he.p3d);
+ picture = QPATHTOF(UI\w_l16_ammo_he_ca.paa);
mass = 50;
};
};
diff --git a/addons/mk6mortar/config.cpp b/addons/mk6mortar/config.cpp
index 102875a195..c445bd0a32 100644
--- a/addons/mk6mortar/config.cpp
+++ b/addons/mk6mortar/config.cpp
@@ -7,8 +7,9 @@ class CfgPatches {
weapons[] = {"ACE_RangeTable_82mm","ace_mortar_82mm"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"PabstMirror","Grey","VKing"};
- authorUrl = "https://github.com/acemod";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"PabstMirror","Grey","VKing"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/mk6mortar/functions/fnc_dev_simulateCalcRangeTableLine.sqf b/addons/mk6mortar/functions/fnc_dev_simulateCalcRangeTableLine.sqf
index 9d8b292070..d1e0a8dd05 100644
--- a/addons/mk6mortar/functions/fnc_dev_simulateCalcRangeTableLine.sqf
+++ b/addons/mk6mortar/functions/fnc_dev_simulateCalcRangeTableLine.sqf
@@ -21,7 +21,7 @@ Example:
private ["_startTime", "_muzzleVelocity", "_rangeToHit", "_airFriction", "_vacElevation", "_radicand", "_maxElev", "_minElev", "_error", "_solutionElevation", "_lastTestResult", "_numberOfAttempts", "_lineElevation", "_lineTimeOfFlight", "_lineHeightElevation", "_lineHeightTimeDelta", "_lineCrosswindDeg", "_lineHeadwindMeters", "_lineTailWindMeters", "_result"];
-_startTime = ACE_diagTime;
+_startTime = diag_tickTime;
_muzzleVelocity = _this select 0;
_rangeToHit = _this select 1;
@@ -74,6 +74,6 @@ _lineAirDensDec = (_rangeToHit - (_lastTestResult select 0)) / 10;
_lastTestResult = [_lineElevation, _muzzleVelocity, _airFriction, 15, 1.1, 0, 0, 0, TIME_STEP] call FUNC(dev_simulateShot);
_lineAirDensInc = (_rangeToHit - (_lastTestResult select 0)) / 10;
-// systemChat format ["debug: Range %1 - in %2 sec", _rangeToHit, (ACE_diagTime - _startTime)];
+// systemChat format ["debug: Range %1 - in %2 sec", _rangeToHit, (diag_tickTime - _startTime)];
[_rangeToHit, _lineElevation, _lineHeightElevation, _lineHeightTimeDelta, _lineTimeOfFlight, _lineCrosswindDeg, _lineHeadwindMeters, _lineTailWindMeters, _lineTempDec, _lineTempInc, _lineAirDensDec, _lineAirDensInc]
diff --git a/addons/mk6mortar/functions/fnc_handleFired.sqf b/addons/mk6mortar/functions/fnc_handleFired.sqf
index e14fd77f6a..483a69d42b 100644
--- a/addons/mk6mortar/functions/fnc_handleFired.sqf
+++ b/addons/mk6mortar/functions/fnc_handleFired.sqf
@@ -70,8 +70,8 @@ if (_newMuzzleVelocityCoefficent != 1) then {
[_pfID] call CBA_fnc_removePerFrameHandler;
};
- _deltaT = ACE_time - _time;
- _args set[2, ACE_time];
+ _deltaT = CBA_missionTime - _time;
+ _args set[2, CBA_missionTime];
_bulletVelocity = velocity _shell;
_bulletSpeed = vectorMagnitude _bulletVelocity;
@@ -85,4 +85,4 @@ if (_newMuzzleVelocityCoefficent != 1) then {
_shell setVelocity _bulletVelocity;
-}, 0, [_projectile, MK6_82mm_AIR_FRICTION, ACE_time, _relativeDensity]] call CBA_fnc_addPerFrameHandler;
+}, 0, [_projectile, MK6_82mm_AIR_FRICTION, CBA_missionTime, _relativeDensity]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/mk6mortar/functions/fnc_handlePlayerVehicleChanged.sqf b/addons/mk6mortar/functions/fnc_handlePlayerVehicleChanged.sqf
index 2d921973d4..c3956d48a9 100644
--- a/addons/mk6mortar/functions/fnc_handlePlayerVehicleChanged.sqf
+++ b/addons/mk6mortar/functions/fnc_handlePlayerVehicleChanged.sqf
@@ -30,7 +30,7 @@ if (!(_newVehicle getVariable [QGVAR(initialized),false]) && !(_newVehicle getVa
//wait for proper turret locality change
[{
["initMortar", [_this], [_this]] call EFUNC(common,globalEvent);
- }, _mortar, 0.05] call EFUNC(common,waitAndExecute);
+ }, _mortar, 0.05] call CBA_fnc_waitAndExecute;
};
}, _newVehicle] call EFUNC(common,runAfterSettingsInit);
};
@@ -71,7 +71,7 @@ if (_lastFireMode != -1) then {
_display = uiNamespace getVariable ["ACE_Mk6_RscWeaponRangeArtillery", displayNull];
if (isNull _display) exitWith {}; //It may be null for the first frame
- _chargeText = format ["%1: %2 ", (localize LSTRING(rangetable_charge)), _currentChargeMode, QUOTE(PATHTOF(UI\ui_charges.paa))];
+ _chargeText = format ["%1: %2 ", (localize LSTRING(rangetable_charge)), _currentChargeMode, QPATHTOF(UI\ui_charges.paa)];
//Hud should hidden in 3rd person
_notGunnerView = cameraView != "GUNNER";
diff --git a/addons/modules/config.cpp b/addons/modules/config.cpp
index d25e193d32..aeb097fdff 100644
--- a/addons/modules/config.cpp
+++ b/addons/modules/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_main"};
- author[] = {"Glowbal"};
- authorUrl = "";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Glowbal"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/movement/config.cpp b/addons/movement/config.cpp
index 8ea42fbf0c..a1d9b25be4 100644
--- a/addons/movement/config.cpp
+++ b/addons/movement/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2","KoffeinFlummi","Tachii"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2","KoffeinFlummi","Tachii"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/mx2a/CfgWeapons.hpp b/addons/mx2a/CfgWeapons.hpp
index 6f590e2ed4..7ff5943a88 100644
--- a/addons/mx2a/CfgWeapons.hpp
+++ b/addons/mx2a/CfgWeapons.hpp
@@ -5,9 +5,9 @@ class CfgWeapons {
author = ECSTRING(common,ACETeam);
displayName = CSTRING(DisplayName);
descriptionShort = CSTRING(Description);
- model = PATHTOF(data\ace_mx2a.p3d);
- modelOptics = QUOTE(PATHTOEF(apl,LWTS_optic.p3d));
- picture = PATHTOF(UI\w_mx2a_ca.paa);
+ model = QPATHTOF(data\ace_mx2a.p3d);
+ modelOptics = QPATHTOEF(apl,LWTS_optic.p3d);
+ picture = QPATHTOF(UI\w_mx2a_ca.paa);
opticsZoomMax = 0.1;
distanceZoomMax = 120;
opticsZoomMin = 0.05;
diff --git a/addons/mx2a/config.cpp b/addons/mx2a/config.cpp
index 45b1643ed2..c59dc43dd3 100644
--- a/addons/mx2a/config.cpp
+++ b/addons/mx2a/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_MX2A"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_apl"};
- author[] = {"Spooner", "tcp"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Spooner", "tcp"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/nametags/CfgVehicles.hpp b/addons/nametags/CfgVehicles.hpp
index 7ca13b5aeb..6b8b8956ae 100644
--- a/addons/nametags/CfgVehicles.hpp
+++ b/addons/nametags/CfgVehicles.hpp
@@ -8,7 +8,7 @@ class CfgVehicles {
scope = 2;
isGlobal = 1;
isSingular = 1;
- icon = QUOTE(PATHTOF(UI\Icon_Module_NameTags_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_NameTags_ca.paa);
class Arguments {
class showPlayerNames {
displayName = CSTRING(ShowPlayerNames);
diff --git a/addons/nametags/XEH_postInit.sqf b/addons/nametags/XEH_postInit.sqf
index 46d0e287d8..0ef4fde96b 100644
--- a/addons/nametags/XEH_postInit.sqf
+++ b/addons/nametags/XEH_postInit.sqf
@@ -14,7 +14,7 @@ GVAR(showNamesTime) = -10;
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
// Statement
- GVAR(showNamesTime) = ACE_time;
+ GVAR(showNamesTime) = CBA_missionTime;
if (call FUNC(canShow)) then{ call FUNC(doShow); };
// Return false so it doesn't block other actions
false
diff --git a/addons/nametags/config.cpp b/addons/nametags/config.cpp
index a2d38254f1..b02dfa9297 100644
--- a/addons/nametags/config.cpp
+++ b/addons/nametags/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = { "commy2", "esteldunedain" };
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = { "commy2", "esteldunedain" };
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/nametags/functions/common.hpp b/addons/nametags/functions/common.hpp
index 6aeb24fc5a..ef3706cd32 100644
--- a/addons/nametags/functions/common.hpp
+++ b/addons/nametags/functions/common.hpp
@@ -17,6 +17,6 @@
"a3\ui_f\data\IGUI\Cfg\Actions\getindriver_ca.paa", \
"a3\ui_f\data\IGUI\Cfg\Actions\getincommander_ca.paa", \
"a3\ui_f\data\IGUI\Cfg\Actions\getingunner_ca.paa", \
- QUOTE(PATHTOF(UI\icon_position_ffv.paa)), \
+ QPATHTOF(UI\icon_position_ffv.paa), \
"a3\ui_f\data\IGUI\Cfg\Actions\getincargo_ca.paa" \
]
diff --git a/addons/nametags/functions/fnc_drawNameTagIcon.sqf b/addons/nametags/functions/fnc_drawNameTagIcon.sqf
index 95c3f5228b..f031882da7 100644
--- a/addons/nametags/functions/fnc_drawNameTagIcon.sqf
+++ b/addons/nametags/functions/fnc_drawNameTagIcon.sqf
@@ -33,7 +33,7 @@ _fnc_parameters = {
private _icon = "";
private _size = 0;
if (_drawSoundwave) then {
- _icon = format [QUOTE(PATHTOF(UI\soundwave%1.paa)), floor random 10];
+ _icon = format [QPATHTOF(UI\soundwave%1.paa), floor random 10];
_size = 1;
} else {
if (_drawRank && {rank _target != ""}) then {
diff --git a/addons/nametags/functions/fnc_onDraw3d.sqf b/addons/nametags/functions/fnc_onDraw3d.sqf
index eed96b3101..d9d26cd0ac 100644
--- a/addons/nametags/functions/fnc_onDraw3d.sqf
+++ b/addons/nametags/functions/fnc_onDraw3d.sqf
@@ -47,13 +47,13 @@ switch (GVAR(showPlayerNames)) do {
};
case 3: {
// Player names Only Keypress
- _onKeyPressAlphaMax = 2 + (GVAR(showNamesTime) - ACE_time);
+ _onKeyPressAlphaMax = 2 + (GVAR(showNamesTime) - CBA_missionTime);
_enabledTagsNearby = (_onKeyPressAlphaMax) > 0 || (GVAR(showSoundWaves) == 2);
_enabledTagsCursor = false;
};
case 4: {
// Player names Only Cursor and Keypress
- _onKeyPressAlphaMax = 2 + (GVAR(showNamesTime) - ACE_time);
+ _onKeyPressAlphaMax = 2 + (GVAR(showNamesTime) - CBA_missionTime);
_enabledTagsNearby = (GVAR(showSoundWaves) == 2);
_enabledTagsCursor = _onKeyPressAlphaMax > 0;
};
diff --git a/addons/nightvision/CfgVehicles.hpp b/addons/nightvision/CfgVehicles.hpp
index 8b489ad64f..c540251dbb 100644
--- a/addons/nightvision/CfgVehicles.hpp
+++ b/addons/nightvision/CfgVehicles.hpp
@@ -19,9 +19,9 @@ class CfgVehicles {
class GVAR(ModuleSettings): ACE_Module {
scope = 2;
displayName = CSTRING(Module_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_ca.paa);
category = "ACE";
- function = QUOTE(FUNC(initModule));
+ function = QFUNC(initModule);
functionPriority = 1;
isGlobal = 1;
isTriggerActivated = 0;
diff --git a/addons/nightvision/CfgWeapons.hpp b/addons/nightvision/CfgWeapons.hpp
index 8a053a3262..72be31d8cf 100644
--- a/addons/nightvision/CfgWeapons.hpp
+++ b/addons/nightvision/CfgWeapons.hpp
@@ -47,7 +47,7 @@ class CfgWeapons {
};
class ACE_NVG_Wide: NVGoggles {
author = ECSTRING(common,ACETeam);
- modelOptics = QUOTE(PATHTOF(models\ACE_nvg_wide_optics));
+ modelOptics = QPATHTOF(models\ACE_nvg_wide_optics);
displayName = CSTRING(NVG_FullScreen);
ACE_NightVision_grain = 0.75;
ACE_NightVision_blur = 0.055;
diff --git a/addons/nightvision/config.cpp b/addons/nightvision/config.cpp
index 1edeca6e5b..9397740e61 100644
--- a/addons/nightvision/config.cpp
+++ b/addons/nightvision/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_NVG_Gen1", "ACE_NVG_Gen2", /*"ACE_NVG_Gen3",*/ "ACE_NVG_Gen4", "ACE_NVG_Wide"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2", "KoffeinFlummi", "PabstMirror"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2", "KoffeinFlummi", "PabstMirror"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/noidle/config.cpp b/addons/noidle/config.cpp
index 3c2ac1a9d6..b0792486f7 100644
--- a/addons/noidle/config.cpp
+++ b/addons/noidle/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2"};
- authorUrl = "https://github.com/commy2";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/noradio/config.cpp b/addons/noradio/config.cpp
index 86697535f8..0781a4a15e 100644
--- a/addons/noradio/config.cpp
+++ b/addons/noradio/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/norearm/config.cpp b/addons/norearm/config.cpp
index 3477258612..2b670e0db1 100644
--- a/addons/norearm/config.cpp
+++ b/addons/norearm/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2"};
- authorUrl = "https://github.com/commy2";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/optics/CfgRscTitles.hpp b/addons/optics/CfgRscTitles.hpp
index 3bbd6b62bc..42a2326a0e 100644
--- a/addons/optics/CfgRscTitles.hpp
+++ b/addons/optics/CfgRscTitles.hpp
@@ -33,7 +33,7 @@ class RscInGameUI {
style = 48;
size = 1;
sizeEx = 0;
- text = QUOTE(PATHTOF(reticles\ace_shortdot_reticle_1.paa));
+ text = QPATHTOF(reticles\ace_shortdot_reticle_1.paa);
w = 0;
h = 0;
};
@@ -115,73 +115,73 @@ class RscInGameUI {
class ACE_RscWeapon_Hamr: ACE_RscWeapon_base {
class ReticleDay: ReticleDay {
- text = QUOTE(PATHTOF(reticles\hamr-reticle65_ca.paa));
+ text = QPATHTOF(reticles\hamr-reticle65_ca.paa);
};
class ReticleNight: ReticleNight {
- text = QUOTE(PATHTOF(reticles\hamr-reticle65Illum_ca.paa));
+ text = QPATHTOF(reticles\hamr-reticle65Illum_ca.paa);
};
class BodyDay: BodyDay {
- text = QUOTE(PATHTOF(reticles\hamr-body_ca.paa));
+ text = QPATHTOF(reticles\hamr-body_ca.paa);
};
class BodyNight: BodyNight {
- text = QUOTE(PATHTOF(reticles\hamr-bodyNight_ca.paa));
+ text = QPATHTOF(reticles\hamr-bodyNight_ca.paa);
};
};
class ACE_RscWeapon_Arco: ACE_RscWeapon_base {
class ReticleDay: ReticleDay {
- text = QUOTE(PATHTOF(reticles\arco-reticle65_ca.paa));
+ text = QPATHTOF(reticles\arco-reticle65_ca.paa);
};
class ReticleNight: ReticleNight {
- text = QUOTE(PATHTOF(reticles\arco-reticle65Illum_ca.paa));
+ text = QPATHTOF(reticles\arco-reticle65Illum_ca.paa);
};
class BodyDay: BodyDay {
- text = QUOTE(PATHTOF(reticles\arco-body_ca.paa));
+ text = QPATHTOF(reticles\arco-body_ca.paa);
};
class BodyNight: BodyNight {
- text = QUOTE(PATHTOF(reticles\arco-bodyNight_ca.paa));
+ text = QPATHTOF(reticles\arco-bodyNight_ca.paa);
};
};
class ACE_RscWeapon_MRCO: ACE_RscWeapon_base {
class ReticleDay: ReticleDay {
- text = QUOTE(PATHTOF(reticles\mrco-reticle556_ca.paa));
+ text = QPATHTOF(reticles\mrco-reticle556_ca.paa);
};
class ReticleNight: ReticleNight {
- text = QUOTE(PATHTOF(reticles\mrco-reticle556Illum_ca.paa));
+ text = QPATHTOF(reticles\mrco-reticle556Illum_ca.paa);
};
class BodyDay: BodyDay {
- text = QUOTE(PATHTOF(reticles\mrco-body_ca.paa));
+ text = QPATHTOF(reticles\mrco-body_ca.paa);
};
class BodyNight: BodyNight {
- text = QUOTE(PATHTOF(reticles\mrco-bodyNight_ca.paa));
+ text = QPATHTOF(reticles\mrco-bodyNight_ca.paa);
};
};
class ACE_RscWeapon_SOS: ACE_RscWeapon_base {
class ReticleDay: ReticleDay {
- text = QUOTE(PATHTOF(reticles\sos-reticleMLR_ca.paa));
+ text = QPATHTOF(reticles\sos-reticleMLR_ca.paa);
};
class ReticleNight: ReticleNight {
- text = QUOTE(PATHTOF(reticles\sos-reticleMLRIllum_ca.paa));
+ text = QPATHTOF(reticles\sos-reticleMLRIllum_ca.paa);
};
class BodyDay: BodyDay {
- text = QUOTE(PATHTOF(reticles\sos-body_ca.paa));
+ text = QPATHTOF(reticles\sos-body_ca.paa);
};
class BodyNight: BodyNight {
- text = QUOTE(PATHTOF(reticles\sos-bodyNight_ca.paa));
+ text = QPATHTOF(reticles\sos-bodyNight_ca.paa);
};
};
};
diff --git a/addons/optics/CfgWeapons.hpp b/addons/optics/CfgWeapons.hpp
index 2089a1dc80..668ca815b5 100644
--- a/addons/optics/CfgWeapons.hpp
+++ b/addons/optics/CfgWeapons.hpp
@@ -38,7 +38,7 @@ class CfgWeapons {
weaponInfoType = "ACE_RscWeaponZeroing";
class ItemInfo: ItemInfo {
- modelOptics = QUOTE(PATHTOF(models\ace_shortdot_optics.p3d));
+ modelOptics = QPATHTOF(models\ace_shortdot_optics.p3d);
class OpticsModes: OpticsModes {
class Snip: Snip {
@@ -65,10 +65,10 @@ class CfgWeapons {
};
class ACE_optic_Hamr_2D: optic_Hamr {
- GVAR(BodyDay) = QUOTE(PATHTOF(reticles\hamr-body_ca.paa));
- GVAR(BodyNight) = QUOTE(PATHTOF(reticles\hamr-bodyNight_ca.paa));
- GVAR(ReticleDay) = QUOTE(PATHTOF(reticles\hamr-reticle65_ca.paa));
- GVAR(ReticleNight) = QUOTE(PATHTOF(reticles\hamr-reticle65Illum_ca.paa));
+ GVAR(BodyDay) = QPATHTOF(reticles\hamr-body_ca.paa);
+ GVAR(BodyNight) = QPATHTOF(reticles\hamr-bodyNight_ca.paa);
+ GVAR(ReticleDay) = QPATHTOF(reticles\hamr-reticle65_ca.paa);
+ GVAR(ReticleNight) = QPATHTOF(reticles\hamr-reticle65Illum_ca.paa);
author = ECSTRING(common,ACETeam);
_generalMacro = "ACE_optic_Hamr_2D";
@@ -76,7 +76,7 @@ class CfgWeapons {
weaponInfoType = "ACE_RscWeapon_Hamr";
class ItemInfo: ItemInfo {
- modelOptics = QUOTE(PATHTOF(models\ace_optics_reticle90.p3d));
+ modelOptics = QPATHTOF(models\ace_optics_reticle90.p3d);
class OpticsModes: OpticsModes {
class Hamr2Collimator: Hamr2Collimator {};
@@ -101,7 +101,7 @@ class CfgWeapons {
displayName = CSTRING(hamr_pip);
class ItemInfo: ItemInfo {
- modelOptics = QUOTE(PATHTOF(models\ace_optics_pip.p3d));
+ modelOptics = QPATHTOF(models\ace_optics_pip.p3d);
};
};
@@ -115,10 +115,10 @@ class CfgWeapons {
};
class ACE_optic_Arco_2D: optic_Arco {
- GVAR(BodyDay) = QUOTE(PATHTOF(reticles\arco-body_ca.paa));
- GVAR(BodyNight) = QUOTE(PATHTOF(reticles\arco-bodyNight_ca.paa));
- GVAR(ReticleDay) = QUOTE(PATHTOF(reticles\arco-reticle65_ca.paa));
- GVAR(ReticleNight) = QUOTE(PATHTOF(reticles\arco-reticle65Illum_ca.paa));
+ GVAR(BodyDay) = QPATHTOF(reticles\arco-body_ca.paa);
+ GVAR(BodyNight) = QPATHTOF(reticles\arco-bodyNight_ca.paa);
+ GVAR(ReticleDay) = QPATHTOF(reticles\arco-reticle65_ca.paa);
+ GVAR(ReticleNight) = QPATHTOF(reticles\arco-reticle65Illum_ca.paa);
author = ECSTRING(common,ACETeam);
_generalMacro = "ACE_optic_Arco_2D";
@@ -126,7 +126,7 @@ class CfgWeapons {
weaponInfoType = "ACE_RscWeapon_Arco";
class ItemInfo: ItemInfo {
- modelOptics = QUOTE(PATHTOF(models\ace_optics_reticle90.p3d));
+ modelOptics = QPATHTOF(models\ace_optics_reticle90.p3d);
class OpticsModes: OpticsModes {
class ARCO2collimator: ARCO2collimator {};
@@ -150,7 +150,7 @@ class CfgWeapons {
displayName = CSTRING(arco_pip);
class ItemInfo: ItemInfo {
- modelOptics = QUOTE(PATHTOF(models\ace_optics_pip.p3d));
+ modelOptics = QPATHTOF(models\ace_optics_pip.p3d);
};
};
@@ -164,10 +164,10 @@ class CfgWeapons {
};
class ACE_optic_MRCO_2D: optic_MRCO {
- GVAR(BodyDay) = QUOTE(PATHTOF(reticles\mrco-body_ca.paa));
- GVAR(BodyNight) = QUOTE(PATHTOF(reticles\mrco-bodyNight_ca.paa));
- GVAR(ReticleDay) = QUOTE(PATHTOF(reticles\mrco-reticle556_ca.paa));
- GVAR(ReticleNight) = QUOTE(PATHTOF(reticles\mrco-reticle556Illum_ca.paa));
+ GVAR(BodyDay) = QPATHTOF(reticles\mrco-body_ca.paa);
+ GVAR(BodyNight) = QPATHTOF(reticles\mrco-bodyNight_ca.paa);
+ GVAR(ReticleDay) = QPATHTOF(reticles\mrco-reticle556_ca.paa);
+ GVAR(ReticleNight) = QPATHTOF(reticles\mrco-reticle556Illum_ca.paa);
author = ECSTRING(common,ACETeam);
_generalMacro = "ACE_optic_MRCO_2D";
@@ -175,7 +175,7 @@ class CfgWeapons {
weaponInfoType = "ACE_RscWeapon_MRCO";
class ItemInfo: ItemInfo {
- modelOptics = QUOTE(PATHTOF(models\ace_optics_reticle90.p3d));
+ modelOptics = QPATHTOF(models\ace_optics_reticle90.p3d);
class OpticsModes: OpticsModes {
class MRCOcq: MRCOcq {};
@@ -200,7 +200,7 @@ class CfgWeapons {
displayName = CSTRING(valdada_pip);
class ItemInfo: ItemInfo {
- modelOptics = QUOTE(PATHTOF(models\ace_optics_pip.p3d));
+ modelOptics = QPATHTOF(models\ace_optics_pip.p3d);
};
};
@@ -214,10 +214,10 @@ class CfgWeapons {
};
class ACE_optic_SOS_2D: optic_SOS {
- GVAR(BodyDay) = QUOTE(PATHTOF(reticles\sos-body_ca.paa));
- GVAR(BodyNight) = QUOTE(PATHTOF(reticles\sos-bodyNight_ca.paa));
- GVAR(ReticleDay) = QUOTE(PATHTOF(reticles\sos-reticleMLR_ca.paa));
- GVAR(ReticleNight) = QUOTE(PATHTOF(reticles\sos-reticleMLRIllum_ca.paa));
+ GVAR(BodyDay) = QPATHTOF(reticles\sos-body_ca.paa);
+ GVAR(BodyNight) = QPATHTOF(reticles\sos-bodyNight_ca.paa);
+ GVAR(ReticleDay) = QPATHTOF(reticles\sos-reticleMLR_ca.paa);
+ GVAR(ReticleNight) = QPATHTOF(reticles\sos-reticleMLRIllum_ca.paa);
author = ECSTRING(common,ACETeam);
_generalMacro = "ACE_optic_SOS_2D";
@@ -226,15 +226,15 @@ class CfgWeapons {
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
- class Snip: Snip {
- modelOptics[] = {QUOTE(PATHTOF(models\ace_optics_reticle90.p3d)),QUOTE(PATHTOF(models\ace_optics_reticle90.p3d))};
+ class Snip: Snip {
+ modelOptics[] = {QPATHTOF(models\ace_optics_reticle90.p3d),QPATHTOF(models\ace_optics_reticle90.p3d)};
useModelOptics = 1;
opticsZoomInit = 0.0116;
opticsZoomMax = 0.0464;
opticsZoomMin = 0.0116;
discreteFOV[] = {0.0464, 0.0116};
opticsPPEffects[] = {"OpticsCHAbera1","OpticsBlur1","ACE_OpticsRadBlur1"};
- opticsDisablePeripherialVision = 0;
+ opticsDisablePeripherialVision = 0;
};
class Iron: Iron {};
};
@@ -250,7 +250,7 @@ class CfgWeapons {
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
class Snip: Snip {
- modelOptics[] = {QUOTE(PATHTOF(models\ace_optics_pip.p3d)),QUOTE(PATHTOF(models\ace_optics_pip.p3d))};
+ modelOptics[] = {QPATHTOF(models\ace_optics_pip.p3d),QPATHTOF(models\ace_optics_pip.p3d)};
};
class Iron: Iron {};
};
@@ -266,10 +266,10 @@ class CfgWeapons {
};
class ACE_optic_LRPS_2D: optic_LRPS {
- GVAR(BodyDay) = QUOTE(PATHTOF(reticles\sos-body_ca.paa));
- GVAR(BodyNight) = QUOTE(PATHTOF(reticles\sos-bodyNight_ca.paa));
- GVAR(ReticleDay) = QUOTE(PATHTOF(reticles\sos-reticleMLR_ca.paa));
- GVAR(ReticleNight) = QUOTE(PATHTOF(reticles\sos-reticleMLRIllum_ca.paa));
+ GVAR(BodyDay) = QPATHTOF(reticles\sos-body_ca.paa);
+ GVAR(BodyNight) = QPATHTOF(reticles\sos-bodyNight_ca.paa);
+ GVAR(ReticleDay) = QPATHTOF(reticles\sos-reticleMLR_ca.paa);
+ GVAR(ReticleNight) = QPATHTOF(reticles\sos-reticleMLRIllum_ca.paa);
author = ECSTRING(common,ACETeam);
_generalMacro = "ACE_optic_LRPS_2D";
@@ -279,7 +279,7 @@ class CfgWeapons {
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
class Snip: Snip {
- modelOptics[] = {QUOTE(PATHTOF(models\ace_optics_reticle90.p3d)),QUOTE(PATHTOF(models\ace_optics_reticle90.p3d))};
+ modelOptics[] = {QPATHTOF(models\ace_optics_reticle90.p3d),QPATHTOF(models\ace_optics_reticle90.p3d)};
useModelOptics = 1;
opticsZoomInit = 0.0116;
opticsZoomMax = 0.0464;
@@ -301,7 +301,7 @@ class CfgWeapons {
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
class Snip: Snip {
- modelOptics[] = {QUOTE(PATHTOF(models\ace_optics_pip.p3d)),QUOTE(PATHTOF(models\ace_optics_pip.p3d))};
+ modelOptics[] = {QPATHTOF(models\ace_optics_pip.p3d),QPATHTOF(models\ace_optics_pip.p3d)};
};
};
};
diff --git a/addons/optics/config.cpp b/addons/optics/config.cpp
index 79f71842ee..c63049356c 100644
--- a/addons/optics/config.cpp
+++ b/addons/optics/config.cpp
@@ -18,8 +18,9 @@ class CfgPatches {
};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Taosenai","KoffeinFlummi","commy2"};
- authorUrl = "http://www.ryanschultz.org/tmr/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Taosenai","KoffeinFlummi","commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/optics/functions/fnc_onDrawScope2D.sqf b/addons/optics/functions/fnc_onDrawScope2D.sqf
index 9ea038f877..82602842ca 100644
--- a/addons/optics/functions/fnc_onDrawScope2D.sqf
+++ b/addons/optics/functions/fnc_onDrawScope2D.sqf
@@ -19,7 +19,7 @@ if (!ctrlShown (_display displayCtrl 154)) exitWith {
// @todo, all weapon types
private ["_optic", "_isPIP"];
_optic = (primaryWeaponItems ACE_player) select 2;
-_isPIP = (getText (configFile >> "CfgWeapons" >> _optic >> "ItemInfo" >> "modelOptics")) == QUOTE(PATHTOF(models\ace_optics_pip.p3d));
+_isPIP = (getText (configFile >> "CfgWeapons" >> _optic >> "ItemInfo" >> "modelOptics")) == QPATHTOF(models\ace_optics_pip.p3d);
if (_isPIP) then {
GVAR(camera) setPosATL positionCameraToWorld [0,0,0.4];
diff --git a/addons/optionsmenu/config.cpp b/addons/optionsmenu/config.cpp
index 4acfef321f..0e564535b9 100644
--- a/addons/optionsmenu/config.cpp
+++ b/addons/optionsmenu/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Glowbal", "PabstMirror"};
- authorUrl = "http://github.com/Glowbal";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Glowbal", "PabstMirror"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/optionsmenu/functions/fnc_debugDumpToClipboard.sqf b/addons/optionsmenu/functions/fnc_debugDumpToClipboard.sqf
index be771f7a3a..dd2c187bf7 100644
--- a/addons/optionsmenu/functions/fnc_debugDumpToClipboard.sqf
+++ b/addons/optionsmenu/functions/fnc_debugDumpToClipboard.sqf
@@ -17,7 +17,7 @@
private ["_var", "_unit", "_outputText", "_text"];
-#define MIN_ARRAY_SIZE 10
+#define MIN_ARRAY_SIZE 50
_outputText = {
diag_log text (_this select 0);
@@ -30,12 +30,20 @@ time = %1
------Performance------
diag_fps = %2
-count ace_common_waitAndExecArray = %3
-count cba_common_perFrameHandlerArray = %4 (max %5)
-count diag_activeSQFScripts = %6
-count diag_activeSQSScripts = %7
-count diag_activeMissionFSMs = %8",
-time, diag_fps, count ace_common_waitAndExecArray, {!isNil "_x"} count cba_common_perFrameHandlerArray, count cba_common_perFrameHandlerArray, count diag_activeSQFScripts, count diag_activeSQSScripts,count diag_activeMissionFSMs];
+count cba_common_waitAndExecArray = %3
+count cba_common_waitUntilAndExecArray = %4
+count cba_common_perFrameHandlerArray = %5 (max %6)
+count diag_activeSQFScripts = %7
+count diag_activeSQSScripts = %8
+count diag_activeMissionFSMs = %9",
+time,
+diag_fps,
+count cba_common_waitAndExecArray,
+count cba_common_waitUntilAndExecArray,
+{!isNil "_x"} count cba_common_perFrameHandlerArray, count cba_common_perFrameHandlerArray,
+count diag_activeSQFScripts,
+count diag_activeSQSScripts,
+count diag_activeMissionFSMs];
[_text] call _outputText;
diff --git a/addons/optionsmenu/functions/fnc_onServerSettingsMenuOpen.sqf b/addons/optionsmenu/functions/fnc_onServerSettingsMenuOpen.sqf
index 8e09608e07..43c17cd619 100644
--- a/addons/optionsmenu/functions/fnc_onServerSettingsMenuOpen.sqf
+++ b/addons/optionsmenu/functions/fnc_onServerSettingsMenuOpen.sqf
@@ -54,7 +54,7 @@ GVAR(serverSideValues) = [];
} forEach EGVAR(common,settings);
//Delay a frame
-[{ [MENU_TAB_SERVER_OPTIONS] call FUNC(onServerListBoxShowSelectionChanged) }, []] call EFUNC(common,execNextFrame);
+[{ [MENU_TAB_SERVER_OPTIONS] call FUNC(onServerListBoxShowSelectionChanged) }, []] call CBA_fnc_execNextFrame;
disableSerialization;
_menu = uiNamespace getVariable "ACE_serverSettingsMenu";
diff --git a/addons/optionsmenu/functions/fnc_onSettingsMenuOpen.sqf b/addons/optionsmenu/functions/fnc_onSettingsMenuOpen.sqf
index bef61b73e7..42157f230f 100644
--- a/addons/optionsmenu/functions/fnc_onSettingsMenuOpen.sqf
+++ b/addons/optionsmenu/functions/fnc_onSettingsMenuOpen.sqf
@@ -43,7 +43,7 @@ private _clientSettableCategories = [""];
} forEach EGVAR(common,settings);
//Delay a frame
-[{ [MENU_TAB_OPTIONS] call FUNC(onListBoxShowSelectionChanged) }, []] call EFUNC(common,execNextFrame);
+[{ [MENU_TAB_OPTIONS] call FUNC(onListBoxShowSelectionChanged) }, []] call CBA_fnc_execNextFrame;
disableSerialization;
_menu = uiNamespace getVariable "ACE_settingsMenu";
diff --git a/addons/overheating/CfgSounds.hpp b/addons/overheating/CfgSounds.hpp
index c32fc02abf..bd2831eeb6 100644
--- a/addons/overheating/CfgSounds.hpp
+++ b/addons/overheating/CfgSounds.hpp
@@ -1,26 +1,26 @@
class CfgSounds {
class ACE_BarrelSwap {
- sound[] = {QUOTE(PATHTOF(sounds\barrelswap.ogg)),5,1,200};
+ sound[] = {QPATHTOF(sounds\barrelswap.ogg),5,1,200};
titles[] = {};
};
class GVAR(jamming_rifle) {
name=QGVAR(jamming_rifle);
- sound[]={QUOTE(PATHTOF(sounds\jamming_rifle.wav)),1,1};
+ sound[]={QPATHTOF(sounds\jamming_rifle.wav),1,1};
titles[]={};
};
class GVAR(jamming_pistol) {
name=QGVAR(jamming_pistol);
- sound[]={QUOTE(PATHTOF(sounds\jamming_pistol.wav)),1,1};
+ sound[]={QPATHTOF(sounds\jamming_pistol.wav),1,1};
titles[]={};
};
class GVAR(fixing_rifle) {
name=QGVAR(fixing_rifle);
- sound[]={QUOTE(PATHTOF(sounds\fixing_rifle.wav)),1,1};
+ sound[]={QPATHTOF(sounds\fixing_rifle.wav),1,1};
titles[]={};
};
class GVAR(fixing_pistol) {
name= QGVAR(fixing_pistol);
- sound[]={QUOTE(PATHTOF(sounds\fixing_pistol.wav)),1,1};
+ sound[]={QPATHTOF(sounds\fixing_pistol.wav),1,1};
titles[]={};
};
};
diff --git a/addons/overheating/CfgVehicles.hpp b/addons/overheating/CfgVehicles.hpp
index 23a2b613f5..f7700fd7df 100644
--- a/addons/overheating/CfgVehicles.hpp
+++ b/addons/overheating/CfgVehicles.hpp
@@ -11,7 +11,7 @@ class CfgVehicles {
statement = QUOTE( [ARR_2(_player, currentMuzzle _player)] call FUNC(clearJam); );
showDisabled = 0;
priority = 4;
- icon = QUOTE(PATHTOF(UI\unjam_ca.paa));
+ icon = QPATHTOF(UI\unjam_ca.paa);
};
class GVAR(SwapBarrel) {
displayName = CSTRING(SwapBarrel);
@@ -19,7 +19,7 @@ class CfgVehicles {
statement = QUOTE( [ARR_3(_player, _player, currentWeapon _player)] call FUNC(swapBarrel); );
showDisabled = 0;
priority = 3;
- icon = QUOTE(PATHTOF(UI\spare_barrel_ca.paa));
+ icon = QPATHTOF(UI\spare_barrel_ca.paa);
};
class GVAR(CheckTemperature) {
displayName = CSTRING(CheckTemperatureShort);
@@ -28,7 +28,7 @@ class CfgVehicles {
statement = QUOTE( [ARR_3(_player, _player, currentWeapon _player)] call FUNC(checkTemperature); );
showDisabled = 0;
priority = 2.9;
- icon = QUOTE(PATHTOF(UI\temp_ca.paa));
+ icon = QPATHTOF(UI\temp_ca.paa);
};
class GVAR(CheckTemperatureSpareBarrels) {
displayName = CSTRING(CheckTemperatureSpareBarrelsShort);
diff --git a/addons/overheating/CfgWeapons.hpp b/addons/overheating/CfgWeapons.hpp
index c7a83eec6e..d4e0844652 100644
--- a/addons/overheating/CfgWeapons.hpp
+++ b/addons/overheating/CfgWeapons.hpp
@@ -2,7 +2,18 @@ class CfgWeapons {
class ACE_ItemCore;
class InventoryItem_Base_F;
- class RifleCore;
+ class ACE_SpareBarrel: ACE_ItemCore {
+ displayname = CSTRING(SpareBarrelName);
+ descriptionshort = CSTRING(SpareBarrelDescription);
+ //model = "";
+ picture = QPATHTOF(UI\spare_barrel_ca.paa);
+ scope = 2;
+ class ItemInfo: InventoryItem_Base_F {
+ mass = 30;
+ };
+ };
+
+ class RifleCore;
class Rifle: RifleCore {
//Mean Rounds Between Stoppages (this will be scaled based on the barrel temp)
GVAR(mrbs) = 3000;
diff --git a/addons/overheating/config.cpp b/addons/overheating/config.cpp
index 673edcf77f..2c48191810 100644
--- a/addons/overheating/config.cpp
+++ b/addons/overheating/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_SpareBarrel"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"commy2", "KoffeinFlummi", "esteldunedain"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2", "KoffeinFlummi", "esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/overheating/functions/fnc_checkTemperature.sqf b/addons/overheating/functions/fnc_checkTemperature.sqf
index fd2ac5f56c..0fb600f83a 100644
--- a/addons/overheating/functions/fnc_checkTemperature.sqf
+++ b/addons/overheating/functions/fnc_checkTemperature.sqf
@@ -31,4 +31,4 @@ if (_assistant isEqualTo _gunner) then {
_assistant playActionNow _action;
// Waits a sec before displaying the temperature
-[FUNC(displayTemperature), [_gunner, _weapon], 1.0] call EFUNC(common,waitAndExecute);
+[FUNC(displayTemperature), [_gunner, _weapon], 1.0] call CBA_fnc_waitAndExecute;
diff --git a/addons/overheating/functions/fnc_clearJam.sqf b/addons/overheating/functions/fnc_clearJam.sqf
index 086e7dce43..7011385c02 100644
--- a/addons/overheating/functions/fnc_clearJam.sqf
+++ b/addons/overheating/functions/fnc_clearJam.sqf
@@ -55,14 +55,14 @@ if (_weapon in _jammedWeapons) then {
if (GVAR(DisplayTextOnJam)) then {
[{
[localize LSTRING(WeaponUnjammed)] call EFUNC(common,displayTextStructured);
- }, [], _delay] call EFUNC(common,waitAndExecute);
+ }, [], _delay] call CBA_fnc_waitAndExecute;
};
} else {
// Failure
if (GVAR(DisplayTextOnJam)) then {
[{
[localize LSTRING(WeaponUnjamFailed)] call EFUNC(common,displayTextStructured);
- }, [], _delay] call EFUNC(common,waitAndExecute);
+ }, [], _delay] call CBA_fnc_waitAndExecute;
};
};
};
diff --git a/addons/overheating/functions/fnc_firedEH.sqf b/addons/overheating/functions/fnc_firedEH.sqf
index 2cf607945c..5bd725b74d 100644
--- a/addons/overheating/functions/fnc_firedEH.sqf
+++ b/addons/overheating/functions/fnc_firedEH.sqf
@@ -65,8 +65,8 @@ if (_unit != ACE_player && (!GVAR(showParticleEffectsForEveryone) || {_unit dist
};
//Particle Effects:
-if (GVAR(showParticleEffects) && {(ACE_time > ((_unit getVariable [QGVAR(lastDrop), -1000]) + 0.40)) && {_scaledTemperature > 0.1}}) then {
- _unit setVariable [QGVAR(lastDrop), ACE_time];
+if (GVAR(showParticleEffects) && {(CBA_missionTime > ((_unit getVariable [QGVAR(lastDrop), -1000]) + 0.40)) && {_scaledTemperature > 0.1}}) then {
+ _unit setVariable [QGVAR(lastDrop), CBA_missionTime];
private _direction = (_unit weaponDirection _weapon) vectorMultiply 0.25;
private _position = (position _projectile) vectorAdd (_direction vectorMultiply (4*(random 0.30)));
diff --git a/addons/overheating/functions/fnc_jamWeapon.sqf b/addons/overheating/functions/fnc_jamWeapon.sqf
index b6cacdbea3..4e42f769f7 100644
--- a/addons/overheating/functions/fnc_jamWeapon.sqf
+++ b/addons/overheating/functions/fnc_jamWeapon.sqf
@@ -37,7 +37,7 @@ if (_ammo > 0) then {
[{
params ["_unit", "_weapon", "_ammo"];
_unit setAmmo [_weapon, _ammo];
- }, [_unit, _weapon, _ammo]] call EFUNC(common,execNextFrame);
+ }, [_unit, _weapon, _ammo]] call CBA_fnc_execNextFrame;
};
// only display the hint once, after you try to shoot an already jammed weapon
diff --git a/addons/overheating/functions/fnc_loadCoolestSpareBarrel.sqf b/addons/overheating/functions/fnc_loadCoolestSpareBarrel.sqf
index 08cb85083c..7887a87ce6 100644
--- a/addons/overheating/functions/fnc_loadCoolestSpareBarrel.sqf
+++ b/addons/overheating/functions/fnc_loadCoolestSpareBarrel.sqf
@@ -47,7 +47,7 @@ TRACE_3("loadCoolestSpareBarrel5",_coolestTemp,_coolestMag,_weaponTemp);
_gunner setVariable [format [QGVAR(%1_temp), _weapon], _coolestTemp, true];
// Heat up the coolest barrel to the former weapon temperature
-[GVAR(storedSpareBarrels), _coolestMag, [_weaponTemp, ACE_Time, _barrelMass]] call CBA_fnc_hashSet;
+[GVAR(storedSpareBarrels), _coolestMag, [_weaponTemp, CBA_missionTime, _barrelMass]] call CBA_fnc_hashSet;
// Send an event so the machines of the assistant and gunner can show the hint
["showWeaponTemperature", [_assistant, _gunner], [_gunner, _weapon]] call EFUNC(common,targetEvent);
diff --git a/addons/overheating/functions/fnc_swapBarrelCallback.sqf b/addons/overheating/functions/fnc_swapBarrelCallback.sqf
index 403989deca..df80981705 100644
--- a/addons/overheating/functions/fnc_swapBarrelCallback.sqf
+++ b/addons/overheating/functions/fnc_swapBarrelCallback.sqf
@@ -25,9 +25,12 @@ if (_assistant isEqualTo _gunner) then {
// Barrel mount gesture
_gunner playAction QGVAR(GestureMountMuzzle);
playSound "ACE_BarrelSwap";
-};
+};
+
+// don't consume the barrel, but rotate through them.
+[localize LSTRING(SwappedBarrel), QPATHTOF(UI\spare_barrel_ca.paa)] call EFUNC(common,displayTextPicture);
-private _temp = _gunner getVariable [format [QGVAR(%1_temp), _weapon], 0];
+private _temp = _gunner getVariable [format [QGVAR(%1_temp), _weapon], 0];
private _barrelMass = 0.50 * (getNumber (configFile >> "CfgWeapons" >> _weapon >> "WeaponSlotsInfo" >> "mass") / 22.0) max 1.0;
// Instruct the server to load the coolest spare barrel into the weapon and
@@ -35,6 +38,6 @@ private _barrelMass = 0.50 * (getNumber (configFile >> "CfgWeapons" >> _weapon >
// also updates the current weapon temperature to match that of the new
// loaded barrel.
["spareBarrelsLoadCoolest", [_assistant, _gunner, _weapon, _temp, _barrelMass]] call EFUNC(common,serverEvent);
-
+
// Store the update time
-_gunner setVariable [format [QGVAR(%1_time), _weapon], ACE_time];
+_gunner setVariable [format [QGVAR(%1_time), _weapon], CBA_missionTime];
diff --git a/addons/overheating/functions/fnc_updateSpareBarrelsTemperaturesThread.sqf b/addons/overheating/functions/fnc_updateSpareBarrelsTemperaturesThread.sqf
index d6b74f6769..602de01c3b 100644
--- a/addons/overheating/functions/fnc_updateSpareBarrelsTemperaturesThread.sqf
+++ b/addons/overheating/functions/fnc_updateSpareBarrelsTemperaturesThread.sqf
@@ -25,16 +25,16 @@ TRACE_1("updateSpareBarrelsTemperaturesThread2",_pairs);
_value params ["_initialTemp","_initialTime", "_barrelMass"];
// Calculate cooling
- private _finalTemp = [_initialTemp, _barrelMass, ACE_time - _initialTime] call FUNC(calculateCooling);
+ private _finalTemp = [_initialTemp, _barrelMass, CBA_missionTime - _initialTime] call FUNC(calculateCooling);
TRACE_4("updateSpareBarrelsTemperaturesThread3",_barrelMagazineID,_initialTemp,_finalTemp,_barrelMass);
if (_finalTemp < 5) then {
// The barrel is cool enough to keep calculating. Remove it from the hash
[GVAR(storedSpareBarrels), _barrelMagazineID] call CBA_fnc_hashRem;
} else {
// Store the new temp
- [GVAR(storedSpareBarrels), _barrelMagazineID, [_finalTemp, ACE_time, _barrelMass]] call CBA_fnc_hashSet;
+ [GVAR(storedSpareBarrels), _barrelMagazineID, [_finalTemp, CBA_missionTime, _barrelMass]] call CBA_fnc_hashSet;
};
} forEach _pairs;
// Schedule for execution again after 10 seconds
-[DFUNC(updateSpareBarrelsTemperaturesThread), [], 10] call EFUNC(common,waitAndExecute);
+[DFUNC(updateSpareBarrelsTemperaturesThread), [], 10] call CBA_fnc_waitAndExecute;
diff --git a/addons/overheating/functions/fnc_updateTemperature.sqf b/addons/overheating/functions/fnc_updateTemperature.sqf
index 1643fe55b4..d5e29a150b 100644
--- a/addons/overheating/functions/fnc_updateTemperature.sqf
+++ b/addons/overheating/functions/fnc_updateTemperature.sqf
@@ -30,7 +30,8 @@ private _lastTime = _unit getVariable [_timeVarName, 0];
private _barrelMass = 0.50 * (getNumber (configFile >> "CfgWeapons" >> _weapon >> "WeaponSlotsInfo" >> "mass") / 22.0) max 1.0;
// Calculate cooling
-_temperature = [_temperature, _barrelMass, ACE_time - _lastTime] call FUNC(calculateCooling);
+_temperature = [_temperature, _barrelMass, CBA_missionTime - _lastTime] call FUNC(calculateCooling);
+
TRACE_1("cooledTo",_temperature);
// Calculate heating
// Steel Heat Capacity = 466 J/(Kg.K)
@@ -39,6 +40,6 @@ _temperature = _temperature + _heatIncrement / (_barrelMass * 466);
// Publish the temperature variable
[_unit, _tempVarName, _temperature, TEMP_TOLERANCE] call EFUNC(common,setApproximateVariablePublic);
// Store the update time locally
-_unit setVariable [_timeVarName, ACE_time];
+_unit setVariable [_timeVarName, CBA_missionTime];
_temperature
diff --git a/addons/overheating/functions/fnc_updateTemperatureThread.sqf b/addons/overheating/functions/fnc_updateTemperatureThread.sqf
index 76a332e480..476ff3e352 100644
--- a/addons/overheating/functions/fnc_updateTemperatureThread.sqf
+++ b/addons/overheating/functions/fnc_updateTemperatureThread.sqf
@@ -22,4 +22,4 @@ if ((_currentWeapon != "") && {_currentWeapon == primaryWeapon ACE_player || {_c
};
// Schedule for execution again after 5 seconds
-[DFUNC(updateTemperatureThread), [], 5] call EFUNC(common,waitAndExecute);
+[DFUNC(updateTemperatureThread), [], 5] call CBA_fnc_waitAndExecute;
diff --git a/addons/overpressure/config.cpp b/addons/overpressure/config.cpp
index 0524f6e4c9..1839dc3ee1 100644
--- a/addons/overpressure/config.cpp
+++ b/addons/overpressure/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2","KoffeinFlummi","esteldunedain"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2","KoffeinFlummi","esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/parachute/CfgVehicles.hpp b/addons/parachute/CfgVehicles.hpp
index 4127bad166..e734962a0e 100644
--- a/addons/parachute/CfgVehicles.hpp
+++ b/addons/parachute/CfgVehicles.hpp
@@ -19,7 +19,7 @@ class CfgVehicles {
statement = QUOTE([_player] call FUNC(cutParachute));
showDisabled = 0;
priority = 2.9;
- icon = QUOTE(PATHTOF(UI\cut_ca.paa));
+ icon = QPATHTOF(UI\cut_ca.paa);
};
};
};
diff --git a/addons/parachute/CfgWeapons.hpp b/addons/parachute/CfgWeapons.hpp
index 4ca785a1ea..b5dad94425 100644
--- a/addons/parachute/CfgWeapons.hpp
+++ b/addons/parachute/CfgWeapons.hpp
@@ -6,6 +6,6 @@ class CfgWeapons {
author = ECSTRING(common,ACETeam);
descriptionShort = CSTRING(AltimeterDescription);
displayName = CSTRING(AltimeterDisplayName);
- picture = PATHTOF(UI\watch_altimeter.paa);
+ picture = QPATHTOF(UI\watch_altimeter.paa);
};
};
diff --git a/addons/parachute/RscTitles.hpp b/addons/parachute/RscTitles.hpp
index c6f41a7362..277db4d2f9 100644
--- a/addons/parachute/RscTitles.hpp
+++ b/addons/parachute/RscTitles.hpp
@@ -12,7 +12,7 @@ class RscTitles {
class controls {
class AltimeterImage: RscPicture {
idc = 1200;
- text = PATHTOF(UI\watch_altimeter.paa);
+ text = QPATHTOF(UI\watch_altimeter.paa);
x = 0.118437 * safezoneW + safezoneX;
y = 0.621 * safezoneH + safezoneY;
w = 0.20625 * safezoneW;
diff --git a/addons/parachute/config.cpp b/addons/parachute/config.cpp
index 3671177e28..dec722ea96 100644
--- a/addons/parachute/config.cpp
+++ b/addons/parachute/config.cpp
@@ -7,8 +7,9 @@ class CfgPatches {
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
VERSION_CONFIG;
- author[] = {"Garth 'LH' de Wet"};
- authorUrl = "http://garth.snakebiteink.co.za/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Garth 'LH' de Wet"};
+ url = ECSTRING(main,URL);
};
};
diff --git a/addons/parachute/functions/fnc_doLanding.sqf b/addons/parachute/functions/fnc_doLanding.sqf
index cc32724e9d..213bf10887 100644
--- a/addons/parachute/functions/fnc_doLanding.sqf
+++ b/addons/parachute/functions/fnc_doLanding.sqf
@@ -20,8 +20,8 @@ GVAR(PFH) = false;
[_unit, "AmovPercMevaSrasWrflDf_AmovPknlMstpSrasWrflDnon", 2] call EFUNC(common,doAnimation);
_unit setVariable [QGVAR(chuteIsCut), false, true];
[{
- if (ACE_time >= ((_this select 0) select 0) + 1) then {
+ if (CBA_missionTime >= ((_this select 0) select 0) + 1) then {
((_this select 0) select 1) playActionNow "Crouch";
[(_this select 1)] call CALLSTACK(CBA_fnc_removePerFrameHandler);
};
-}, 1, [ACE_time,_unit]] call CALLSTACK(CBA_fnc_addPerFrameHandler);
+}, 1, [CBA_missionTime,_unit]] call CALLSTACK(CBA_fnc_addPerFrameHandler);
diff --git a/addons/parachute/functions/fnc_showAltimeter.sqf b/addons/parachute/functions/fnc_showAltimeter.sqf
index 466abfb77e..b8ee8add6d 100644
--- a/addons/parachute/functions/fnc_showAltimeter.sqf
+++ b/addons/parachute/functions/fnc_showAltimeter.sqf
@@ -37,7 +37,7 @@ GVAR(AltimeterActive) = true;
_minute = floor ((daytime - _hour) * 60);
_height = ((getPosASL _unit) select 2) + EGVAR(common,mapAltitude);
- _curTime = ACE_time;
+ _curTime = CBA_missionTime;
_timeDiff = _curTime - _prevTime;
_descentRate = if(_timeDiff > 0) then {floor((_oldHeight - _height) / _timeDiff)} else {0};
@@ -47,4 +47,4 @@ GVAR(AltimeterActive) = true;
(_this select 0) set [2, _height];
(_this select 0) set [3, _curTime];
-}, 0.2, [uiNamespace getVariable ["ACE_Altimeter", displayNull], _unit,floor ((getPosASL _unit) select 2), ACE_time]] call CALLSTACK(CBA_fnc_addPerFrameHandler);
+}, 0.2, [uiNamespace getVariable ["ACE_Altimeter", displayNull], _unit,floor ((getPosASL _unit) select 2), CBA_missionTime]] call CALLSTACK(CBA_fnc_addPerFrameHandler);
diff --git a/addons/rangecard/CfgVehicles.hpp b/addons/rangecard/CfgVehicles.hpp
index 9e0793e36b..e7df701409 100644
--- a/addons/rangecard/CfgVehicles.hpp
+++ b/addons/rangecard/CfgVehicles.hpp
@@ -8,7 +8,7 @@ class CfgVehicles {
distance = 2.0;
condition = QUOTE(_target call FUNC(canCopy));
statement = QUOTE(_target call FUNC(updateClassNames));
- icon = QUOTE(PATHTOF(UI\RangeCard_Icon.paa));
+ icon = QPATHTOF(UI\RangeCard_Icon.paa);
};
};
};
@@ -20,7 +20,7 @@ class CfgVehicles {
statement = QUOTE(false call FUNC(openRangeCard));
showDisabled = 0;
priority = 0.1;
- icon = QUOTE(PATHTOF(UI\RangeCard_Icon.paa));
+ icon = QPATHTOF(UI\RangeCard_Icon.paa);
exceptions[] = {"notOnMap"};
class GVAR(openCopy) {
displayName = CSTRING(OpenRangeCardCopy);
@@ -28,7 +28,7 @@ class CfgVehicles {
statement = QUOTE(true call FUNC(openRangeCard));
showDisabled = 0;
priority = 0.1;
- icon = QUOTE(PATHTOF(UI\RangeCard_Icon.paa));
+ icon = QPATHTOF(UI\RangeCard_Icon.paa);
exceptions[] = {"notOnMap"};
};
class GVAR(makeCopy) {
@@ -37,7 +37,7 @@ class CfgVehicles {
statement = QUOTE(GVAR(ammoClassCopy) = GVAR(ammoClass); GVAR(magazineClassCopy) = GVAR(magazineClass); GVAR(weaponClassCopy) = GVAR(ammoClass););
showDisabled = 0;
priority = 0.1;
- icon = QUOTE(PATHTOF(UI\RangeCard_Icon.paa));
+ icon = QPATHTOF(UI\RangeCard_Icon.paa);
exceptions[] = {"notOnMap"};
};
};
diff --git a/addons/rangecard/CfgWeapons.hpp b/addons/rangecard/CfgWeapons.hpp
index 7195c0a008..dfc643fa47 100644
--- a/addons/rangecard/CfgWeapons.hpp
+++ b/addons/rangecard/CfgWeapons.hpp
@@ -8,7 +8,7 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(Name);
descriptionShort = CSTRING(Description);
- picture = PATHTOF(UI\RangeCard_Icon.paa);
+ picture = QPATHTOF(UI\RangeCard_Icon.paa);
icon = "iconObject_circle";
mapSize = 0.034;
diff --git a/addons/rangecard/RscTitles.hpp b/addons/rangecard/RscTitles.hpp
index bc4101c483..8a2007b2b2 100644
--- a/addons/rangecard/RscTitles.hpp
+++ b/addons/rangecard/RscTitles.hpp
@@ -79,7 +79,7 @@ class ACE_RangeCard_Dialog {
h="1.62727";
colorBackground[]={1,1,1,1};
colorText[]={1,1,1,1};
- text=QUOTE(PATHTOF(UI\RangeCard.paa));
+ text=QPATHTOF(UI\RangeCard.paa);
};
class CAPTION_TEXT_1: RangeCard_RscText {
idc=770000;
diff --git a/addons/rangecard/config.cpp b/addons/rangecard/config.cpp
index abe4e859f2..fd39a3a523 100644
--- a/addons/rangecard/config.cpp
+++ b/addons/rangecard/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_RangeCard"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ACE_Advanced_Ballistics"};
- author = "Ruthberg";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
@@ -14,4 +16,4 @@ class CfgPatches {
#include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp"
#include "CfgWeapons.hpp"
-#include "RscTitles.hpp"
\ No newline at end of file
+#include "RscTitles.hpp"
diff --git a/addons/realisticnames/config.cpp b/addons/realisticnames/config.cpp
index 6a8ea59290..d85fe9771d 100644
--- a/addons/realisticnames/config.cpp
+++ b/addons/realisticnames/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"KoffeinFlummi","TaoSensai","commy2"};
- authorUrl = "https://github.com/KoffeinFlummi/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"KoffeinFlummi","TaoSensai","commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/rearm/CfgVehicles.hpp b/addons/rearm/CfgVehicles.hpp
index 8bee12de85..44b7fe38af 100644
--- a/addons/rearm/CfgVehicles.hpp
+++ b/addons/rearm/CfgVehicles.hpp
@@ -8,7 +8,7 @@
condition = QUOTE(_this call FUNC(canRearm)); \
statement = QUOTE(_player call FUNC(rearm)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_rearm_interact.paa); \
+ icon = QPATHTOF(ui\icon_rearm_interact.paa); \
}; \
}; \
};
@@ -24,7 +24,7 @@
exceptions[] = {"isNotInside"}; \
showDisabled = 0; \
priority = 2; \
- icon = PATHTOF(ui\icon_rearm_interact.paa); \
+ icon = QPATHTOF(ui\icon_rearm_interact.paa); \
}; \
class GVAR(StoreAmmo) { \
displayName = CSTRING(StoreAmmo); \
@@ -32,7 +32,7 @@
condition = QUOTE(_this call FUNC(canStoreAmmo)); \
statement = QUOTE(_this call FUNC(storeAmmo)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_rearm_interact.paa); \
+ icon = QPATHTOF(ui\icon_rearm_interact.paa); \
}; \
}; \
};
@@ -44,7 +44,7 @@ class CfgVehicles {
class ACE_moduleRearmSettings: ACE_Module {
scope = 2;
displayName = CSTRING(RearmSettings_Module_DisplayName);
- icon = QUOTE(PATHTOF(ui\icon_module_rearm.paa));
+ icon = QPATHTOF(ui\icon_module_rearm.paa);
category = "ACE_Logistics";
function = QFUNC(moduleRearmSettings);
functionPriority = 1;
@@ -143,24 +143,21 @@ class CfgVehicles {
MACRO_REARM_TRUCK_ACTIONS
};
- class Pod_Heli_Transport_04_base_F: StaticWeapon {};
+ class ThingX;
+ class ReammoBox_F: ThingX {
+ class ACE_Actions {
+ class ACE_MainActions {};
+ };
+ };
+ class Slingload_base_F: ReammoBox_F {};
+ class Slingload_01_Base_F: Slingload_base_F {};
+
+ class Pod_Heli_Transport_04_base_F: Slingload_base_F {};
class Land_Pod_Heli_Transport_04_ammo_F: Pod_Heli_Transport_04_base_F {
transportAmmo = 0;
MACRO_REARM_TRUCK_ACTIONS
};
- class Slingload_base_F;
- class Slingload_01_Base_F: Slingload_base_F {
- class ACE_Actions {
- class ACE_MainActions {
- displayName = ECSTRING(interaction,MainAction);
- selection = "";
- distance = 10;
- condition = "true";
- };
- };
- };
-
class B_Slingload_01_Ammo_F: Slingload_01_Base_F {
transportAmmo = 0;
MACRO_REARM_TRUCK_ACTIONS
@@ -168,7 +165,6 @@ class CfgVehicles {
// Dummy Vehicles
- class ThingX;
class GVAR(defaultCarriedObject): ThingX {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
@@ -188,7 +184,7 @@ class CfgVehicles {
exceptions[] = {"isNotInside"};
showDisabled = 0;
priority = 2;
- icon = PATHTOF(ui\icon_rearm_interact.paa);
+ icon = QPATHTOF(ui\icon_rearm_interact.paa);
};
};
};
diff --git a/addons/rearm/config.cpp b/addons/rearm/config.cpp
index c15721c9df..bd0a4980e2 100644
--- a/addons/rearm/config.cpp
+++ b/addons/rearm/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"GitHawk", "Jonpas"};
- authorUrl = "https://ace3mod.com";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"GitHawk", "Jonpas"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/recoil/config.cpp b/addons/recoil/config.cpp
index 5b8002bc37..e6eee4a9af 100644
--- a/addons/recoil/config.cpp
+++ b/addons/recoil/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2"};
- authorUrl = "";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/refuel/CfgVehicles.hpp b/addons/refuel/CfgVehicles.hpp
index 665d217d39..6774140cc7 100644
--- a/addons/refuel/CfgVehicles.hpp
+++ b/addons/refuel/CfgVehicles.hpp
@@ -9,41 +9,41 @@
statement = ""; \
showDisabled = 0; \
priority = 2; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
class GVAR(TakeNozzle) { \
displayName = CSTRING(TakeNozzle); \
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canTakeNozzle)); \
statement = QUOTE([ARR_3(_player,_target,objNull)] call FUNC(TakeNozzle)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
}; \
class GVAR(CheckFuelCounter) { \
displayName = CSTRING(CheckFuelCounter); \
condition = "true"; \
statement = QUOTE([ARR_2(_player,_target)] call FUNC(readFuelCounter)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
}; \
class GVAR(CheckFuel) { \
displayName = CSTRING(CheckFuel); \
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canCheckFuel)); \
statement = QUOTE([ARR_2(_player,_target)] call FUNC(checkFuel)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
}; \
class GVAR(Connect) { \
displayName = CSTRING(Connect); \
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canConnectNozzle)); \
statement = QUOTE([ARR_2(_player,_target)] call DFUNC(connectNozzle)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
}; \
class GVAR(Return) { \
displayName = CSTRING(Return); \
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canReturnNozzle)); \
statement = QUOTE([ARR_2(_player,_target)] call DFUNC(returnNozzle)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
}; \
}; \
}; \
@@ -59,13 +59,13 @@
statement = ""; \
showDisabled = 0; \
priority = 2; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
class GVAR(Connect) { \
displayName = CSTRING(Connect); \
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canConnectNozzle)); \
statement = QUOTE([ARR_2(_player,_target)] call DFUNC(connectNozzle)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
}; \
}; \
}; \
@@ -80,34 +80,34 @@
statement = ""; \
showDisabled = 0; \
priority = 2; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
class GVAR(PickUpNozzle) { \
displayName = CSTRING(TakeNozzle); \
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canTakeNozzle)); \
statement = QUOTE([ARR_3(_player,objNull,_target)] call FUNC(TakeNozzle)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
}; \
class GVAR(TurnOn) { \
displayName = CSTRING(TurnOn); \
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canTurnOn)); \
statement = QUOTE([ARR_2(_player,_target)] call DFUNC(turnOn)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
}; \
class GVAR(TurnOff) { \
displayName = CSTRING(TurnOff); \
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canTurnOff)); \
statement = QUOTE([ARR_2(_player,_target)] call DFUNC(turnOff)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
}; \
class GVAR(Disconnect) { \
displayName = CSTRING(Disconnect); \
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canDisconnect)); \
statement = QUOTE([ARR_2(_player,_target)] call DFUNC(disconnect)); \
exceptions[] = {"isNotInside"}; \
- icon = PATHTOF(ui\icon_refuel_interact.paa); \
+ icon = QPATHTOF(ui\icon_refuel_interact.paa); \
}; \
}; \
};
@@ -119,7 +119,7 @@ class CfgVehicles {
class ACE_moduleRefuelSettings: ACE_Module {
scope = 2;
displayName = CSTRING(RefuelSettings_Module_DisplayName);
- icon = QUOTE(PATHTOF(ui\icon_module_refuel.paa));
+ icon = QPATHTOF(ui\icon_module_refuel.paa);
category = "ACE_Logistics";
function = QFUNC(moduleRefuelSettings);
functionPriority = 1;
@@ -146,7 +146,7 @@ class CfgVehicles {
displayName = QGVAR(fuelNozzle);
scope = 1;
scopeCurator = 1;
- model = PATHTOF(data\nozzle.p3d);
+ model = QPATHTOF(data\nozzle.p3d);
};
class All;
@@ -480,18 +480,22 @@ class CfgVehicles {
GVAR(fuelCargo) = 10000;
};
- class Slingload_base_F;
- class Slingload_01_Base_F: Slingload_base_F {
+ class ReammoBox_F: ThingX {
class ACE_Actions {
- class ACE_MainActions {
- displayName = ECSTRING(interaction,MainAction);
- selection = "";
- distance = 10;
- condition = "true";
- };
+ class ACE_MainActions {};
};
};
+ class Slingload_base_F: ReammoBox_F {};
+ class Pod_Heli_Transport_04_base_F: Slingload_base_F {};
+ class Land_Pod_Heli_Transport_04_fuel_F: Pod_Heli_Transport_04_base_F {
+ transportFuel = 0; //3k
+ MACRO_REFUEL_ACTIONS
+ GVAR(hooks)[] = {{-1.49,1.41,-.3}};
+ GVAR(fuelCargo) = 10000;
+ };
+
+ class Slingload_01_Base_F: Slingload_base_F {};
class B_Slingload_01_Fuel_F: Slingload_01_Base_F {
transportFuel = 0; //3k
MACRO_REFUEL_ACTIONS
@@ -506,13 +510,6 @@ class CfgVehicles {
GVAR(fuelCargo) = 10000;
};
- class Pod_Heli_Transport_04_base_F: StaticWeapon {};
- class Land_Pod_Heli_Transport_04_fuel_F: Pod_Heli_Transport_04_base_F {
- transportFuel = 0; //3k
- MACRO_REFUEL_ACTIONS
- GVAR(hooks)[] = {{-1.49,1.41,-.3}};
- GVAR(fuelCargo) = 10000;
- };
class StorageBladder_base_F: NonStrategic {
class ACE_Actions {
diff --git a/addons/refuel/config.cpp b/addons/refuel/config.cpp
index 6140cefe8c..2ace24fb92 100644
--- a/addons/refuel/config.cpp
+++ b/addons/refuel/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_refuel_fuelNozzle"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"GitHawk"};
- authorUrl = "";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"GitHawk"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/refuel/functions/fnc_connectNozzle.sqf b/addons/refuel/functions/fnc_connectNozzle.sqf
index d6b599b771..a124a331d5 100644
--- a/addons/refuel/functions/fnc_connectNozzle.sqf
+++ b/addons/refuel/functions/fnc_connectNozzle.sqf
@@ -28,7 +28,7 @@ if (isNull _nozzle) exitWith {};
GVAR(placeAction) = PLACE_WAITING;
-[{[localize LSTRING(Connect_Action), ""] call EFUNC(interaction,showMouseHint)}, []] call EFUNC(common,execNextFrame);
+[{[localize LSTRING(Connect_Action), ""] call EFUNC(interaction,showMouseHint)}, []] call CBA_fnc_execNextFrame;
_unit setVariable [QGVAR(placeActionEH), [_unit, "DefaultAction", {true}, {GVAR(placeAction) = PLACE_APPROVE;}] call EFUNC(common,AddActionEventHandler)];
private _actionID = _unit addAction [format ["%1", localize LSTRING(Cancel)], {GVAR(placeAction) = PLACE_CANCEL;}];
diff --git a/addons/refuel/functions/fnc_makeJerryCan.sqf b/addons/refuel/functions/fnc_makeJerryCan.sqf
index 7a9552cfe3..c826948fa2 100644
--- a/addons/refuel/functions/fnc_makeJerryCan.sqf
+++ b/addons/refuel/functions/fnc_makeJerryCan.sqf
@@ -29,7 +29,7 @@ _target setVariable [QGVAR(source), _target, true];
// Main Action
private _action = [QGVAR(Refuel),
localize LSTRING(Refuel),
- QUOTE(PATHTOF(ui\icon_refuel_interact.paa)),
+ QPATHTOF(ui\icon_refuel_interact.paa),
{},
{true},
{},
@@ -41,7 +41,7 @@ private _action = [QGVAR(Refuel),
// Add pickup
_action = [QGVAR(PickUpNozzle),
localize LSTRING(TakeNozzle),
- QUOTE(PATHTOF(ui\icon_refuel_interact.paa)),
+ QPATHTOF(ui\icon_refuel_interact.paa),
{[_player, objNull, _target] call FUNC(TakeNozzle)},
{[_player, _target] call FUNC(canTakeNozzle)},
{},
@@ -53,7 +53,7 @@ _action = [QGVAR(PickUpNozzle),
// Add turnOn
_action = [QGVAR(TurnOn),
localize LSTRING(TurnOn),
- QUOTE(PATHTOF(ui\icon_refuel_interact.paa)),
+ QPATHTOF(ui\icon_refuel_interact.paa),
{[_player, _target] call FUNC(turnOn)},
{[_player, _target] call FUNC(canTurnOn)},
{},
@@ -65,7 +65,7 @@ _action = [QGVAR(TurnOn),
// Add turnOff
_action = [QGVAR(TurnOff),
localize LSTRING(TurnOff),
- QUOTE(PATHTOF(ui\icon_refuel_interact.paa)),
+ QPATHTOF(ui\icon_refuel_interact.paa),
{[_player, _target] call FUNC(turnOff)},
{[_player, _target] call FUNC(canTurnOff)},
{},
@@ -77,7 +77,7 @@ _action = [QGVAR(TurnOff),
// Add disconnect
_action = [QGVAR(Disconnect),
localize LSTRING(Disconnect),
- QUOTE(PATHTOF(ui\icon_refuel_interact.paa)),
+ QPATHTOF(ui\icon_refuel_interact.paa),
{[_player, _target] call FUNC(disconnect)},
{[_player, _target] call FUNC(canDisconnect)},
{},
diff --git a/addons/reload/ACE_UI.hpp b/addons/reload/ACE_UI.hpp
new file mode 100644
index 0000000000..6dae3e5147
--- /dev/null
+++ b/addons/reload/ACE_UI.hpp
@@ -0,0 +1,7 @@
+class ACE_UI {
+ class ammoCount {
+ class conditions {
+ ADDON = "false";
+ };
+ };
+};
diff --git a/addons/reload/config.cpp b/addons/reload/config.cpp
index 86ba809a93..1e97fa70f1 100644
--- a/addons/reload/config.cpp
+++ b/addons/reload/config.cpp
@@ -6,18 +6,16 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"commy2","KoffeinFlummi","esteldunedain"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2","KoffeinFlummi","esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
#include "CfgVehicles.hpp"
-
#include "CfgMagazines.hpp"
-
#include "CfgEventHandlers.hpp"
-
#include "CfgActions.hpp"
-
#include "ACE_Settings.hpp"
+#include "ACE_UI.hpp"
diff --git a/addons/reload/functions/fnc_checkAmmo.sqf b/addons/reload/functions/fnc_checkAmmo.sqf
index b0581a143a..8edfd172c0 100644
--- a/addons/reload/functions/fnc_checkAmmo.sqf
+++ b/addons/reload/functions/fnc_checkAmmo.sqf
@@ -34,4 +34,4 @@ if (_unit == _target) then {
_unit playActionNow "Gear";
};
-[FUNC(displayAmmo), [_target], 1, 0.1] call EFUNC(common,waitAndExecute);
+[FUNC(displayAmmo), [_target], 1, 0.1] call CBA_fnc_waitAndExecute;
diff --git a/addons/reload/script_component.hpp b/addons/reload/script_component.hpp
index 09993faaa4..eece5acec7 100644
--- a/addons/reload/script_component.hpp
+++ b/addons/reload/script_component.hpp
@@ -14,4 +14,4 @@
#define DEBUG_SETTINGS DEBUG_ENABLED_RELOAD
#endif
-#include "\z\ace\addons\main\script_macros.hpp"
\ No newline at end of file
+#include "\z\ace\addons\main\script_macros.hpp"
diff --git a/addons/reloadlaunchers/config.cpp b/addons/reloadlaunchers/config.cpp
index 6a04f6339a..0ff68c0c9c 100644
--- a/addons/reloadlaunchers/config.cpp
+++ b/addons/reloadlaunchers/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"commy2"};
- authorUrl = "https://github.com/commy2";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/repair/CfgEden.hpp b/addons/repair/CfgEden.hpp
index d8885fddf9..ca315d68ec 100644
--- a/addons/repair/CfgEden.hpp
+++ b/addons/repair/CfgEden.hpp
@@ -16,9 +16,9 @@ class Cfg3DEN {
class Value: ctrlToolbox {
idc = 100;
style = "0x02";
- x = "48 * (pixelW * 1.25 * 4)";
- w = "82 * (pixelW * 1.25 * 4)";
- h = "5 * (pixelH * 1.25 * 4)";
+ x = "48 * (pixelW * pixelGrid * 0.25)";
+ w = "82 * (pixelW * pixelGrid * 0.25)";
+ h = "5 * (pixelH * pixelGrid * 0.25)";
rows = 1;
columns = 4;
strings[] = {"$STR_3DEN_Attributes_Lock_Default_text", CSTRING(AssignEngineerRole_role_none), CSTRING(AssignEngineerRole_role_engineer), CSTRING(AssignEngineerRole_role_specialist)};
diff --git a/addons/repair/CfgVehicles.hpp b/addons/repair/CfgVehicles.hpp
index da5f42e9a8..c2f2bfacc7 100644
--- a/addons/repair/CfgVehicles.hpp
+++ b/addons/repair/CfgVehicles.hpp
@@ -22,7 +22,7 @@ class CfgVehicles {
class ACE_moduleRepairSettings: ACE_Module {
scope = 2;
displayName = CSTRING(moduleName);
- icon = QUOTE(PATHTOF(ui\Icon_Module_Repair_ca.paa));
+ icon = QPATHTOF(ui\Icon_Module_Repair_ca.paa);
category = "ACE_Logistics";
function = QFUNC(moduleRepairSettings);
functionPriority = 1;
@@ -120,7 +120,7 @@ class CfgVehicles {
class ACE_moduleAssignEngineerRoles: Module_F {
scope = 2;
displayName = CSTRING(AssignEngineerRole_Module_DisplayName);
- icon = QUOTE(PATHTOF(ui\Icon_Module_Repair_ca.paa));
+ icon = QPATHTOF(ui\Icon_Module_Repair_ca.paa);
category = "ACE_Logistics";
function = QFUNC(moduleAssignEngineer);
functionPriority = 10;
@@ -164,7 +164,7 @@ class CfgVehicles {
class ACE_moduleAssignRepairVehicle: Module_F {
scope = 2;
displayName = CSTRING(AssignRepairVehicle_Module_DisplayName);
- icon = QUOTE(PATHTOF(ui\Icon_Module_Repair_ca.paa));
+ icon = QPATHTOF(ui\Icon_Module_Repair_ca.paa);
category = "ACE_Logistics";
function = QFUNC(moduleAssignRepairVehicle);
functionPriority = 10;
@@ -236,7 +236,7 @@ class CfgVehicles {
class ACE_moduleAddSpareParts: Module_F {
scope = 2;
displayName = CSTRING(AddSpareParts_Module_DisplayName);
- icon = QUOTE(PATHTOF(ui\Icon_Module_Repair_ca.paa));
+ icon = QPATHTOF(ui\Icon_Module_Repair_ca.paa);
category = "ACE_Logistics";
function = QFUNC(moduleAddSpareParts);
functionPriority = 10;
@@ -326,7 +326,7 @@ class CfgVehicles {
EGVAR(cargo,canLoad) = 1;
author = "Hawkins";
scope = 2;
- model = QUOTE(PATHTOF(data\ace_track.p3d));
+ model = QPATHTOF(data\ace_track.p3d);
displayName = CSTRING(SpareTrack);
};
@@ -335,9 +335,9 @@ class CfgVehicles {
EGVAR(cargo,canLoad) = 1;
author = "Hawkins";
scope = 2;
- model = QUOTE(PATHTOF(data\ace_wheel.p3d));
+ model = QPATHTOF(data\ace_wheel.p3d);
displayName = CSTRING(SpareWheel);
- picture = QUOTE(PATHTOF(ui\tire_ca.paa));
+ picture = QPATHTOF(ui\tire_ca.paa);
};
// disable vanilla repair
diff --git a/addons/repair/config.cpp b/addons/repair/config.cpp
index d377342adf..e23eeeaea0 100644
--- a/addons/repair/config.cpp
+++ b/addons/repair/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"commy2", "Glowbal", "Jonpas"};
- authorUrl = "https://ace3mod.com";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2", "Glowbal", "Jonpas"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/repair/functions/fnc_useItem.sqf b/addons/repair/functions/fnc_useItem.sqf
index 024ee76c29..24554ba4eb 100644
--- a/addons/repair/functions/fnc_useItem.sqf
+++ b/addons/repair/functions/fnc_useItem.sqf
@@ -20,7 +20,7 @@ params ["_unit", "_item"];
TRACE_2("params",_unit,_item);
if ([_unit, _item] call EFUNC(common,hasItem)) exitWith {
- [[_unit, _item], QUOTE(EFUNC(common,useItem)), _unit] call EFUNC(common,execRemoteFnc); /* TODO Replace by event system */
+ [[_unit, _item], QEFUNC(common,useItem), _unit] call EFUNC(common,execRemoteFnc); /* TODO Replace by event system */
[true, _unit];
};
diff --git a/addons/respawn/CfgVehicles.hpp b/addons/respawn/CfgVehicles.hpp
index 4650e8ffbe..103fab0537 100644
--- a/addons/respawn/CfgVehicles.hpp
+++ b/addons/respawn/CfgVehicles.hpp
@@ -10,7 +10,7 @@ class CfgVehicles {
function = QFUNC(module);
scope = 2;
isGlobal = 0;
- icon = QUOTE(PATHTOF(UI\Icon_Module_Respawn_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Respawn_ca.paa);
class Arguments {
class SavePreDeathGear {
@@ -40,7 +40,7 @@ class CfgVehicles {
function = QFUNC(moduleFriendlyFire);
scope = 2;
isGlobal = 1;
- icon = QUOTE(PATHTOF(UI\Icon_Module_FriendlyFire_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_FriendlyFire_ca.paa);
class Arguments {};
class ModuleDescription {
@@ -55,7 +55,7 @@ class CfgVehicles {
function = QFUNC(moduleRallypoint);
scope = 2;
isGlobal = 1;
- icon = QUOTE(PATHTOF(UI\Icon_Module_Rallypoint_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Rallypoint_ca.paa);
class Arguments {};
class ModuleDescription {
diff --git a/addons/respawn/XEH_serverPostInit.sqf b/addons/respawn/XEH_serverPostInit.sqf
index d472bb0d5c..8ff14e209a 100644
--- a/addons/respawn/XEH_serverPostInit.sqf
+++ b/addons/respawn/XEH_serverPostInit.sqf
@@ -10,7 +10,7 @@
deleteVehicle _unit;
};
},
- _this, 4] call EFUNC(common,waitAndExecute);
+ _this, 4] call CBA_fnc_waitAndExecute;
false
}];
};
diff --git a/addons/respawn/config.cpp b/addons/respawn/config.cpp
index 4a23d1f650..5305232543 100644
--- a/addons/respawn/config.cpp
+++ b/addons/respawn/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_Rallypoint_West", "ACE_Rallypoint_East", "ACE_Rallypoint_Independent", "ACE_Rallypoint_West_Base", "ACE_Rallypoint_East_Base", "ACE_Rallypoint_Independent_Base"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { "ace_common" };
- author[] = { "bux578", "commy2" };
- authorUrl = "https://github.com/bux578/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = { "bux578", "commy2" };
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/respawn/functions/fnc_initRallypoint.sqf b/addons/respawn/functions/fnc_initRallypoint.sqf
index 70475dedc2..ce4e9c9d79 100644
--- a/addons/respawn/functions/fnc_initRallypoint.sqf
+++ b/addons/respawn/functions/fnc_initRallypoint.sqf
@@ -60,5 +60,5 @@ if (hasInterface) then {
_marker setMarkerTextLocal _date;
_rallypoint setVariable [QGVAR(marker), _marker];
- }, [_rallypoint, _respawnMarker, _side, _name], 0.1] call EFUNC(common,waitAndExecute);
+ }, [_rallypoint, _respawnMarker, _side, _name], 0.1] call CBA_fnc_waitAndExecute;
};
diff --git a/addons/respawn/functions/fnc_moduleFriendlyFire.sqf b/addons/respawn/functions/fnc_moduleFriendlyFire.sqf
index f5b982f0ea..3c3c02b3c9 100644
--- a/addons/respawn/functions/fnc_moduleFriendlyFire.sqf
+++ b/addons/respawn/functions/fnc_moduleFriendlyFire.sqf
@@ -27,7 +27,7 @@ if (isServer) then {
missionNamespace setVariable [QGVAR(showFriendlyFireMessage), true];
publicVariable QGVAR(showFriendlyFireMessage);
},
- [], 0.1] call EFUNC(common,waitAndExecute);
+ [], 0.1] call CBA_fnc_waitAndExecute;
};
ACE_LOGINFO("Friendly Fire Messages Module Initialized.");
diff --git a/addons/respawn/functions/fnc_moveRallypoint.sqf b/addons/respawn/functions/fnc_moveRallypoint.sqf
index fa8aae40a5..f004a1e844 100644
--- a/addons/respawn/functions/fnc_moveRallypoint.sqf
+++ b/addons/respawn/functions/fnc_moveRallypoint.sqf
@@ -51,4 +51,4 @@ _position set [2, 0];
["rallypointMoved", [_rallypoint, _side, _position]] call EFUNC(common,globalEvent);
[localize LSTRING(Deployed)] call EFUNC(common,displayTextStructured);
-}, [_rallypoint, _unit, _position], 5] call EFUNC(common,waitAndExecute);
+}, [_rallypoint, _unit, _position], 5] call CBA_fnc_waitAndExecute;
diff --git a/addons/safemode/config.cpp b/addons/safemode/config.cpp
index 8371e7f35f..05510a53a5 100644
--- a/addons/safemode/config.cpp
+++ b/addons/safemode/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/sandbag/CfgVehicles.hpp b/addons/sandbag/CfgVehicles.hpp
index 64d62ad424..df18b42c06 100644
--- a/addons/sandbag/CfgVehicles.hpp
+++ b/addons/sandbag/CfgVehicles.hpp
@@ -9,11 +9,11 @@ class CfgVehicles {
displayName = CSTRING(DeploySandbag);
condition = QUOTE(_this call FUNC(canDeploy));
//wait a frame to handle "Do When releasing action menu key" option
- statement = QUOTE([ARR_2({_this call FUNC(deploy)},_this)] call EFUNC(common,execNextFrame));
+ statement = QUOTE([ARR_2({_this call FUNC(deploy)},_this)] call CBA_fnc_execNextFrame);
exceptions[] = {"isNotSwimming"};
showDisabled = 0;
priority = 4;
- icon = PATHTOF(UI\icon_sandbag_ca.paa);
+ icon = QPATHTOF(UI\icon_sandbag_ca.paa);
};
};
};
@@ -53,14 +53,14 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam);
scope = 2;
side = 3;
- model = PATHTOF(data\ace_sandbag_build.p3d);
+ model = QPATHTOF(data\ace_sandbag_build.p3d);
displayName = CSTRING(sandbag_displayName);
vehicleClass = "ACE_Logistics_Items";
typicalCargo[] = {};
armor = 12000; // Withstand 200 5.56 bullets before sandbag hull is cheese
mapSize = 0.4;
nameSound = "Bunker";
- icon = PATHTOF(UI\icon_sandbag_ca.paa);
+ icon = QPATHTOF(UI\icon_sandbag_ca.paa);
accuracy = 1000;
destrType = "DestructDefault";
@@ -90,7 +90,7 @@ class CfgVehicles {
showDisabled = 0;
exceptions[] = {};
priority = 5;
- icon = PATHTOF(UI\icon_sandbag_ca.paa);
+ icon = QPATHTOF(UI\icon_sandbag_ca.paa);
};
};
};
@@ -98,7 +98,7 @@ class CfgVehicles {
class ACE_SandbagObject_NoGeo: ACE_SandbagObject {
scope = 1;
- model = PATHTOF(data\ace_sandbag_nogeo.p3d);
+ model = QPATHTOF(data\ace_sandbag_nogeo.p3d);
};
class Box_NATO_Support_F;
diff --git a/addons/sandbag/CfgWeapons.hpp b/addons/sandbag/CfgWeapons.hpp
index 5f8ef61315..ce23c0924c 100644
--- a/addons/sandbag/CfgWeapons.hpp
+++ b/addons/sandbag/CfgWeapons.hpp
@@ -7,10 +7,10 @@ class CfgWeapons {
author = ECSTRING(common,ACETeam);
scope = 2;
displayName = CSTRING(sandbagEmpty_displayName);
- model = PATHTOF(data\ace_sandbag_m.p3d);
- picture = PATHTOF(data\m_sandbag_ca.paa);
-
- class ItemInfo: InventoryItem_Base_F {
+ model = QPATHTOF(data\ace_sandbag_m.p3d);
+ picture = QPATHTOF(data\m_sandbag_ca.paa);
+
+ class ItemInfo: InventoryItem_Base_F {
mass = 8;
};
};
@@ -19,10 +19,10 @@ class CfgWeapons {
author = ECSTRING(common,ACETeam);
scope = 2;
displayName = CSTRING(sandbag_displayName);
- model = PATHTOF(data\ace_sandbag_build.p3d);
- picture = PATHTOF(data\m_sandbag_ca.paa);
-
- class ItemInfo: InventoryItem_Base_F {
+ model = QPATHTOF(data\ace_sandbag_build.p3d);
+ picture = QPATHTOF(data\m_sandbag_ca.paa);
+
+ class ItemInfo: InventoryItem_Base_F {
mass = 160;
};
};
diff --git a/addons/sandbag/config.cpp b/addons/sandbag/config.cpp
index 6b7ce1a456..18f09c3970 100644
--- a/addons/sandbag/config.cpp
+++ b/addons/sandbag/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_Sandbag", "ACE_Sandbag_empty"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"Rocko", "Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Rocko", "Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/sandbag/functions/fnc_deployConfirm.sqf b/addons/sandbag/functions/fnc_deployConfirm.sqf
index c560bc15ba..c37e0ed0d9 100644
--- a/addons/sandbag/functions/fnc_deployConfirm.sqf
+++ b/addons/sandbag/functions/fnc_deployConfirm.sqf
@@ -41,7 +41,7 @@ _unit removeItem "ACE_Sandbag_empty";
_sandBag setDir _direction;
GVAR(sandBag) = objNull;
-}, [_unit], 1] call EFUNC(common,waitAndExecute);
+}, [_unit], 1] call CBA_fnc_waitAndExecute;
// remove deployment pfh
[GVAR(deployPFH)] call CBA_fnc_removePerFrameHandler;
diff --git a/addons/sandbag/functions/fnc_pickup.sqf b/addons/sandbag/functions/fnc_pickup.sqf
index 7e04d047fd..fd4560fdec 100644
--- a/addons/sandbag/functions/fnc_pickup.sqf
+++ b/addons/sandbag/functions/fnc_pickup.sqf
@@ -37,4 +37,4 @@ _unit setVariable [QGVAR(isUsingSandbag), true];
} count (_unit nearObjects ["ACE_SandbagObject", 5]);
[_unit, "ACE_Sandbag_empty"] call EFUNC(common,addToInventory);
-}, [_unit, _sandbag], 1.5] call EFUNC(common,waitAndExecute);
+}, [_unit, _sandbag], 1.5] call CBA_fnc_waitAndExecute;
diff --git a/addons/scopes/CfgSounds.hpp b/addons/scopes/CfgSounds.hpp
index 9063c7f730..2da106d79b 100644
--- a/addons/scopes/CfgSounds.hpp
+++ b/addons/scopes/CfgSounds.hpp
@@ -1,12 +1,12 @@
class CfgSounds {
class ACE_Sound_Click;
class ACE_Scopes_Click_1: ACE_Sound_Click {
- sound[] = {QUOTE(PATHTOF(sounds\ACE_scopes_click.wav)),3, 2, 200};
+ sound[] = {QPATHTOF(sounds\ACE_scopes_click.wav),3, 2, 200};
};
class ACE_Scopes_Click_2: ACE_Scopes_Click_1 {
- sound[] = {QUOTE(PATHTOF(sounds\ACE_scopes_click.wav)), 3.3, 1.8, 200};
+ sound[] = {QPATHTOF(sounds\ACE_scopes_click.wav), 3.3, 1.8, 200};
};
class ACE_Scopes_Click_3: ACE_Scopes_Click_1 {
- sound[] = {QUOTE(PATHTOF(sounds\ACE_scopes_click.wav)), 2.8, 2.3, 200};
+ sound[] = {QPATHTOF(sounds\ACE_scopes_click.wav), 2.8, 2.3, 200};
};
};
diff --git a/addons/scopes/CfgVehicles.hpp b/addons/scopes/CfgVehicles.hpp
index 81756249e1..8a17384933 100644
--- a/addons/scopes/CfgVehicles.hpp
+++ b/addons/scopes/CfgVehicles.hpp
@@ -10,7 +10,7 @@ class CfgVehicles {
statement = QUOTE([ACE_player] call FUNC(adjustZero));
showDisabled = 0;
priority = 0.2;
- //icon = QUOTE(PATHTOF(UI\...)); // TODO
+ //icon = QPATHTOF(UI\...); // TODO
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
};
};
diff --git a/addons/scopes/RscTitles.hpp b/addons/scopes/RscTitles.hpp
index 7aec20458c..1a4bcc99c3 100644
--- a/addons/scopes/RscTitles.hpp
+++ b/addons/scopes/RscTitles.hpp
@@ -17,7 +17,7 @@ class RscTitles {
class ACE_Scopes_Zeroing_BG : RscPicture {
idc = 11;
type = 0;
- text = PATHTOF(UI\scopes_bg.paa);
+ text = QPATHTOF(UI\scopes_bg.paa);
style = 48 + 0x800;
scale = 1;
sizeEx = 1;
diff --git a/addons/scopes/config.cpp b/addons/scopes/config.cpp
index 42be283044..fb1f0274ca 100644
--- a/addons/scopes/config.cpp
+++ b/addons/scopes/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { "ace_common" };
- author[] = {"KoffeinFlummi", "esteldunedain"};
- authorUrl = "https://github.com/KoffeinFlummi";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"KoffeinFlummi", "esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/scopes/functions/fnc_showZeroing.sqf b/addons/scopes/functions/fnc_showZeroing.sqf
index 43595bde87..eb47c692bf 100644
--- a/addons/scopes/functions/fnc_showZeroing.sqf
+++ b/addons/scopes/functions/fnc_showZeroing.sqf
@@ -45,13 +45,13 @@ _vertical ctrlSetText (str _elevation);
_horizontal ctrlSetText (str _windage);
// Set the time when to hide the knobs
-GVAR(timeToHide) = ACE_diagTime + 3.0;
+GVAR(timeToHide) = diag_tickTime + 3.0;
if !(isNil QGVAR(fadePFH)) exitWith {};
// Launch a PFH to wait and fade out the knobs
GVAR(fadePFH) = [{
- if (ACE_diagTime >= GVAR(timeToHide)) exitWith {
+ if (diag_tickTime >= GVAR(timeToHide)) exitWith {
private "_layer";
params ["", "_pfhId"];
_layer = [QGVAR(Zeroing)] call BIS_fnc_rscLayer;
diff --git a/addons/sitting/CfgVehicles.hpp b/addons/sitting/CfgVehicles.hpp
index d92d92fc49..95deed0dd6 100644
--- a/addons/sitting/CfgVehicles.hpp
+++ b/addons/sitting/CfgVehicles.hpp
@@ -8,10 +8,10 @@ class CfgVehicles {
category = "ACE";
displayName = CSTRING(ModuleDisplayName);
function = QFUNC(moduleInit);
- scope = 2;
+ scope = 1;
isGlobal = 1;
isSingular = 1;
- icon = QUOTE(PATHTOF(UI\Icon_Module_Sitting_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Sitting_ca.paa);
class Arguments {
class enable {
displayName = CSTRING(Enable);
@@ -34,7 +34,7 @@ class CfgVehicles {
exceptions[] = {"isNotSitting"};
statement = QUOTE(_player call FUNC(stand));
priority = 0;
- icon = PATHTOF(UI\stand_ca.paa);
+ icon = QPATHTOF(UI\stand_ca.paa);
};
};
};
diff --git a/addons/sitting/XEH_clientInit.sqf b/addons/sitting/XEH_clientInit.sqf
index e15017d715..7efb38d41e 100644
--- a/addons/sitting/XEH_clientInit.sqf
+++ b/addons/sitting/XEH_clientInit.sqf
@@ -4,8 +4,7 @@
if (!hasInterface) exitWith {};
["SettingsInitialized", {
- TRACE_1("SettingInit", GVAR(enable));
-
+ if ([[QUOTE(ADDON), QGVAR(enable)], ["acex_sitting", "acex_sitting_enable"], "3.8.0"] call EFUNC(common,deprecateComponent)) exitwith {};
//If not enabled, then do not add CanInteractWith Condition or event handlers:
if (!GVAR(enable)) exitWith {};
diff --git a/addons/sitting/config.cpp b/addons/sitting/config.cpp
index 96d3edab7b..bf38435f22 100644
--- a/addons/sitting/config.cpp
+++ b/addons/sitting/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"Jonpas"};
- authorUrl = "https://github.com/jonpas";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Jonpas"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/sitting/functions/fnc_addSitActions.sqf b/addons/sitting/functions/fnc_addSitActions.sqf
index 98c9aba99f..4c449bac52 100644
--- a/addons/sitting/functions/fnc_addSitActions.sqf
+++ b/addons/sitting/functions/fnc_addSitActions.sqf
@@ -40,7 +40,7 @@ TRACE_1("Adding Sit Action",_type);
private _sitAction = [
QGVAR(Sit),
localize LSTRING(Sit),
- QUOTE(PATHTOF(UI\sit_ca.paa)),
+ QPATHTOF(UI\sit_ca.paa),
{_this call FUNC(sit)},
{_this call FUNC(canSit)},
{},
diff --git a/addons/slideshow/CfgVehicles.hpp b/addons/slideshow/CfgVehicles.hpp
index 7e82d48ffc..af3108eb59 100644
--- a/addons/slideshow/CfgVehicles.hpp
+++ b/addons/slideshow/CfgVehicles.hpp
@@ -9,7 +9,7 @@ class CfgVehicles {
isGlobal = 1;
isTriggerActivated = 0;
isDisposable = 0;
- icon = QUOTE(PATHTOF(UI\Icon_Module_Slideshow_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Slideshow_ca.paa);
class Arguments {
class Objects {
displayName = CSTRING(Objects_DisplayName);
diff --git a/addons/slideshow/config.cpp b/addons/slideshow/config.cpp
index 3af3bd5354..3a2e757e6a 100644
--- a/addons/slideshow/config.cpp
+++ b/addons/slideshow/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[]= {"Jonpas", "DaC"};
- authorUrl = "https://github.com/jonpas";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Jonpas", "DaC"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/slideshow/functions/fnc_autoTransition.sqf b/addons/slideshow/functions/fnc_autoTransition.sqf
index 4c31c4ff6a..d54d629b66 100644
--- a/addons/slideshow/functions/fnc_autoTransition.sqf
+++ b/addons/slideshow/functions/fnc_autoTransition.sqf
@@ -37,4 +37,4 @@ missionNamespace setVariable [_varString, _currentSlide];
// Log current slide and execute Next slide
TRACE_4("Auto-transition",_images select _currentSlide,_currentSlide,count _images,_duration);
-[FUNC(autoTransition), [_objects, _images, _varString, _duration], _duration] call EFUNC(common,waitAndExecute);
+[FUNC(autoTransition), [_objects, _images, _varString, _duration], _duration] call CBA_fnc_waitAndExecute;
diff --git a/addons/slideshow/functions/fnc_createSlideshow.sqf b/addons/slideshow/functions/fnc_createSlideshow.sqf
index 792905db0f..42d1498b88 100644
--- a/addons/slideshow/functions/fnc_createSlideshow.sqf
+++ b/addons/slideshow/functions/fnc_createSlideshow.sqf
@@ -80,5 +80,5 @@ if (_duration == 0) then {
missionNamespace setVariable [_varString, 0];
// Automatic transitions handler
- [FUNC(autoTransition), [_objects, _images, _varString, _duration], _duration] call EFUNC(common,waitAndExecute);
+ [FUNC(autoTransition), [_objects, _images, _varString, _duration], _duration] call CBA_fnc_waitAndExecute;
};
diff --git a/addons/smallarms/config.cpp b/addons/smallarms/config.cpp
index e5731df7b3..5b211fa37e 100644
--- a/addons/smallarms/config.cpp
+++ b/addons/smallarms/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"TaoSensai", "KoffeinFlummi"};
- authorUrl = "https://github.com/Taosenai/tmr";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"TaoSensai", "KoffeinFlummi"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/spectator/CfgVehicles.hpp b/addons/spectator/CfgVehicles.hpp
index f6869462ac..268aabbef5 100644
--- a/addons/spectator/CfgVehicles.hpp
+++ b/addons/spectator/CfgVehicles.hpp
@@ -3,7 +3,7 @@ class CfgVehicles {
class GVAR(moduleSettings): ACE_Module {
scope = 2;
displayName = CSTRING(Settings_DisplayName);
- icon = PATHTOF(UI\Icon_Module_Spectator_ca.paa);
+ icon = QPATHTOF(UI\Icon_Module_Spectator_ca.paa);
category = "ACE";
function = QFUNC(moduleSpectatorSettings);
isGlobal = 1;
diff --git a/addons/spectator/config.cpp b/addons/spectator/config.cpp
index 6e32ed0413..5907e7c3e1 100644
--- a/addons/spectator/config.cpp
+++ b/addons/spectator/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"F3 Project","Head","SilentSpike","voiper"};
- authorUrl = "https://github.com/acemod";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"F3 Project","Head","SilentSpike","voiper"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/spectator/functions/fnc_handleInterface.sqf b/addons/spectator/functions/fnc_handleInterface.sqf
index 381f64505c..3a69bb1383 100644
--- a/addons/spectator/functions/fnc_handleInterface.sqf
+++ b/addons/spectator/functions/fnc_handleInterface.sqf
@@ -111,7 +111,7 @@ switch (toLower _mode) do {
_timer ctrlCommit 0;
_frame ctrlCommit 0;
};
- },[],0.5] call EFUNC(common,waitAndExecute);
+ },[],0.5] call CBA_fnc_waitAndExecute;
};
case "onunload": {
// Kill GUI PFHs
@@ -490,7 +490,7 @@ switch (toLower _mode) do {
[_this select 1] call CBA_fnc_removePerFrameHandler;
},0] call CBA_fnc_addPerFrameHandler;
- },[],5] call EFUNC(common,waitAndExecute);
+ },[],5] call CBA_fnc_waitAndExecute;
true
};
diff --git a/addons/spectator/functions/fnc_handleUnits.sqf b/addons/spectator/functions/fnc_handleUnits.sqf
index c32961024c..f51c922b8e 100644
--- a/addons/spectator/functions/fnc_handleUnits.sqf
+++ b/addons/spectator/functions/fnc_handleUnits.sqf
@@ -36,5 +36,5 @@ if !(GVAR(camUnit) in GVAR(unitList)) then {
// Reduce overhead when unit tree is hidden
if (ctrlShown (_display displayCtrl IDC_UNIT)) then {
// Reduce overhead by spreading across frames
- [FUNC(handleInterface),["onUnitsUpdate",[(_display displayCtrl IDC_UNIT) controlsGroupCtrl IDC_UNIT_TREE]],1] call EFUNC(common,waitAndExecute);
+ [FUNC(handleInterface),["onUnitsUpdate",[(_display displayCtrl IDC_UNIT) controlsGroupCtrl IDC_UNIT_TREE]],1] call CBA_fnc_waitAndExecute;
};
diff --git a/addons/spectator/functions/fnc_setSpectator.sqf b/addons/spectator/functions/fnc_setSpectator.sqf
index 1f010962b5..83ed864219 100644
--- a/addons/spectator/functions/fnc_setSpectator.sqf
+++ b/addons/spectator/functions/fnc_setSpectator.sqf
@@ -97,7 +97,7 @@ if (_set) then {
};
}];
};
- }, !_force] call EFUNC(common,execNextFrame);
+ }, !_force] call CBA_fnc_execNextFrame;
// Cache and disable nametag settings
if (["ace_nametags"] call EFUNC(common,isModLoaded)) then {
diff --git a/addons/spectator/functions/fnc_stageSpectator.sqf b/addons/spectator/functions/fnc_stageSpectator.sqf
index 926ac008dc..4c6b22160d 100644
--- a/addons/spectator/functions/fnc_stageSpectator.sqf
+++ b/addons/spectator/functions/fnc_stageSpectator.sqf
@@ -73,6 +73,6 @@ if ((player in GVAR(unitList)) || {ACE_player in GVAR(unitList)}) then {
if (!(isNull (findDisplay 12249))) then {//If display is open now, close it and restart
ACE_LOGWARNING("Player in unitList, call ace_spectator_fnc_stageSpectator before ace_spectator_fnc_setSpectator");
["fixWeirdList", true] call FUNC(interrupt);
- [{["fixWeirdList", false] call FUNC(interrupt);}, []] call EFUNC(common,execNextFrame);
+ [{["fixWeirdList", false] call FUNC(interrupt);}, []] call CBA_fnc_execNextFrame;
};
};
diff --git a/addons/spottingscope/CfgVehicles.hpp b/addons/spottingscope/CfgVehicles.hpp
index 418eea5a15..ef5f1e1c3e 100644
--- a/addons/spottingscope/CfgVehicles.hpp
+++ b/addons/spottingscope/CfgVehicles.hpp
@@ -12,7 +12,7 @@ class CfgVehicles {
statement = QUOTE([ARR_2(_player,'ACE_SpottingScope')] call FUNC(place));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\w_spottingscope_ca.paa);
+ icon = QPATHTOF(UI\w_spottingscope_ca.paa);
};
};
};
@@ -61,7 +61,7 @@ class CfgVehicles {
side = 1;
typicalCargo[] = {"Soldier"};
displayName = CSTRING(DisplayName);
- model = PATHTOF(data\ace_spottingscope.p3d);
+ model = QPATHTOF(data\ace_spottingscope.p3d);
mapSize = 0.5;
transportSoldier = 0;
getInAction = "GetInLow";
@@ -78,7 +78,7 @@ class CfgVehicles {
weapons[] = {};
magazines[] = {};
gunnerOpticsColor[] = {1,1,1,1};
- gunnerOpticsmodel = PATHTOF(data\m144_optic.p3d);
+ gunnerOpticsmodel = QPATHTOF(data\m144_optic.p3d);
gunnerOpticsEffect[] = {"OpticsCHAbera1","OpticsBlur2"};
gunnerOutOpticsShowCursor = 0;
gunnerOpticsShowCursor = 0;
@@ -126,7 +126,7 @@ class CfgVehicles {
showDisabled = 0;
exceptions[] = {};
priority = 5;
- icon = PATHTOF(UI\w_spottingscope_ca.paa);
+ icon = QPATHTOF(UI\w_spottingscope_ca.paa);
};
};
};
diff --git a/addons/spottingscope/CfgWeapons.hpp b/addons/spottingscope/CfgWeapons.hpp
index 3b550f9f5d..9e190bab0d 100644
--- a/addons/spottingscope/CfgWeapons.hpp
+++ b/addons/spottingscope/CfgWeapons.hpp
@@ -7,10 +7,10 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(DisplayName);
descriptionShort = "";
- picture = PATHTOF(UI\w_spottingscope_ca.paa);
- model = PATHTOF(data\ace_spottingscope.p3d);
-
- class ItemInfo: InventoryItem_Base_F {
+ picture = QPATHTOF(UI\w_spottingscope_ca.paa);
+ model = QPATHTOF(data\ace_spottingscope.p3d);
+
+ class ItemInfo: InventoryItem_Base_F {
mass = 40;
};
};
diff --git a/addons/spottingscope/config.cpp b/addons/spottingscope/config.cpp
index c3541eed39..a92f91ec50 100644
--- a/addons/spottingscope/config.cpp
+++ b/addons/spottingscope/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_SpottingScope"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_apl", "ace_interaction"};
- author[] = {"Rocko", "Scubaman3D", "Ruthberg", "commy2", "p1nga"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Rocko", "Scubaman3D", "Ruthberg", "commy2", "p1nga"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/spottingscope/functions/fnc_pickup.sqf b/addons/spottingscope/functions/fnc_pickup.sqf
index 81c9bc10a5..cdcc78bea3 100644
--- a/addons/spottingscope/functions/fnc_pickup.sqf
+++ b/addons/spottingscope/functions/fnc_pickup.sqf
@@ -27,4 +27,4 @@ if ((_unit call CBA_fnc_getUnitAnim) select 0 == "stand") then {
[_unit, "ACE_SpottingScope"] call EFUNC(common,addToInventory);
deleteVehicle _spottingScope;
-}, [_spottingScope, _unit], 1, 0]call EFUNC(common,waitAndExecute);
+}, [_spottingScope, _unit], 1, 0]call CBA_fnc_waitAndExecute;
diff --git a/addons/spottingscope/functions/fnc_place.sqf b/addons/spottingscope/functions/fnc_place.sqf
index 09f756c109..21560f948f 100644
--- a/addons/spottingscope/functions/fnc_place.sqf
+++ b/addons/spottingscope/functions/fnc_place.sqf
@@ -38,4 +38,4 @@ if ((_unit call CBA_fnc_getUnitAnim) select 0 == "stand") then {
_spottingScope setVectorUp (surfaceNormal (position _spottingScope));
};
_unit reveal _spottingScope;
-}, [_unit], 1, 0] call EFUNC(common,waitAndExecute);
+}, [_unit], 1, 0] call CBA_fnc_waitAndExecute;
diff --git a/addons/switchunits/CfgVehicles.hpp b/addons/switchunits/CfgVehicles.hpp
index f0549cb00e..1e12cc03d6 100644
--- a/addons/switchunits/CfgVehicles.hpp
+++ b/addons/switchunits/CfgVehicles.hpp
@@ -7,7 +7,7 @@ class CfgVehicles {
function = FUNC(module);
scope = 2;
isGlobal = 1;
- icon = QUOTE(PATHTOF(UI\Icon_Module_SwitchUnits_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_SwitchUnits_ca.paa);
class Arguments {
class SwitchToWest {
displayName = CSTRING(SwitchToWest_DisplayName);
diff --git a/addons/switchunits/config.cpp b/addons/switchunits/config.cpp
index 22a4924709..1bdec70729 100644
--- a/addons/switchunits/config.cpp
+++ b/addons/switchunits/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"bux578"};
- authorUrl = "https://github.com/bux578/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"bux578"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/tacticalladder/CfgVehicles.hpp b/addons/tacticalladder/CfgVehicles.hpp
index ed0ed0eb8c..e6525d8edd 100644
--- a/addons/tacticalladder/CfgVehicles.hpp
+++ b/addons/tacticalladder/CfgVehicles.hpp
@@ -21,8 +21,8 @@ class CfgVehicles {
scope = 2;
displayName = CSTRING(DisplayName);
descriptionShort = "";
- model = PATHTOF(data\ace_tacticalladder_pack.p3d);
- picture = PATHTOF(UI\ace_tactical_ladder_pack_ca.paa);
+ model = QPATHTOF(data\ace_tacticalladder_pack.p3d);
+ picture = QPATHTOF(UI\ace_tactical_ladder_pack_ca.paa);
maximumLoad = 0;
mass = 50;
};
@@ -42,7 +42,7 @@ class CfgVehicles {
displayName = CSTRING(DisplayName);
class DestructionEffects {};
- model = PATHTOF(data\ace_tacticalladder.p3d);
+ model = QPATHTOF(data\ace_tacticalladder.p3d);
animated = 1;
autocenter = 0;
featureSize = 12;
@@ -92,7 +92,7 @@ class CfgVehicles {
distance = 4;
condition = "true";
//wait a frame to handle "Do When releasing action menu key" option:
- statement = QUOTE([ARR_2({_this call FUNC(positionTL)},[ARR_2(_player,_target)])] call EFUNC(common,execNextFrame));
+ statement = QUOTE([ARR_2({_this call FUNC(positionTL)},[ARR_2(_player,_target)])] call CBA_fnc_execNextFrame);
showDisabled = 0;
exceptions[] = {};
priority = 5;
diff --git a/addons/tacticalladder/XEH_postInit.sqf b/addons/tacticalladder/XEH_postInit.sqf
index 465f514d14..ae59629a5a 100644
--- a/addons/tacticalladder/XEH_postInit.sqf
+++ b/addons/tacticalladder/XEH_postInit.sqf
@@ -8,7 +8,7 @@ GVAR(currentStep) = 3;
GVAR(currentAngle) = 0;
/*["interactMenuOpened", {
- if ((ACE_time > GVAR(cancelTime)) && !isNull GVAR(ladder)) then {
+ if ((CBA_missionTime > GVAR(cancelTime)) && !isNull GVAR(ladder)) then {
GVAR(ladder) call FUNC(cancelTLdeploy);
};
}] call EFUNC(common,addEventHandler);*/
diff --git a/addons/tacticalladder/config.cpp b/addons/tacticalladder/config.cpp
index 02740639fe..11f15ac934 100644
--- a/addons/tacticalladder/config.cpp
+++ b/addons/tacticalladder/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_apl", "ace_interaction"};
- author[] = {"Rocko", "Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Rocko", "Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/tacticalladder/functions/fnc_positionTL.sqf b/addons/tacticalladder/functions/fnc_positionTL.sqf
index 27ea683b5a..c47733dd5a 100644
--- a/addons/tacticalladder/functions/fnc_positionTL.sqf
+++ b/addons/tacticalladder/functions/fnc_positionTL.sqf
@@ -37,7 +37,7 @@ _ladder animate ["rotate", 0];
} count ["extract_1", "extract_2", "extract_3"]; // Extract ladder at head height (extract_3)
GVAR(ladder) = _ladder;
-GVAR(cancelTime) = ACE_time + 1; // Workaround to prevent accidental canceling
+GVAR(cancelTime) = CBA_missionTime + 1; // Workaround to prevent accidental canceling
GVAR(currentStep) = 3;
GVAR(currentAngle) = 0;
diff --git a/addons/tagging/CfgVehicles.hpp b/addons/tagging/CfgVehicles.hpp
index 4425b646ad..d384a2b01b 100644
--- a/addons/tagging/CfgVehicles.hpp
+++ b/addons/tagging/CfgVehicles.hpp
@@ -9,27 +9,27 @@ class CfgVehicles {
statement = QUOTE([ARR_2(ACE_player,'black' call FUNC(getTexture))] call FUNC(tag));
showDisabled = 0;
priority = 3;
- icon = QUOTE(PATHTOF(UI\icons\iconTaggingBlack.paa));
+ icon = QPATHTOF(UI\icons\iconTaggingBlack.paa);
};
class ACE_TagRed: ACE_TagBlack {
displayName = CSTRING(TagRed);
condition = QUOTE(('ACE_SpraypaintRed' in items ACE_player) && {[] call FUNC(checkTaggable)});
- statement = QUOTE([ARR_2(ACE_player,'red' call FUNC(getTexture))] call FUNC(tag));
- icon = QUOTE(PATHTOF(UI\icons\iconTaggingRed.paa));
- };
+ statement = QUOTE([ARR_2(ACE_player,'red' call FUNC(getTexture))] call FUNC(tag));
+ icon = QPATHTOF(UI\icons\iconTaggingRed.paa);
+ };
class ACE_TagGreen: ACE_TagBlack {
displayName = CSTRING(TagGreen);
condition = QUOTE(('ACE_SpraypaintGreen' in items ACE_player) && {[] call FUNC(checkTaggable)});
- statement = QUOTE([ARR_2(ACE_player,'green' call FUNC(getTexture))] call FUNC(tag));
- icon = QUOTE(PATHTOF(UI\icons\iconTaggingGreen.paa));
- };
+ statement = QUOTE([ARR_2(ACE_player,'green' call FUNC(getTexture))] call FUNC(tag));
+ icon = QPATHTOF(UI\icons\iconTaggingGreen.paa);
+ };
class ACE_TagBlue: ACE_TagBlack {
displayName = CSTRING(TagBlue);
condition = QUOTE(('ACE_SpraypaintBlue' in items ACE_player) && {[] call FUNC(checkTaggable)});
- statement = QUOTE([ARR_2(ACE_player,'blue' call FUNC(getTexture))] call FUNC(tag));
- icon = QUOTE(PATHTOF(UI\icons\iconTaggingBlue.paa));
+ statement = QUOTE([ARR_2(ACE_player,'blue' call FUNC(getTexture))] call FUNC(tag));
+ icon = QPATHTOF(UI\icons\iconTaggingBlue.paa);
};
- };
+ };
};
};
diff --git a/addons/tagging/CfgWeapons.hpp b/addons/tagging/CfgWeapons.hpp
index a805a75679..1984b3b14a 100644
--- a/addons/tagging/CfgWeapons.hpp
+++ b/addons/tagging/CfgWeapons.hpp
@@ -6,28 +6,28 @@ class CfgWeapons {
author = "jokoho48";
displayname = CSTRING(spraypaintBlack);
descriptionShort = CSTRING(descSpraypaint);
- picture = QUOTE(PATHTOF(UI\items\itemSpraypaintBlack.paa));
- model = QUOTE(PATHTOF(data\SprayCan.p3d));
+ picture = QPATHTOF(UI\items\itemSpraypaintBlack.paa);
+ model = QPATHTOF(data\SprayCan.p3d);
scope = 2;
hiddenSelections[] = {"camo"};
- hiddenSelectionsTextures[] = {QUOTE(PATHTOF(data\spraycanBlack_co.paa))};
+ hiddenSelectionsTextures[] = {QPATHTOF(data\spraycanBlack_co.paa)};
class ItemInfo: InventoryItem_Base_F {
mass = 10;
};
};
class ACE_SpraypaintRed : ACE_SpraypaintBlack {
displayname = CSTRING(spraypaintRed);
- picture = QUOTE(PATHTOF(UI\items\itemSpraypaintRed.paa));
- hiddenSelectionsTextures[] = {QUOTE(PATHTOF(data\spraycanRed_co.paa))};
+ picture = QPATHTOF(UI\items\itemSpraypaintRed.paa);
+ hiddenSelectionsTextures[] = {QPATHTOF(data\spraycanRed_co.paa)};
};
class ACE_SpraypaintGreen : ACE_SpraypaintBlack {
displayname = CSTRING(spraypaintGreen);
- picture = QUOTE(PATHTOF(UI\items\itemSpraypaintGreen.paa));
- hiddenSelectionsTextures[] = {QUOTE(PATHTOF(data\spraycanGreen_co.paa))};
+ picture = QPATHTOF(UI\items\itemSpraypaintGreen.paa);
+ hiddenSelectionsTextures[] = {QPATHTOF(data\spraycanGreen_co.paa)};
};
class ACE_SpraypaintBlue : ACE_SpraypaintBlack {
displayname = CSTRING(spraypaintBlue);
- picture = QUOTE(PATHTOF(UI\items\itemSpraypaintBlue.paa));
- hiddenSelectionsTextures[] = {QUOTE(PATHTOF(data\spraycanBlue_co.paa))};
+ picture = QPATHTOF(UI\items\itemSpraypaintBlue.paa);
+ hiddenSelectionsTextures[] = {QPATHTOF(data\spraycanBlue_co.paa)};
};
};
diff --git a/addons/tagging/config.cpp b/addons/tagging/config.cpp
index dcd1fb845d..a4161c1862 100644
--- a/addons/tagging/config.cpp
+++ b/addons/tagging/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_SpraypaintBlack", "ACE_SpraypaintRed", "ACE_SpraypaintGreen", "ACE_SpraypaintBlue"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"BaerMitUmlaut","esteldunedain"};
- authorUrl = "https://github.com/BaerMitUmlaut";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"BaerMitUmlaut","esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/tagging/functions/fnc_tag.sqf b/addons/tagging/functions/fnc_tag.sqf
index 43e951629e..c2b4a6601a 100644
--- a/addons/tagging/functions/fnc_tag.sqf
+++ b/addons/tagging/functions/fnc_tag.sqf
@@ -110,6 +110,6 @@ _unit playActionNow "PutDown";
// Tell the server to create the tag and handle its destruction
["createTag", _this] call EFUNC(common,serverEvent);
-}, [_touchingPoint vectorAdd (_surfaceNormal vectorMultiply 0.06), _vectorDirAndUp, _texture, _object, _unit], 0.6] call EFUNC(common,waitAndExecute);
+}, [_touchingPoint vectorAdd (_surfaceNormal vectorMultiply 0.06), _vectorDirAndUp, _texture, _object, _unit], 0.6] call CBA_fnc_waitAndExecute;
true
diff --git a/addons/tagging/functions/fnc_tagTestingThread.sqf b/addons/tagging/functions/fnc_tagTestingThread.sqf
index 0e3bb8075d..ead21f8d91 100644
--- a/addons/tagging/functions/fnc_tagTestingThread.sqf
+++ b/addons/tagging/functions/fnc_tagTestingThread.sqf
@@ -41,5 +41,5 @@ if (GVAR(tagsToTest) isEqualTo []) exitWith {
};
// Schedule for execution again after 5 seconds
-[DFUNC(tagTestingThread), [], 5] call EFUNC(common,waitAndExecute);
+[DFUNC(tagTestingThread), [], 5] call CBA_fnc_waitAndExecute;
GVAR(testingThread) = true;
diff --git a/addons/thermals/config.cpp b/addons/thermals/config.cpp
index 07d19d1b50..b4ad00f41c 100644
--- a/addons/thermals/config.cpp
+++ b/addons/thermals/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"[TF]Nkey"};
- authorUrl = "https://github.com/michail-nikolaev/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"[TF]Nkey"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/trenches/CfgVehicles.hpp b/addons/trenches/CfgVehicles.hpp
index 8e1eb41fd0..9c93e555ac 100644
--- a/addons/trenches/CfgVehicles.hpp
+++ b/addons/trenches/CfgVehicles.hpp
@@ -30,21 +30,21 @@ class CfgVehicles {
displayName = CSTRING(DigEnvelopeSmall);
condition = QUOTE(_player call FUNC(canDigTrench));
//wait a frame to handle "Do When releasing action menu key" option
- statement = QUOTE([ARR_2({_this call FUNC(placeTrench)},[ARR_2(_this select 0,'ACE_envelope_small')])] call EFUNC(common,execNextFrame));
+ statement = QUOTE([ARR_2({_this call FUNC(placeTrench)},[ARR_2(_this select 0,'ACE_envelope_small')])] call CBA_fnc_execNextFrame);
exceptions[] = {};
showDisabled = 0;
priority = 4;
- //icon = PATHTOF(UI\icon_sandbag_ca.paa);
+ //icon = QPATHTOF(UI\icon_sandbag_ca.paa);
};
class GVAR(digEnvelopeBig) {
displayName = CSTRING(DigEnvelopeBig);
condition = QUOTE(_player call FUNC(canDigTrench));
//wait a frame to handle "Do When releasing action menu key" option
- statement = QUOTE([ARR_2({_this call FUNC(placeTrench)},[ARR_2(_this select 0,'ACE_envelope_big')])] call EFUNC(common,execNextFrame));
+ statement = QUOTE([ARR_2({_this call FUNC(placeTrench)},[ARR_2(_this select 0,'ACE_envelope_big')])] call CBA_fnc_execNextFrame);
exceptions[] = {};
showDisabled = 0;
priority = 4;
- //icon = PATHTOF(UI\icon_sandbag_ca.paa);
+ //icon = QPATHTOF(UI\icon_sandbag_ca.paa);
};
};
};
@@ -55,7 +55,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam);
displayName = CSTRING(EnvelopeSmallName);
descriptionShort = CSTRING(EnevlopeSmallDescription);
- model = QUOTE(PATHTOEF(apl,ace_envelope_small4.p3d));
+ model = QPATHTOEF(apl,ace_envelope_small4.p3d);
scope = 2;
GVAR(diggingDuration) = 20;
GVAR(removalDuration) = 12;
@@ -71,7 +71,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam);
displayName = CSTRING(EnvelopeBigName);
descriptionShort = CSTRING(EnevlopeBigDescription);
- model = QUOTE(PATHTOEF(apl,ace_envelope_big4.p3d));
+ model = QPATHTOEF(apl,ace_envelope_big4.p3d);
scope = 2;
GVAR(diggingDuration) = 25;
GVAR(removalDuration) = 15;
@@ -87,12 +87,12 @@ class CfgVehicles {
class ACE_envelope_small_NoGeo: ACE_envelope_small {
scope = 1;
//@todo: replace by a no geo model
- model = QUOTE(PATHTOEF(apl,ace_envelope_small4_nogeo.p3d));
+ model = QPATHTOEF(apl,ace_envelope_small4_nogeo.p3d);
};
class ACE_envelope_big_NoGeo: ACE_envelope_big {
scope = 1;
//@todo: replace by a no geo model
- model = QUOTE(PATHTOEF(apl,ace_envelope_big4_nogeo.p3d));
+ model = QPATHTOEF(apl,ace_envelope_big4_nogeo.p3d);
};
class Box_NATO_Support_F;
diff --git a/addons/trenches/CfgWeapons.hpp b/addons/trenches/CfgWeapons.hpp
index 5b20e9e4c1..9f9049360a 100644
--- a/addons/trenches/CfgWeapons.hpp
+++ b/addons/trenches/CfgWeapons.hpp
@@ -6,8 +6,8 @@ class CfgWeapons {
author = ECSTRING(common,ACETeam);
displayName = CSTRING(EntrenchingToolName);
descriptionShort = CSTRING(EntrenchingToolDescription);
- model = QUOTE(PATHTOEF(apl,ace_entrchtool.p3d));
- picture = QUOTE(PATHTOF(ui\w_entrchtool_ca.paa));
+ model = QPATHTOEF(apl,ace_entrchtool.p3d);
+ picture = QPATHTOF(ui\w_entrchtool_ca.paa);
scope = 2;
class ItemInfo: InventoryItem_Base_F {
mass = 10;
diff --git a/addons/trenches/config.cpp b/addons/trenches/config.cpp
index e1b14fa37c..d6afd2f9d1 100644
--- a/addons/trenches/config.cpp
+++ b/addons/trenches/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_EntrenchingTool"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"Grey", "esteldunedain"};
- authorUrl = "";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Grey", "esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/trenches/functions/fnc_continueDiggingTrench.sqf b/addons/trenches/functions/fnc_continueDiggingTrench.sqf
index 223dc42df6..954eed1ca3 100644
--- a/addons/trenches/functions/fnc_continueDiggingTrench.sqf
+++ b/addons/trenches/functions/fnc_continueDiggingTrench.sqf
@@ -84,7 +84,7 @@ for "_i" from _progressLeft to 10 do {
private _vectorDiffZ = 1 - (_i / 10);
private _delay = _digTime * ((_i / 10) - _actualProgress);
private _progress = _i / 10;
- [DFUNC(setTrenchPlacement), [_unit, _trench, _trenchId, _basePos vectorDiff [0, 0, _vectorDiffZ], _vecDirAndUp, _progress], _delay] call EFUNC(common,waitAndExecute);
+ [DFUNC(setTrenchPlacement), [_unit, _trench, _trenchId, _basePos vectorDiff [0, 0, _vectorDiffZ], _vecDirAndUp, _progress], _delay] call CBA_fnc_waitAndExecute;
};
// Play animation
diff --git a/addons/trenches/functions/fnc_removeTrench.sqf b/addons/trenches/functions/fnc_removeTrench.sqf
index dd51bbbae5..53059f34bf 100644
--- a/addons/trenches/functions/fnc_removeTrench.sqf
+++ b/addons/trenches/functions/fnc_removeTrench.sqf
@@ -70,7 +70,7 @@ for "_i" from _progressLeft to 10 do {
private _delay = _removeTime * ((_i / 10) - (1 - _actualProgress));
private _progress = 1 - (_i / 10);
- [DFUNC(setTrenchPlacement), [_unit, _trench, _trenchId, _basePos vectorDiff [0, 0, _vectorDiffZ], _vecDirAndUp, _progress], _delay] call EFUNC(common,waitAndExecute);
+ [DFUNC(setTrenchPlacement), [_unit, _trench, _trenchId, _basePos vectorDiff [0, 0, _vectorDiffZ], _vecDirAndUp, _progress], _delay] call CBA_fnc_waitAndExecute;
};
// Play animation
diff --git a/addons/tripod/CfgVehicles.hpp b/addons/tripod/CfgVehicles.hpp
index 418b32e550..b30500ab00 100644
--- a/addons/tripod/CfgVehicles.hpp
+++ b/addons/tripod/CfgVehicles.hpp
@@ -11,7 +11,7 @@ class CfgVehicles {
statement = QUOTE([ARR_2(_player,'ACE_Tripod')] call FUNC(place));
showDisabled = 0;
priority = 2;
- icon = PATHTOF(UI\w_sniper_tripod_ca.paa);
+ icon = QPATHTOF(UI\w_sniper_tripod_ca.paa);
};
};
};
@@ -46,7 +46,7 @@ class CfgVehicles {
EGVAR(dragging,dragDirection) = 0;
scope = 2;
displayName = CSTRING(DisplayName);
- model = PATHTOF(data\sniper_tripod.p3d);
+ model = QPATHTOF(data\sniper_tripod.p3d);
class AnimationSources {
class slide_down_tripod {
@@ -76,7 +76,7 @@ class CfgVehicles {
showDisabled = 0;
exceptions[] = {};
priority = 5;
- icon = PATHTOF(UI\w_sniper_tripod_ca.paa);
+ icon = QPATHTOF(UI\w_sniper_tripod_ca.paa);
};
class ACE_Adjust {
@@ -85,11 +85,11 @@ class CfgVehicles {
distance = 5;
condition = "true";
//wait a frame to handle "Do When releasing action menu key" option:
- statement = QUOTE([ARR_2({_this call FUNC(adjust)}, [ARR_2(_player,_target)])] call EFUNC(common,execNextFrame));
+ statement = QUOTE([ARR_2({_this call FUNC(adjust)}, [ARR_2(_player,_target)])] call CBA_fnc_execNextFrame);
showDisabled = 0;
exceptions[] = {};
priority = 5;
- icon = PATHTOF(UI\w_sniper_tripod_ca.paa);
+ icon = QPATHTOF(UI\w_sniper_tripod_ca.paa);
};
};
};
diff --git a/addons/tripod/CfgWeapons.hpp b/addons/tripod/CfgWeapons.hpp
index 6322ef1906..c83336e7a0 100644
--- a/addons/tripod/CfgWeapons.hpp
+++ b/addons/tripod/CfgWeapons.hpp
@@ -7,10 +7,10 @@ class CfgWeapons {
scope = 2;
displayName = CSTRING(DisplayName);
descriptionShort = "";
- model = PATHTOF(data\w_sniper_tripod.p3d);
- picture = PATHTOF(UI\w_sniper_tripod_ca.paa);
-
- class ItemInfo: InventoryItem_Base_F {
+ model = QPATHTOF(data\w_sniper_tripod.p3d);
+ picture = QPATHTOF(UI\w_sniper_tripod_ca.paa);
+
+ class ItemInfo: InventoryItem_Base_F {
mass = 40;
};
};
diff --git a/addons/tripod/config.cpp b/addons/tripod/config.cpp
index 80379019c3..1ee297e0e0 100644
--- a/addons/tripod/config.cpp
+++ b/addons/tripod/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_Tripod"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"Rocko", "Scubaman3D", "Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Rocko", "Scubaman3D", "Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/tripod/functions/fnc_pickup.sqf b/addons/tripod/functions/fnc_pickup.sqf
index 886aa5087e..9a291480ad 100644
--- a/addons/tripod/functions/fnc_pickup.sqf
+++ b/addons/tripod/functions/fnc_pickup.sqf
@@ -30,4 +30,4 @@ if (stance _unit == "STAND") then {
deleteVehicle _tripod;
[_unit, "ACE_Tripod"] call EFUNC(common,addToInventory);
-}, [_unit, _tripod], 1] call EFUNC(common,waitAndExecute);
+}, [_unit, _tripod], 1] call CBA_fnc_waitAndExecute;
diff --git a/addons/tripod/functions/fnc_place.sqf b/addons/tripod/functions/fnc_place.sqf
index 3168703f31..64dc0786e8 100644
--- a/addons/tripod/functions/fnc_place.sqf
+++ b/addons/tripod/functions/fnc_place.sqf
@@ -53,4 +53,4 @@ if (stance _unit == "STAND") then {
};
}, 0, [_tripod, _direction, _position]] call CBA_fnc_addPerFrameHandler;
-}, [_unit], 1] call EFUNC(common,waitAndExecute);
+}, [_unit], 1] call CBA_fnc_waitAndExecute;
diff --git a/addons/ui/ACE_Settings.hpp b/addons/ui/ACE_Settings.hpp
index 89ddc8d35d..e6c3e5e496 100644
--- a/addons/ui/ACE_Settings.hpp
+++ b/addons/ui/ACE_Settings.hpp
@@ -45,7 +45,7 @@ class ACE_Settings {
};
// ADVANCED
- // Upper Weapon Info
+ // Soldier
class GVAR(weaponName) {
category = CSTRING(Category);
displayName = CSTRING(WeaponName);
@@ -70,8 +70,6 @@ class ACE_Settings {
value = 1;
isClientSettable = 1;
};
-
- // Lower Weapon Info
class GVAR(ammoType) {
category = CSTRING(Category);
displayName = CSTRING(AmmoType);
@@ -85,7 +83,7 @@ class ACE_Settings {
displayName = CSTRING(AmmoCount);
description = CSTRING(RequiresSoldierVehicleWeaponInfo);
typeName = "BOOL";
- value = 0;
+ value = 1;
isClientSettable = 1;
};
class GVAR(magCount) {
@@ -122,14 +120,12 @@ class ACE_Settings {
};
class GVAR(weaponLowerInfoBackground) {
category = CSTRING(Category);
- displayName = CSTRING(WeaponLowerInfoBackground); //todo
+ displayName = CSTRING(WeaponLowerInfoBackground);
description = CSTRING(RequiresSoldierVehicleWeaponInfo);
typeName = "BOOL";
value = 1;
isClientSettable = 1;
};
-
- // Stance
class GVAR(stance) {
category = CSTRING(Category);
displayName = CSTRING(Stance);
@@ -138,8 +134,6 @@ class ACE_Settings {
value = 1;
isClientSettable = 1;
};
-
- // Stamina Bar
class GVAR(staminaBar) {
category = CSTRING(Category);
displayName = CSTRING(StaminaBar);
@@ -149,6 +143,88 @@ class ACE_Settings {
isClientSettable = 1;
};
+ // Gunner
+ class GVAR(gunnerWeaponName) {
+ category = CSTRING(Category);
+ displayName = CSTRING(GunnerWeaponName);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ value = 1;
+ isClientSettable = 1;
+ };
+ class GVAR(gunnerWeaponNameBackground) {
+ category = CSTRING(Category);
+ displayName = CSTRING(GunnerWeaponNameBackground);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ value = 1;
+ isClientSettable = 1;
+ };
+ class GVAR(gunnerFiringMode) {
+ category = CSTRING(Category);
+ displayName = CSTRING(GunnerFiringMode);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ value = 1;
+ isClientSettable = 1;
+ };
+ class GVAR(gunnerAmmoType) {
+ category = CSTRING(Category);
+ displayName = CSTRING(GunnerAmmoType);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ value = 1;
+ isClientSettable = 1;
+ };
+ class GVAR(gunnerAmmoCount) {
+ category = CSTRING(Category);
+ displayName = CSTRING(GunnerAmmoCount);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ value = 1;
+ isClientSettable = 1;
+ };
+ class GVAR(gunnerMagCount) {
+ category = CSTRING(Category);
+ displayName = CSTRING(GunnerMagCount);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ value = 1;
+ isClientSettable = 1;
+ };
+ class GVAR(gunnerLaunchableName) {
+ category = CSTRING(Category);
+ displayName = CSTRING(gunnerLaunchableName);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ value = 1;
+ isClientSettable = 1;
+ };
+ class GVAR(gunnerLaunchableCount) {
+ category = CSTRING(Category);
+ displayName = CSTRING(gunnerLaunchableCount);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ value = 1;
+ isClientSettable = 1;
+ };
+ class GVAR(gunnerZeroing) {
+ category = CSTRING(Category);
+ displayName = CSTRING(GunnerZeroing);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ value = 1;
+ isClientSettable = 1;
+ };
+ class GVAR(gunnerWeaponLowerInfoBackground) {
+ category = CSTRING(Category);
+ displayName = CSTRING(GunnerWeaponLowerInfoBackground);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ value = 1;
+ isClientSettable = 1;
+ };
+
// Vehicle
class GVAR(vehicleName) {
category = CSTRING(Category);
@@ -206,12 +282,4 @@ class ACE_Settings {
value = 1;
isClientSettable = 1;
};
- class GVAR(vehicleGunnerWeapon) {
- category = CSTRING(Category);
- displayName = CSTRING(VehicleGunnerWeapon);
- description = CSTRING(RequiresSoldierVehicleWeaponInfo);
- typeName = "BOOL";
- value = 1;
- isClientSettable = 1;
- };
};
diff --git a/addons/ui/ACE_UI.hpp b/addons/ui/ACE_UI.hpp
new file mode 100644
index 0000000000..008d97db9b
--- /dev/null
+++ b/addons/ui/ACE_UI.hpp
@@ -0,0 +1,180 @@
+#define ANYWHERE 0
+#define GROUND_ONLY 1
+#define VEHICLE_ONLY 2
+
+class ACE_UI {
+ class weaponName {
+ idd = 300;
+ elements[] = {118};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class weaponNameBackground {
+ idd = 300;
+ elements[] = {1001, 1008};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class firingMode {
+ idd = 300;
+ elements[] = {187, 1203};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class ammoType {
+ idd = 300;
+ elements[] = {155};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class ammoCount {
+ idd = 300;
+ elements[] = {184};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class magCount {
+ idd = 300;
+ elements[] = {185};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class throwableName {
+ idd = 300;
+ elements[] = {152};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class throwableCount {
+ idd = 300;
+ elements[] = {151};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class zeroing {
+ idd = 300;
+ elements[] = {168};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class weaponLowerInfoBackground {
+ idd = 300;
+ elements[] = {1202};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class staminaBar {
+ idd = 305;
+ elements[] = {193};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class stance {
+ idd = 303;
+ elements[] = {188, 1201};
+ location = GROUND_ONLY;
+ class conditions {};
+ };
+ class gunnerWeaponName {
+ idd = 300;
+ elements[] = {118};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class gunnerWeaponNameBackground {
+ idd = 300;
+ elements[] = {1001, 1008};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class gunnerFiringMode {
+ idd = 300;
+ elements[] = {187, 1203};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class gunnerAmmoType {
+ idd = 300;
+ elements[] = {155};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class gunnerAmmoCount {
+ idd = 300;
+ elements[] = {184};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class gunnerMagCount {
+ idd = 300;
+ elements[] = {185};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class gunnerLaunchableName {
+ idd = 300;
+ elements[] = {152};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class gunnerLaunchableCount {
+ idd = 300;
+ elements[] = {151};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class gunnerZeroing {
+ idd = 300;
+ elements[] = {168};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class gunnerWeaponLowerInfoBackground {
+ idd = 300;
+ elements[] = {1202};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class vehicleName {
+ idd = 300;
+ elements[] = {120};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class vehicleNameBackground {
+ idd = 300;
+ elements[] = {1000, 1013};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class vehicleFuelBar {
+ idd = 300;
+ elements[] = {113, 1202};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class vehicleSpeed {
+ idd = 300;
+ elements[] = {121, 1004, 1006};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class vehicleAltitude {
+ idd = 300;
+ elements[] = {122, 1005, 1014};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class vehicleDamage {
+ idd = 300;
+ elements[] = {111};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+ class vehicleInfoBackground {
+ idd = 300;
+ elements[] = {1200};
+ location = VEHICLE_ONLY;
+ class conditions {};
+ };
+};
diff --git a/addons/ui/CfgVehicles.hpp b/addons/ui/CfgVehicles.hpp
index 391b3627eb..0b1cc9b2a9 100644
--- a/addons/ui/CfgVehicles.hpp
+++ b/addons/ui/CfgVehicles.hpp
@@ -44,7 +44,7 @@ class CfgVehicles {
};
// ADVANCED
- // Upper Weapon Info
+ // Soldier
class weaponName {
displayName = CSTRING(WeaponName);
description = CSTRING(RequiresSoldierVehicleWeaponInfo);
@@ -63,8 +63,6 @@ class CfgVehicles {
typeName = "BOOL";
defaultValue = 1;
};
-
- // Lower Weapon Info
class ammoType {
displayName = CSTRING(AmmoType);
description = CSTRING(RequiresSoldierVehicleWeaponInfo);
@@ -75,7 +73,7 @@ class CfgVehicles {
displayName = CSTRING(AmmoCount);
description = CSTRING(RequiresSoldierVehicleWeaponInfo);
typeName = "BOOL";
- defaultValue = 0;
+ defaultValue = 1;
};
class magCount {
displayName = CSTRING(MagCount);
@@ -107,16 +105,12 @@ class CfgVehicles {
typeName = "BOOL";
defaultValue = 1;
};
-
- // Stance
class stance {
displayName = CSTRING(Stance);
description = CSTRING(RequiresSoldierVehicleWeaponInfo);
typeName = "BOOL";
defaultValue = 1;
};
-
- // Stamina Bar
class staminaBar {
displayName = CSTRING(StaminaBar);
description = CSTRING(RequiresSoldierVehicleWeaponInfo);
@@ -124,6 +118,68 @@ class CfgVehicles {
defaultValue = 1;
};
+ // Gunner
+ class gunnerWeaponName {
+ displayName = CSTRING(GunnerWeaponName);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ defaultValue = 1;
+ };
+ class gunnerWeaponNameBackground {
+ displayName = CSTRING(GunnerWeaponNameBackground);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ defaultValue = 1;
+ };
+ class gunnerFiringMode {
+ displayName = CSTRING(GunnerFiringMode);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ defaultValue = 1;
+ };
+ class gunnerAmmoType {
+ displayName = CSTRING(GunnerAmmoType);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ defaultValue = 1;
+ };
+ class gunnerAmmoCount {
+ displayName = CSTRING(GunnerAmmoCount);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ defaultValue = 1;
+ };
+ class gunnerMagCount {
+ displayName = CSTRING(GunnerMagCount);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ defaultValue = 1;
+ };
+ class gunnerLaunchableName {
+ displayName = CSTRING(gunnerLaunchableName);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ defaultValue = 1;
+ };
+ class gunnerLaunchableCount {
+ displayName = CSTRING(gunnerLaunchableCount);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ defaultValue = 1;
+ };
+ class gunnerZeroing {
+ displayName = CSTRING(GunnerZeroing);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ defaultValue = 1;
+ };
+ class gunnerWeaponLowerInfoBackground {
+ displayName = CSTRING(GunnerWeaponLowerInfoBackground);
+ description = CSTRING(RequiresSoldierVehicleWeaponInfo);
+ typeName = "BOOL";
+ defaultValue = 1;
+ };
+
// Vehicle
class vehicleName {
displayName = CSTRING(VehicleName);
@@ -167,12 +223,6 @@ class CfgVehicles {
typeName = "BOOL";
defaultValue = 1;
};
- class vehicleGunnerWeapon {
- displayName = CSTRING(VehicleGunnerWeapon);
- description = CSTRING(RequiresSoldierVehicleWeaponInfo);
- typeName = "BOOL";
- defaultValue = 1;
- };
};
class ModuleDescription {
description = CSTRING(ModuleDescription);
diff --git a/addons/ui/XEH_clientInit.sqf b/addons/ui/XEH_clientInit.sqf
index d228696fc0..72a754a28e 100644
--- a/addons/ui/XEH_clientInit.sqf
+++ b/addons/ui/XEH_clientInit.sqf
@@ -13,28 +13,27 @@ if (!hasInterface) exitWith {};
// Defaults must be set in this EH to make sure controls are activated and advanced settings can be modified
private _force = [true, false] select (GVAR(allowSelectiveUI));
{
- [_x select 0, _x select 1, _x select 2, _force] call FUNC(setAdvancedElement);
- } forEach ELEMENTS_ADVANCED;
+ private _name = configName _x;
+ [_name, missionNamespace getVariable (format [QGVAR(%1), _name]), false, _force] call FUNC(setAdvancedElement);
+ } forEach ("true" configClasses (configFile >> "ACE_UI"));
+
+ // Execute local event for when it's safe to modify UI through this API
+ // infoDisplayChanged can execute multiple times, make sure it only happens once
+ if (!GVAR(interfaceInitialized)) then {
+ ["InterfaceInitialized", []] call EFUNC(common,localEvent);
+ GVAR(interfaceInitialized) = true;
+ };
}] call EFUNC(common,addEventHandler);
// On changing settings
["SettingChanged", {
params ["_name"];
- // Selective UI Basic
if (_name in ELEMENTS_BASIC) then {
[false] call FUNC(setElements);
+ } else {
+ [_name select [7], missionNamespace getVariable _name, true] call FUNC(setAdvancedElement);
};
-
- // Selective UI Advanced
- {
- _x params ["_idd", "_elements", "_elementName"];
-
- if (_name == _elementName) then {
- [_idd, _elements, _elementName] call FUNC(setAdvancedElement);
- TRACE_2("Setting Changed",_name,_elementName);
- };
- } forEach ELEMENTS_ADVANCED;
}] call EFUNC(common,addEventHandler);
}] call EFUNC(common,addEventHandler);
diff --git a/addons/ui/XEH_preInit.sqf b/addons/ui/XEH_preInit.sqf
index 4a5638fc03..8646227653 100644
--- a/addons/ui/XEH_preInit.sqf
+++ b/addons/ui/XEH_preInit.sqf
@@ -5,5 +5,6 @@ ADDON = false;
#include "XEH_PREP.hpp"
GVAR(elementsSet) = [];
+GVAR(interfaceInitialized) = false;
ADDON = true;
diff --git a/addons/ui/config.cpp b/addons/ui/config.cpp
index d6fbed61ae..0b680ca136 100644
--- a/addons/ui/config.cpp
+++ b/addons/ui/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"VKing", "Jonpas"};
- authorUrl = "http://ace3mod.com/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"VKing", "Jonpas"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
@@ -15,6 +16,7 @@ class CfgPatches {
#include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp"
#include "ACE_Settings.hpp"
+#include "ACE_UI.hpp"
#include "RscChat.hpp"
#include "RscVignette.hpp"
diff --git a/addons/ui/functions/fnc_moduleInit.sqf b/addons/ui/functions/fnc_moduleInit.sqf
index 10f18f94f3..6bfe29392f 100644
--- a/addons/ui/functions/fnc_moduleInit.sqf
+++ b/addons/ui/functions/fnc_moduleInit.sqf
@@ -18,12 +18,13 @@ params ["_logic", "_units", "_activated"];
if (!_activated) exitWith {};
+[_logic, QGVAR(allowSelectiveUI), "allowSelectiveUI"] call EFUNC(common,readSettingFromModule);
+
// Basic
if (isArray (missionConfigFile >> "showHUD")) then {
// HUD visibility is hardcoded in mission config and showHUD command is overriden
ACE_LOGINFO("User Interface Module Failed to Initialize Basic settings - showHUD overriden in mission config!");
} else {
- [_logic, QGVAR(allowSelectiveUI), "allowSelectiveUI"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(soldierVehicleWeaponInfo), "soldierVehicleWeaponInfo"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(vehicleRadar), "vehicleRadar"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(vehicleCompass), "vehicleCompass"] call EFUNC(common,readSettingFromModule);
@@ -44,6 +45,16 @@ if (isArray (missionConfigFile >> "showHUD")) then {
[_logic, QGVAR(weaponLowerInfoBackground), "weaponLowerInfoBackground"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(stance), "stance"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(staminaBar), "staminaBar"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(gunnerWeaponName), "gunnerWeaponName"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(gunnerWeaponNameBackground), "gunnerWeaponNameBackground"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(gunnerFiringMode), "gunnerFiringMode"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(gunnerAmmoType), "gunnerAmmoType"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(gunnerAmmoCount), "gunnerAmmoCount"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(gunnerMagCount), "gunnerMagCount"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(gunnerLaunchableName), "gunnerLaunchableName"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(gunnerLaunchableCount), "gunnerLaunchableCount"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(gunnerZeroing), "gunnerZeroing"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(gunnerWeaponLowerInfoBackground), "gunnerWeaponLowerInfoBackground"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(vehicleName), "vehicleName"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(vehicleNameBackground), "vehicleNameBackground"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(vehicleFuelBar), "vehicleFuelBar"] call EFUNC(common,readSettingFromModule);
@@ -51,6 +62,5 @@ if (isArray (missionConfigFile >> "showHUD")) then {
[_logic, QGVAR(vehicleAltitude), "vehicleAltitude"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(vehicleDamage), "vehicleDamage"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(vehicleInfoBackground), "vehicleInfoBackground"] call EFUNC(common,readSettingFromModule);
-[_logic, QGVAR(vehicleGunnerWeapon), "vehicleGunnerWeapon"] call EFUNC(common,readSettingFromModule);
ACE_LOGINFO_1("User Interface Module Initialized. Allow client modifications: %1",GVAR(allowSelectiveUI));
diff --git a/addons/ui/functions/fnc_setAdvancedElement.sqf b/addons/ui/functions/fnc_setAdvancedElement.sqf
index 2ef88d5868..3f087d8974 100644
--- a/addons/ui/functions/fnc_setAdvancedElement.sqf
+++ b/addons/ui/functions/fnc_setAdvancedElement.sqf
@@ -3,33 +3,65 @@
* Sets advanced visible element of the UI using displays and controls.
*
* Arguments:
- * 0: Element IDD
- * 1: Element IDCs
- * 2: Show/Hide Element OR Element ACE Settings Variable
+ * 0: Element Name
+ * 1: Show/Hide Element
+ * 2: Show Hint
* 3: Force change even when disallowed (default: false)
*
* Return Value:
* Successfully Set
*
* Example:
- * [303, [188], true, false] call ace_ui_fnc_setAdvancedElement
+ * ["ace_ui_ammoCount", true, false] call ace_ui_fnc_setAdvancedElement
*
* Public: No
*/
#include "script_component.hpp"
-params ["_idd", "_elements", "_show", ["_force", false, [true]] ];
-
-if (_elementInfo in GVAR(elementsSet)) exitWith {};
+params ["_element", "_show", ["_showHint", false, [true]], ["_force", false, [true]] ];
if (!_force && {!GVAR(allowSelectiveUI)}) exitWith {
- [LSTRING(Disallowed), 2] call EFUNC(common,displayTextStructured)
+ [LSTRING(Disallowed), 2] call EFUNC(common,displayTextStructured);
+ false
};
-// Get show/hide boolean from mission namespace if it's a string
-if (typeName _show == "STRING") then {
- _show = missionNamespace getVariable _show;
+private _config = configFile >> "ACE_UI" >> _element;
+
+// Exit if main vehicle type condition not fitting
+private _location = getNumber (_config >> "location"); // (0-both, 1-ground, 2-vehicle)
+private _currentLocation = ACE_player == vehicle ACE_player;
+if ((_currentLocation && _location == 2) || (!_currentLocation && _location == 1)) exitWith {false};
+
+private _idd = getNumber (_config >> "idd");
+private _elements = getArray (_config >> "elements");
+
+// Get setting from config API
+{
+ private _condition = call compile (getText _x);
+ if !(_condition) exitWith {
+ TRACE_2("Condition False",_element,_x);
+ // Display and print info which component forced the element except for default vehicle check
+ if (_showHint) then {
+ [LSTRING(Disabled), 2] call EFUNC(common,displayTextStructured);
+ };
+ _show = false;
+ };
+} forEach (configProperties [_config >> "conditions"]);
+
+// Get setting from scripted API
+if (!_force) then {
+ private _index = GVAR(elementsSet) find [_element, _show];
+ if (_index == -1) then {
+ _index = GVAR(elementsSet) find [_element, !_show];
+ if (_index != -1) then {
+ if (_showHint) then {
+ [LSTRING(Disabled), 2] call EFUNC(common,displayTextStructured);
+ };
+ _show = ((GVAR(elementsSet)) select _index) select 1;
+ };
+ };
};
+
_show = [1, 0] select _show;
// Disable/Enable elements
@@ -40,7 +72,7 @@ private _success = false;
// Loop through IGUI displays as they can be present several times for some reason
{
if (_idd == ctrlIDD _x) then {
- TRACE_3("Setting Element Visibility",_show,_idd,_idc);
+ //TRACE_3("Setting Element Visibility",_show,_idd,_idc);
(_x displayCtrl _idc) ctrlSetFade _show;
(_x displayCtrl _idc) ctrlCommit 0;
diff --git a/addons/ui/functions/fnc_setElementVisibility.sqf b/addons/ui/functions/fnc_setElementVisibility.sqf
index b019c4c081..8fbe4cf294 100644
--- a/addons/ui/functions/fnc_setElementVisibility.sqf
+++ b/addons/ui/functions/fnc_setElementVisibility.sqf
@@ -3,16 +3,15 @@
* Setter for toggling advanced element visibility.
*
* Arguments:
- * 0: Set/Unset (default: true)
- * 1: Element IDD (default: 0)
- * 2: Element IDCs (default: [])
- * 3: Show/Hide Element OR Element ACE Settings Variable (default: false)
+ * 0: Set/Unset
+ * 1: Element Name
+ * 2: Show/Hide Element (default: false)
*
* Return Value:
* None
*
* Example:
- * [true, 300, [188], false] call ace_ui_fnc_setElementVisibility
+ * [true, "ace_ui_ammoCount", false] call ace_ui_fnc_setElementVisibility
*
* Public: Yes
*/
@@ -20,30 +19,43 @@
params [
["_set", true, [true]],
- ["_idd", 0, [0]],
- ["_elements", [], [[]]],
- ["_show", false, [true, ""]]
+ ["_element", "", [""]],
+ ["_show", false, [true]]
];
+// Verify element is bound
+if (!isClass (configFile >> "ACE_UI" >> _element)) exitWith {
+ ACE_LOGWARNING_1("Element '%1' does not exist",_element);
+};
+
private _return = false;
if (_set) then {
- if ([_idd, _elements] in GVAR(elementsSet)) exitWith { TRACE_3("Element already set",_idd,_elements,GVAR(elementsSet)); };
+ // Exit if element has been set from another component, print warning if after interface initialization
+ if ([_element, _show] in GVAR(elementsSet) || {[_element, !_show] in GVAR(elementsSet)}) exitWith {
+ if (GVAR(interfaceInitialized)) then {
+ ACE_LOGWARNING_2("Element '%1' already set in %2",_element,GVAR(elementsSet));
+ };
+ };
- TRACE_4("Setting element",_idd,_elements,_show,GVAR(elementsSet));
- private _success = [_idd, _elements, _show] call FUNC(setAdvancedElement);
+ TRACE_3("Setting element",_element,_show,GVAR(elementsSet));
+ private _success = [_element, _show, false, true] call FUNC(setAdvancedElement);
if (_success) then {
- GVAR(elementsSet) pushBack [_idd, _elements];
+ GVAR(elementsSet) pushBack [_element, _show];
_return = true;
};
} else {
- if ([_idd, _elements] in GVAR(elementsSet)) then {
- TRACE_4("Setting element",_idd,_elements,_show,GVAR(elementsSet));
- [_idd, _elements, _show] call FUNC(setAdvancedElement);
+ if ([_element, _show] in GVAR(elementsSet) || {[_element, !_show] in GVAR(elementsSet)}) then {
+ TRACE_3("Unsetting element",_element,_show,GVAR(elementsSet));
- private _index = GVAR(elementsSet) find [_idd, _elements];
+ private _index = GVAR(elementsSet) find [_element, _show];
+ if (_index == -1) then {
+ _index = GVAR(elementsSet) find [_element, !_show];
+ };
GVAR(elementsSet) deleteAt _index;
+
+ [_element, _show, false, true] call FUNC(setAdvancedElement);
_return = true;
};
};
diff --git a/addons/ui/functions/fnc_setElements.sqf b/addons/ui/functions/fnc_setElements.sqf
index 64b716ee29..877489aba4 100644
--- a/addons/ui/functions/fnc_setElements.sqf
+++ b/addons/ui/functions/fnc_setElements.sqf
@@ -19,10 +19,6 @@ if (isArray (missionConfigFile >> "showHUD")) exitWith {};
params [ ["_force", false, [true]] ];
-if (!_force && {!GVAR(allowSelectiveUI)}) exitWith {
- [LSTRING(Disallowed), 2] call EFUNC(common,displayTextStructured);
-};
-
["ui", [
true,
GVAR(soldierVehicleWeaponInfo),
diff --git a/addons/ui/script_component.hpp b/addons/ui/script_component.hpp
index a7410a49b8..d57697867c 100644
--- a/addons/ui/script_component.hpp
+++ b/addons/ui/script_component.hpp
@@ -17,51 +17,26 @@
#include "\z\ace\addons\main\script_macros.hpp"
-// Elements
+// Basic Elements
#define ELEMENTS_BASIC [QGVAR(soldierVehicleWeaponInfo), QGVAR(vehicleRadar), QGVAR(vehicleCompass), QGVAR(commandMenu), QGVAR(groupBar)]
-// IDD, IDC, Element (must be string to compare to changed setting name)
-#define ELEMENTS_ADVANCED [ \
- [300, [118], QGVAR(weaponName)], \
- [300, [1001, 1008], QGVAR(weaponNameBackground)], \
- [300, [187, 1203], QGVAR(firingMode)], \
- [300, [155], QGVAR(ammoType)], \
- [300, [184], QGVAR(ammoCount)], \
- [300, [185], QGVAR(magCount)], \
- [300, [152], QGVAR(throwableName)], \
- [300, [151], QGVAR(throwableCount)], \
- [300, [1202], QGVAR(weaponLowerInfoBackground)], \
- [300, [168], QGVAR(zeroing)], \
- [305, [193], QGVAR(staminaBar)], \
- [303, [188, 1201], QGVAR(stance)], \
- [300, [120], QGVAR(vehicleName)], \
- [300, [1000, 1013], QGVAR(vehicleNameBackground)], \
- [300, [113, 1202], QGVAR(vehicleFuelBar)], \
- [300, [121, 1004, 1006], QGVAR(vehicleSpeed)], \
- [300, [122, 1005, 1014], QGVAR(vehicleAltitude)], \
- [300, [111], QGVAR(vehicleDamage)], \
- [300, [1200], QGVAR(vehicleInfoBackground)], \
- [300, [150], QGVAR(vehicleGunnerWeapon)] \
-]
-
-
/*
RscUnitInfo = 300
--------------------
-118 (Weapon Name)
-+ 1001 (Weapon Name Background 1/2)
-+ 1008 (Weapon Name Background 2/2)
+118 (Weapon Name / Gunner Weapon Name)
++ 1001 (Weapon Name Background 1/2 / Gunner Weapon Name Background 1/2)
++ 1008 (Weapon Name Background 2/2 / Gunner Weapon Name Background 2/2)
-187 (Firing Mode)
-+ 1203 (Firing Mode Background)
+187 (Firing Mode / Gunner Firing Mode)
++ 1203 (Firing Mode Background / Gunner Firing Mode Background)
-155 (Ammo Type)
-184 (Ammo Count) - disabled in config by ace_reload
-185 (Magazine Count)
-152 (Grenade/Flare Type)
-151 (Grenade/Flare Count)
-1202 (Lower Weapon Info Background)
-168 (Zeroing)
+155 (Ammo Type / Gunner Ammo Type)
+184 (Ammo Count / Gunner Ammo Count)
+185 (Magazine Count / Gunner Magazine Count)
+152 (Grenade/Flare Type / Launchable Type)
+151 (Grenade/Flare Count / Launchable Count)
+1202 (Lower Weapon Info Background / Gunner Lower Weapon Info Background)
+168 (Zeroing / Gunner Zeroing)
120 (Vehicle Name)
@@ -80,8 +55,6 @@ RscUnitInfo = 300
111 (Vehicle Damage)
1200 (Vehicle Info Background)
-150 (Vehicle Gunner Weapon)
-
RscStanceInfo = 303
--------------------
diff --git a/addons/ui/stringtable.xml b/addons/ui/stringtable.xml
index 74cd89e93b..61dcc18ee7 100644
--- a/addons/ui/stringtable.xml
+++ b/addons/ui/stringtable.xml
@@ -87,6 +87,36 @@
Stamina Bar
Panel výdrže
+
+ Gunner Weapon Name
+
+
+ Gunner Weapon Name Background
+
+
+ Gunner Firing Mode
+
+
+ Gunner Ammo Type
+
+
+ Gunner Ammo Count
+
+
+ Gunner Magazine Count
+
+
+ Gunner Launchable Type
+
+
+ Gunner Launchable Count
+
+
+ Gunner Zeroing
+
+
+ Gunner Weapon Lower Info Background
+
Vehicle Name
Název vozidla
@@ -115,17 +145,16 @@
Vehicle Info Background
Info o vozidle v pozadÃ
-
- Vehicle Gunner Weapon
- Střelcova zbraň ve vozidle
-
- Requires Soldier/Vehicle/Weapons Information.
+ Requires Soldier/Vehicle/Weapon Information.
Vyžaduje informace o Vojákovi/Vozidlu/Zbrani
Modifying User Interface is disabled.
Změna uživatelského rozhranà je zakázána.
+
+ Cannot modify a forced User Interface element.
+
-
\ No newline at end of file
+
diff --git a/addons/vector/CfgWeapons.hpp b/addons/vector/CfgWeapons.hpp
index a28321bdc8..cc2cf985f6 100644
--- a/addons/vector/CfgWeapons.hpp
+++ b/addons/vector/CfgWeapons.hpp
@@ -5,9 +5,9 @@ class CfgWeapons {
author = ECSTRING(common,ACETeam);
displayName = CSTRING(VectorName);
descriptionShort = CSTRING(VectorDescription);
- model = PATHTOF(ace_vector.p3d);
- modelOptics = PATHTOF(ace_vector_optics.p3d);
- picture = PATHTOF(UI\ace_vector_x_ca.paa);
+ model = QPATHTOF(ace_vector.p3d);
+ modelOptics = QPATHTOF(ace_vector_optics.p3d);
+ picture = QPATHTOF(UI\ace_vector_x_ca.paa);
visionMode[] = {"Normal","NVG"};
opticsZoomMax = 0.06621;
opticsZoomMin = 0.06621;
diff --git a/addons/vector/config.cpp b/addons/vector/config.cpp
index e4cdf9a55b..66b2a5c7ea 100644
--- a/addons/vector/config.cpp
+++ b/addons/vector/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_Vector", "ACE_VectorDay"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Ghost","Hamburger SV","commy2","bux578"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ghost","Hamburger SV","commy2","bux578"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/vector/functions/fnc_convertToTexturesDegree.sqf b/addons/vector/functions/fnc_convertToTexturesDegree.sqf
index a028012cec..b94c2edf64 100644
--- a/addons/vector/functions/fnc_convertToTexturesDegree.sqf
+++ b/addons/vector/functions/fnc_convertToTexturesDegree.sqf
@@ -32,25 +32,25 @@ if (GVAR(useMil)) then {
_digit1 = floor (_number / 100);
_digit2 = floor (_number / 10) - _digit1 * 10;
_digit3 = _number mod 10;
- _digit4 = QUOTE(PATHTOF(rsc\vector_degree.paa));
+ _digit4 = QPATHTOF(rsc\vector_degree.paa);
if (_isNegative) then {
if (_digit1 == 0) then {
if (_digit2 == 0) then {
_digit1 = "";
- _digit2 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
+ _digit2 = QPATHTOF(rsc\vector_minus.paa);
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
} else {
- _digit1 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
+ _digit1 = QPATHTOF(rsc\vector_minus.paa);
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
};
} else {
- _digit1 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit2 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit3 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit4 = QUOTE(PATHTOF(rsc\vector_minus.paa));
+ _digit1 = QPATHTOF(rsc\vector_minus.paa);
+ _digit2 = QPATHTOF(rsc\vector_minus.paa);
+ _digit3 = QPATHTOF(rsc\vector_minus.paa);
+ _digit4 = QPATHTOF(rsc\vector_minus.paa);
};
} else {
@@ -59,16 +59,16 @@ if (GVAR(useMil)) then {
if (_digit2 == 0) then {
_digit1 = "";
_digit2 = "";
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
} else {
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
};
} else {
- _digit1 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit1];
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
+ _digit1 = format [QPATHTOF(rsc\vector_%1.paa), _digit1];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
};
};
diff --git a/addons/vector/functions/fnc_convertToTexturesDistance.sqf b/addons/vector/functions/fnc_convertToTexturesDistance.sqf
index ea0d054e5e..eb39febfe8 100644
--- a/addons/vector/functions/fnc_convertToTexturesDistance.sqf
+++ b/addons/vector/functions/fnc_convertToTexturesDistance.sqf
@@ -15,7 +15,7 @@ _isNegative = _number < 0;
_number = abs _number;
if (_number >= 10000) exitWith {
- [QUOTE(PATHTOF(rsc\vector_minus.paa)), QUOTE(PATHTOF(rsc\vector_minus.paa)), QUOTE(PATHTOF(rsc\vector_minus.paa)), QUOTE(PATHTOF(rsc\vector_minus.paa))] // return
+ [QPATHTOF(rsc\vector_minus.paa), QPATHTOF(rsc\vector_minus.paa), QPATHTOF(rsc\vector_minus.paa), QPATHTOF(rsc\vector_minus.paa)] // return
};
private ["_digit1", "_digit2", "_digit3", "_digit4"];
@@ -32,25 +32,25 @@ if (_isNegative) then {
if (_digit3 == 0) then {
_digit1 = "";
_digit2 = "";
- _digit3 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit3 = QPATHTOF(rsc\vector_minus.paa);
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
} else {
_digit1 = "";
- _digit2 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = QPATHTOF(rsc\vector_minus.paa);
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
- _digit1 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit1 = QPATHTOF(rsc\vector_minus.paa);
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
- _digit1 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit2 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit3 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit4 = QUOTE(PATHTOF(rsc\vector_minus.paa));
+ _digit1 = QPATHTOF(rsc\vector_minus.paa);
+ _digit2 = QPATHTOF(rsc\vector_minus.paa);
+ _digit3 = QPATHTOF(rsc\vector_minus.paa);
+ _digit4 = QPATHTOF(rsc\vector_minus.paa);
};
} else {
@@ -61,24 +61,24 @@ if (_isNegative) then {
_digit1 = "";
_digit2 = "";
_digit3 = "";
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
} else {
_digit1 = "";
_digit2 = "";
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
- _digit1 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit1];
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit1 = format [QPATHTOF(rsc\vector_%1.paa), _digit1];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
};
diff --git a/addons/vector/functions/fnc_convertToTexturesFOS.sqf b/addons/vector/functions/fnc_convertToTexturesFOS.sqf
index 6141e40fa8..7a77a3aab8 100644
--- a/addons/vector/functions/fnc_convertToTexturesFOS.sqf
+++ b/addons/vector/functions/fnc_convertToTexturesFOS.sqf
@@ -16,7 +16,7 @@ _isNegative = _number < 0;
_number = abs _number;
if (_number > 9999) exitWith {
- [QUOTE(PATHTOF(rsc\vector_minus.paa)), QUOTE(PATHTOF(rsc\vector_minus.paa)), QUOTE(PATHTOF(rsc\vector_minus.paa)), QUOTE(PATHTOF(rsc\vector_minus.paa)), QUOTE(PATHTOF(rsc\vector_minus.paa))] // return
+ [QPATHTOF(rsc\vector_minus.paa), QPATHTOF(rsc\vector_minus.paa), QPATHTOF(rsc\vector_minus.paa), QPATHTOF(rsc\vector_minus.paa), QPATHTOF(rsc\vector_minus.paa)] // return
};
private ["_digit0", "_digit1", "_digit2", "_digit3", "_digit4"];
@@ -35,31 +35,31 @@ switch (_coordinate) do {
if (_digit1 == 0) then {
if (_digit2 == 0) then {
if (_digit3 == 0) then {
- _digit0 = QUOTE(PATHTOF(rsc\vector_l.paa));
+ _digit0 = QPATHTOF(rsc\vector_l.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
_digit3 = "";
_digit4 = "";
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_l.paa));
+ _digit0 = QPATHTOF(rsc\vector_l.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
_digit4 = "";
};
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_l.paa));
+ _digit0 = QPATHTOF(rsc\vector_l.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
_digit0 = "";
- _digit1 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit2 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit3 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit4 = QUOTE(PATHTOF(rsc\vector_minus.paa));
+ _digit1 = QPATHTOF(rsc\vector_minus.paa);
+ _digit2 = QPATHTOF(rsc\vector_minus.paa);
+ _digit3 = QPATHTOF(rsc\vector_minus.paa);
+ _digit4 = QPATHTOF(rsc\vector_minus.paa);
};
} else {
@@ -67,31 +67,31 @@ switch (_coordinate) do {
if (_digit1 == 0) then {
if (_digit2 == 0) then {
if (_digit3 == 0) then {
- _digit0 = QUOTE(PATHTOF(rsc\vector_r.paa));
+ _digit0 = QPATHTOF(rsc\vector_r.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
_digit3 = "";
_digit4 = "";
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_r.paa));
+ _digit0 = QPATHTOF(rsc\vector_r.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
_digit4 = "";
};
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_r.paa));
+ _digit0 = QPATHTOF(rsc\vector_r.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
_digit0 = "";
- _digit1 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit2 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit3 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit4 = QUOTE(PATHTOF(rsc\vector_minus.paa));
+ _digit1 = QPATHTOF(rsc\vector_minus.paa);
+ _digit2 = QPATHTOF(rsc\vector_minus.paa);
+ _digit3 = QPATHTOF(rsc\vector_minus.paa);
+ _digit4 = QPATHTOF(rsc\vector_minus.paa);
};
};
@@ -104,31 +104,31 @@ switch (_coordinate) do {
if (_digit1 == 0) then {
if (_digit2 == 0) then {
if (_digit3 == 0) then {
- _digit0 = QUOTE(PATHTOF(rsc\vector_d.paa));
+ _digit0 = QPATHTOF(rsc\vector_d.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
_digit3 = "";
_digit4 = "";
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_d.paa));
+ _digit0 = QPATHTOF(rsc\vector_d.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
_digit4 = "";
};
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_d.paa));
+ _digit0 = QPATHTOF(rsc\vector_d.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
_digit0 = "";
- _digit1 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit2 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit3 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit4 = QUOTE(PATHTOF(rsc\vector_minus.paa));
+ _digit1 = QPATHTOF(rsc\vector_minus.paa);
+ _digit2 = QPATHTOF(rsc\vector_minus.paa);
+ _digit3 = QPATHTOF(rsc\vector_minus.paa);
+ _digit4 = QPATHTOF(rsc\vector_minus.paa);
};
} else {
@@ -136,31 +136,31 @@ switch (_coordinate) do {
if (_digit1 == 0) then {
if (_digit2 == 0) then {
if (_digit3 == 0) then {
- _digit0 = QUOTE(PATHTOF(rsc\vector_a.paa));
+ _digit0 = QPATHTOF(rsc\vector_a.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
_digit3 = "";
_digit4 = "";
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_a.paa));
+ _digit0 = QPATHTOF(rsc\vector_a.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
_digit4 = "";
};
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_a.paa));
+ _digit0 = QPATHTOF(rsc\vector_a.paa);
_digit1 = "";
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
_digit0 = "";
- _digit1 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit2 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit3 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit4 = QUOTE(PATHTOF(rsc\vector_minus.paa));
+ _digit1 = QPATHTOF(rsc\vector_minus.paa);
+ _digit2 = QPATHTOF(rsc\vector_minus.paa);
+ _digit3 = QPATHTOF(rsc\vector_minus.paa);
+ _digit4 = QPATHTOF(rsc\vector_minus.paa);
};
};
@@ -173,31 +173,31 @@ switch (_coordinate) do {
if (_digit1 == 0) then {
if (_digit2 == 0) then {
if (_digit3 == 0) then {
- _digit0 = QUOTE(PATHTOF(rsc\vector_u.paa));
- _digit1 = QUOTE(PATHTOF(rsc\vector_p.paa));
+ _digit0 = QPATHTOF(rsc\vector_u.paa);
+ _digit1 = QPATHTOF(rsc\vector_p.paa);
_digit2 = "";
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
_digit4 = "";
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_u.paa));
- _digit1 = QUOTE(PATHTOF(rsc\vector_p.paa));
+ _digit0 = QPATHTOF(rsc\vector_u.paa);
+ _digit1 = QPATHTOF(rsc\vector_p.paa);
_digit2 = "";
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_u.paa));
- _digit1 = QUOTE(PATHTOF(rsc\vector_p.paa));
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit0 = QPATHTOF(rsc\vector_u.paa);
+ _digit1 = QPATHTOF(rsc\vector_p.paa);
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
_digit0 = "";
- _digit1 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit2 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit3 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit4 = QUOTE(PATHTOF(rsc\vector_minus.paa));
+ _digit1 = QPATHTOF(rsc\vector_minus.paa);
+ _digit2 = QPATHTOF(rsc\vector_minus.paa);
+ _digit3 = QPATHTOF(rsc\vector_minus.paa);
+ _digit4 = QPATHTOF(rsc\vector_minus.paa);
};
} else {
@@ -205,31 +205,31 @@ switch (_coordinate) do {
if (_digit1 == 0) then {
if (_digit2 == 0) then {
if (_digit3 == 0) then {
- _digit0 = QUOTE(PATHTOF(rsc\vector_d.paa));
- _digit1 = QUOTE(PATHTOF(rsc\vector_n.paa));
+ _digit0 = QPATHTOF(rsc\vector_d.paa);
+ _digit1 = QPATHTOF(rsc\vector_n.paa);
_digit2 = "";
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
_digit4 = "";
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_d.paa));
- _digit1 = QUOTE(PATHTOF(rsc\vector_n.paa));
+ _digit0 = QPATHTOF(rsc\vector_d.paa);
+ _digit1 = QPATHTOF(rsc\vector_n.paa);
_digit2 = "";
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
- _digit0 = QUOTE(PATHTOF(rsc\vector_d.paa));
- _digit1 = QUOTE(PATHTOF(rsc\vector_n.paa));
- _digit2 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit2];
- _digit3 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit3];
- _digit4 = format [QUOTE(PATHTOF(rsc\vector_%1.paa)), _digit4];
+ _digit0 = QPATHTOF(rsc\vector_d.paa);
+ _digit1 = QPATHTOF(rsc\vector_n.paa);
+ _digit2 = format [QPATHTOF(rsc\vector_%1.paa), _digit2];
+ _digit3 = format [QPATHTOF(rsc\vector_%1.paa), _digit3];
+ _digit4 = format [QPATHTOF(rsc\vector_%1.paa), _digit4];
};
} else {
_digit0 = "";
- _digit1 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit2 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit3 = QUOTE(PATHTOF(rsc\vector_minus.paa));
- _digit4 = QUOTE(PATHTOF(rsc\vector_minus.paa));
+ _digit1 = QPATHTOF(rsc\vector_minus.paa);
+ _digit2 = QPATHTOF(rsc\vector_minus.paa);
+ _digit3 = QPATHTOF(rsc\vector_minus.paa);
+ _digit4 = QPATHTOF(rsc\vector_minus.paa);
};
};
@@ -238,7 +238,7 @@ switch (_coordinate) do {
// trap errors
if !([_digit0, _digit1, _digit2, _digit3, _digit4] isEqualTypeAll "") exitWith {
- [QUOTE(PATHTOF(rsc\vector_minus.paa)), QUOTE(PATHTOF(rsc\vector_minus.paa)), QUOTE(PATHTOF(rsc\vector_minus.paa)), QUOTE(PATHTOF(rsc\vector_minus.paa)), QUOTE(PATHTOF(rsc\vector_minus.paa))] // return
+ [QPATHTOF(rsc\vector_minus.paa), QPATHTOF(rsc\vector_minus.paa), QPATHTOF(rsc\vector_minus.paa), QPATHTOF(rsc\vector_minus.paa), QPATHTOF(rsc\vector_minus.paa)] // return
};
[_digit0, _digit1, _digit2, _digit3, _digit4]
diff --git a/addons/vector/functions/fnc_onKeyDown.sqf b/addons/vector/functions/fnc_onKeyDown.sqf
index 9fa51e9068..feb706bc02 100644
--- a/addons/vector/functions/fnc_onKeyDown.sqf
+++ b/addons/vector/functions/fnc_onKeyDown.sqf
@@ -40,19 +40,19 @@ switch (_this select 0) do {
// handle input in option menu
if (GVAR(currentMode) == "settings") exitWith {
- if (ACE_diagTime < GVAR(keyDownTimeMenu) + 1) exitWith {};
+ if (diag_tickTime < GVAR(keyDownTimeMenu) + 1) exitWith {};
- if (ACE_diagTime < GVAR(keyDownTimeAzimuth) + 0.5) then {
+ if (diag_tickTime < GVAR(keyDownTimeAzimuth) + 0.5) then {
GVAR(keyDownTabCountAzimuth) = (GETGVAR(keyDownTabCountAzimuth,0)) + 1;
} else {
GVAR(keyDownTabCountAzimuth) = 1;
};
- GVAR(keyDownTimeAzimuth) = ACE_diagTime;
+ GVAR(keyDownTimeAzimuth) = diag_tickTime;
};
if (GVAR(currentMode) == "config") exitWith {
- if (ACE_diagTime < GVAR(keyDownTimeMenu) + 0.5) exitWith {};
+ if (diag_tickTime < GVAR(keyDownTimeMenu) + 0.5) exitWith {};
["config"] call FUNC(nextMode);
};
@@ -66,30 +66,30 @@ switch (_this select 0) do {
[false] call FUNC(showP1);
// handle 5 times clicking
- if (ACE_diagTime < GVAR(keyDownTimeAzimuth) + 0.5) then {
+ if (diag_tickTime < GVAR(keyDownTimeAzimuth) + 0.5) then {
GVAR(keyDownTabCountAzimuth) = (GETGVAR(keyDownTabCountAzimuth,0)) + 1;
- GVAR(keyDownTimeAzimuth) = ACE_diagTime;
+ GVAR(keyDownTimeAzimuth) = diag_tickTime;
} else {
GVAR(keyDownTabCountAzimuth) = 1;
};
// open settings menu
if (GVAR(keyDownTabCountAzimuth) == 5) exitWith {
- GVAR(keyDownTimeMenu) = ACE_diagTime;
- GVAR(keyDownTimeAzimuth) = ACE_diagTime;
+ GVAR(keyDownTimeMenu) = diag_tickTime;
+ GVAR(keyDownTimeAzimuth) = diag_tickTime;
GVAR(keyDownTabCountAzimuth) = 0;
GVAR(configTemp) = [GVAR(useFeet), GVAR(useMil)];
["settings"] call FUNC(showText);
"settings" call _fnc_setPFH;
};
- if (ACE_diagTime < GVAR(keyDownTimeAzimuth) + 0.5) exitWith {
+ if (diag_tickTime < GVAR(keyDownTimeAzimuth) + 0.5) exitWith {
"azimuth+inclination" call _fnc_setPFH;
};
- GVAR(keyDownTimeAzimuth) = ACE_diagTime;
+ GVAR(keyDownTimeAzimuth) = diag_tickTime;
- if (ACE_diagTime > GVAR(keyDownTimeDistance) + 0.5) then {
+ if (diag_tickTime > GVAR(keyDownTimeDistance) + 0.5) then {
if !(GETGVAR(isKeyDownDistance,false)) then {
["distance"] call FUNC(clearDisplay);
"azimuth" call _fnc_setPFH;
@@ -110,19 +110,19 @@ switch (_this select 0) do {
// handle input in option menu
if (GVAR(currentMode) == "config") exitWith {
- if (ACE_diagTime < GVAR(keyDownTimeMenu) + 0.5) exitWith {};
+ if (diag_tickTime < GVAR(keyDownTimeMenu) + 0.5) exitWith {};
- if (ACE_diagTime < GVAR(keyDownTimeDistance) + 0.5) then {
+ if (diag_tickTime < GVAR(keyDownTimeDistance) + 0.5) then {
GVAR(keyDownTabCountDistance) = (GETGVAR(keyDownTabCountDistance,0)) + 1;
} else {
GVAR(keyDownTabCountDistance) = 1;
};
- GVAR(keyDownTimeDistance) = ACE_diagTime;
+ GVAR(keyDownTimeDistance) = diag_tickTime;
};
if (GVAR(currentMode) == "settings") exitWith {
- if (ACE_diagTime < GVAR(keyDownTimeMenu) + 0.5) exitWith {};
+ if (diag_tickTime < GVAR(keyDownTimeMenu) + 0.5) exitWith {};
["settings"] call FUNC(nextMode);
};
@@ -141,30 +141,30 @@ switch (_this select 0) do {
[false] call FUNC(showP1);
// handle 5 times clicking
- if (ACE_diagTime < GVAR(keyDownTimeDistance) + 0.5) then {
+ if (diag_tickTime < GVAR(keyDownTimeDistance) + 0.5) then {
GVAR(keyDownTabCountDistance) = (GETGVAR(keyDownTabCountDistance,0)) + 1;
- GVAR(keyDownTimeDistance) = ACE_diagTime;
+ GVAR(keyDownTimeDistance) = diag_tickTime;
} else {
GVAR(keyDownTabCountDistance) = 1;
};
// open config menu
if (GVAR(keyDownTabCountDistance) == 5) exitWith {
- GVAR(keyDownTimeMenu) = ACE_diagTime;
- GVAR(keyDownTimeDistance) = ACE_diagTime;
+ GVAR(keyDownTimeMenu) = diag_tickTime;
+ GVAR(keyDownTimeDistance) = diag_tickTime;
GVAR(keyDownTabCountDistance) = 0;
GVAR(configTemp) = GVAR(modeReticle);
["config"] call FUNC(showText);
"config" call _fnc_setPFH;
};
- if (ACE_diagTime < GVAR(keyDownTimeDistance) + 0.5) exitWith {
+ if (diag_tickTime < GVAR(keyDownTimeDistance) + 0.5) exitWith {
"height+distance" call _fnc_setPFH;
};
- GVAR(keyDownTimeDistance) = ACE_diagTime;
+ GVAR(keyDownTimeDistance) = diag_tickTime;
- if (ACE_diagTime > GVAR(keyDownTimeAzimuth) + 0.5) then {
+ if (diag_tickTime > GVAR(keyDownTimeAzimuth) + 0.5) then {
if !(GETGVAR(isKeyDownAzimuth,false)) then {
["azimuth"] call FUNC(clearDisplay);
"distance" call _fnc_setPFH;
diff --git a/addons/vector/functions/fnc_onKeyHold.sqf b/addons/vector/functions/fnc_onKeyHold.sqf
index 517cf3ea37..ee6d80e2de 100644
--- a/addons/vector/functions/fnc_onKeyHold.sqf
+++ b/addons/vector/functions/fnc_onKeyHold.sqf
@@ -21,7 +21,7 @@ switch (_this select 0) do {
case ("azimuth"): {
private "_isReady";
- _isReady = ACE_diagTime > GVAR(keyDownTimeAzimuth) + 0.2;
+ _isReady = diag_tickTime > GVAR(keyDownTimeAzimuth) + 0.2;
[false] call FUNC(showCenter);
@@ -42,7 +42,7 @@ switch (_this select 0) do {
case ("distance"): {
private "_isReady";
- _isReady = ACE_diagTime > GVAR(keyDownTimeDistance) + 0.5;
+ _isReady = diag_tickTime > GVAR(keyDownTimeDistance) + 0.5;
[_isReady] call FUNC(showCenter);
@@ -66,7 +66,7 @@ switch (_this select 0) do {
call FUNC(showAzimuth);
private "_isReady";
- _isReady = ACE_diagTime > GVAR(keyDownTimeDistance) + 0.5;
+ _isReady = diag_tickTime > GVAR(keyDownTimeDistance) + 0.5;
[_isReady] call FUNC(showCenter);
@@ -89,7 +89,7 @@ switch (_this select 0) do {
case ("azimuth+inclination"): {
private "_isReady";
- _isReady = ACE_diagTime > GVAR(keyDownTimeAzimuth) + 0.2;
+ _isReady = diag_tickTime > GVAR(keyDownTimeAzimuth) + 0.2;
[false] call FUNC(showCenter);
@@ -110,7 +110,7 @@ switch (_this select 0) do {
case ("height+distance"): {
private "_isReady";
- _isReady = ACE_diagTime > GVAR(keyDownTimeDistance) + 0.5;
+ _isReady = diag_tickTime > GVAR(keyDownTimeDistance) + 0.5;
[_isReady] call FUNC(showCenter);
@@ -132,7 +132,7 @@ switch (_this select 0) do {
case ("relative_distance"): {
private "_isReady";
- _isReady = ACE_diagTime > GVAR(keyDownTimeAzimuth) + 0.5;
+ _isReady = diag_tickTime > GVAR(keyDownTimeAzimuth) + 0.5;
[_isReady] call FUNC(showCenter);
@@ -155,7 +155,7 @@ switch (_this select 0) do {
case ("relative_height+length"): {
private "_isReady";
- _isReady = ACE_diagTime > GVAR(keyDownTimeAzimuth) + 0.5;
+ _isReady = diag_tickTime > GVAR(keyDownTimeAzimuth) + 0.5;
[_isReady] call FUNC(showCenter);
@@ -178,7 +178,7 @@ switch (_this select 0) do {
case ("relative_azimuth+distance"): {
private "_isReady";
- _isReady = ACE_diagTime > GVAR(keyDownTimeDistance) + 0.5;
+ _isReady = diag_tickTime > GVAR(keyDownTimeDistance) + 0.5;
[_isReady] call FUNC(showCenter);
@@ -201,7 +201,7 @@ switch (_this select 0) do {
case ("fall_of_shot"): {
private "_isReady";
- _isReady = ACE_diagTime > GVAR(keyDownTimeDistance) + 0.5;
+ _isReady = diag_tickTime > GVAR(keyDownTimeDistance) + 0.5;
[_isReady] call FUNC(showCenter);
@@ -223,8 +223,8 @@ switch (_this select 0) do {
};
case ("settings"): {
- if (ACE_diagTime < GVAR(keyDownTimeMenu) + 1) exitWith {
- GVAR(keyDownTimeAzimuth) = ACE_diagTime;
+ if (diag_tickTime < GVAR(keyDownTimeMenu) + 1) exitWith {
+ GVAR(keyDownTimeAzimuth) = diag_tickTime;
};
[["meter", "feet"] select (GVAR(configTemp) select 0)] call FUNC(showText);
@@ -247,7 +247,7 @@ switch (_this select 0) do {
};
};
- if (GVAR(keyDownTabCountAzimuth) > 0 && {ACE_diagTime > GVAR(keyDownTimeAzimuth) + 0.5}) exitWith {
+ if (GVAR(keyDownTabCountAzimuth) > 0 && {diag_tickTime > GVAR(keyDownTimeAzimuth) + 0.5}) exitWith {
["clear_left"] call FUNC(showText);
["clear_right"] call FUNC(showText);
@@ -264,8 +264,8 @@ switch (_this select 0) do {
};
case ("config"): {
- if (ACE_diagTime < GVAR(keyDownTimeMenu) + 1) exitWith {
- GVAR(keyDownTimeDistance) = ACE_diagTime;
+ if (diag_tickTime < GVAR(keyDownTimeMenu) + 1) exitWith {
+ GVAR(keyDownTimeDistance) = diag_tickTime;
};
switch (GVAR(configTemp)) do {
@@ -315,7 +315,7 @@ switch (_this select 0) do {
};
};
- if (GVAR(keyDownTabCountDistance) > 0 && {ACE_diagTime > GVAR(keyDownTimeDistance) + 0.5}) exitWith {
+ if (GVAR(keyDownTabCountDistance) > 0 && {diag_tickTime > GVAR(keyDownTimeDistance) + 0.5}) exitWith {
["clear_left"] call FUNC(showText);
["clear_right"] call FUNC(showText);
diff --git a/addons/vector/functions/fnc_showCenter.sqf b/addons/vector/functions/fnc_showCenter.sqf
index 1293e1286d..4870b10a69 100644
--- a/addons/vector/functions/fnc_showCenter.sqf
+++ b/addons/vector/functions/fnc_showCenter.sqf
@@ -7,6 +7,6 @@ Shows or hides the vectors center square thingy.
*/
#include "script_component.hpp"
-((GETUVAR(ACE_dlgVector,displayNull)) displayCtrl 1301) ctrlSetText (["", QUOTE(PATHTOF(rsc\vector_center.paa))] select (_this select 0));
+((GETUVAR(ACE_dlgVector,displayNull)) displayCtrl 1301) ctrlSetText (["", QPATHTOF(rsc\vector_center.paa)] select (_this select 0));
[GVAR(illuminate)] call FUNC(illuminate);
diff --git a/addons/vector/functions/fnc_showP1.sqf b/addons/vector/functions/fnc_showP1.sqf
index 73453961c1..27f9063794 100644
--- a/addons/vector/functions/fnc_showP1.sqf
+++ b/addons/vector/functions/fnc_showP1.sqf
@@ -13,9 +13,9 @@ disableSerialization;
_dlgVector = GETUVAR(ACE_dlgVector,displayNull);
if (_this select 0) then {
- (_dlgVector displayCtrl 1321) ctrlSetText QUOTE(PATHTOF(rsc\vector_1.paa));
- (_dlgVector displayCtrl 1322) ctrlSetText QUOTE(PATHTOF(rsc\vector_minus.paa));
- (_dlgVector displayCtrl 1323) ctrlSetText QUOTE(PATHTOF(rsc\vector_p.paa));
+ (_dlgVector displayCtrl 1321) ctrlSetText QPATHTOF(rsc\vector_1.paa);
+ (_dlgVector displayCtrl 1322) ctrlSetText QPATHTOF(rsc\vector_minus.paa);
+ (_dlgVector displayCtrl 1323) ctrlSetText QPATHTOF(rsc\vector_p.paa);
(_dlgVector displayCtrl 1324) ctrlSetText "";
} else {
(_dlgVector displayCtrl 1321) ctrlSetText "";
diff --git a/addons/vector/functions/fnc_showReticle.sqf b/addons/vector/functions/fnc_showReticle.sqf
index d44adfb68d..bcd565774f 100644
--- a/addons/vector/functions/fnc_showReticle.sqf
+++ b/addons/vector/functions/fnc_showReticle.sqf
@@ -7,6 +7,6 @@ Shows or hides the electronic reticle.
*/
#include "script_component.hpp"
-((GETUVAR(ACE_dlgVector,displayNull)) displayCtrl 1302) ctrlSetText (["", QUOTE(PATHTOF(rsc\vector_crosshair.paa))] select (_this select 0));
+((GETUVAR(ACE_dlgVector,displayNull)) displayCtrl 1302) ctrlSetText (["", QPATHTOF(rsc\vector_crosshair.paa)] select (_this select 0));
[GVAR(illuminate)] call FUNC(illuminate);
diff --git a/addons/vector/functions/fnc_showText.sqf b/addons/vector/functions/fnc_showText.sqf
index 68dbe9d642..f9d85d84e3 100644
--- a/addons/vector/functions/fnc_showText.sqf
+++ b/addons/vector/functions/fnc_showText.sqf
@@ -10,123 +10,123 @@ switch (_this select 0) do {
case ("config"): {
(_dlgVector displayCtrl 1315) ctrlSetText "";
(_dlgVector displayCtrl 1316) ctrlSetText "";
- (_dlgVector displayCtrl 1317) ctrlSetText QUOTE(PATHTOF(rsc\vector_c.paa));
- (_dlgVector displayCtrl 1318) ctrlSetText QUOTE(PATHTOF(rsc\vector_o.paa));
- (_dlgVector displayCtrl 1319) ctrlSetText QUOTE(PATHTOF(rsc\vector_n.paa));
- (_dlgVector displayCtrl 1310) ctrlSetText QUOTE(PATHTOF(rsc\vector_f.paa));
- (_dlgVector displayCtrl 1311) ctrlSetText QUOTE(PATHTOF(rsc\vector_i.paa));
- (_dlgVector displayCtrl 1312) ctrlSetText QUOTE(PATHTOF(rsc\vector_g.paa));
+ (_dlgVector displayCtrl 1317) ctrlSetText QPATHTOF(rsc\vector_c.paa);
+ (_dlgVector displayCtrl 1318) ctrlSetText QPATHTOF(rsc\vector_o.paa);
+ (_dlgVector displayCtrl 1319) ctrlSetText QPATHTOF(rsc\vector_n.paa);
+ (_dlgVector displayCtrl 1310) ctrlSetText QPATHTOF(rsc\vector_f.paa);
+ (_dlgVector displayCtrl 1311) ctrlSetText QPATHTOF(rsc\vector_i.paa);
+ (_dlgVector displayCtrl 1312) ctrlSetText QPATHTOF(rsc\vector_g.paa);
(_dlgVector displayCtrl 1313) ctrlSetText "";
(_dlgVector displayCtrl 1314) ctrlSetText "";
};
case ("settings"): {
(_dlgVector displayCtrl 1315) ctrlSetText "";
- (_dlgVector displayCtrl 1316) ctrlSetText QUOTE(PATHTOF(rsc\vector_u.paa));
- (_dlgVector displayCtrl 1317) ctrlSetText QUOTE(PATHTOF(rsc\vector_n.paa));
- (_dlgVector displayCtrl 1318) ctrlSetText QUOTE(PATHTOF(rsc\vector_i.paa));
- (_dlgVector displayCtrl 1319) ctrlSetText QUOTE(PATHTOF(rsc\vector_t.paa));
- (_dlgVector displayCtrl 1310) ctrlSetText QUOTE(PATHTOF(rsc\vector_5.paa));
- (_dlgVector displayCtrl 1311) ctrlSetText QUOTE(PATHTOF(rsc\vector_e.paa));
- (_dlgVector displayCtrl 1312) ctrlSetText QUOTE(PATHTOF(rsc\vector_t.paa));
- (_dlgVector displayCtrl 1313) ctrlSetText QUOTE(PATHTOF(rsc\vector_t.paa));
+ (_dlgVector displayCtrl 1316) ctrlSetText QPATHTOF(rsc\vector_u.paa);
+ (_dlgVector displayCtrl 1317) ctrlSetText QPATHTOF(rsc\vector_n.paa);
+ (_dlgVector displayCtrl 1318) ctrlSetText QPATHTOF(rsc\vector_i.paa);
+ (_dlgVector displayCtrl 1319) ctrlSetText QPATHTOF(rsc\vector_t.paa);
+ (_dlgVector displayCtrl 1310) ctrlSetText QPATHTOF(rsc\vector_5.paa);
+ (_dlgVector displayCtrl 1311) ctrlSetText QPATHTOF(rsc\vector_e.paa);
+ (_dlgVector displayCtrl 1312) ctrlSetText QPATHTOF(rsc\vector_t.paa);
+ (_dlgVector displayCtrl 1313) ctrlSetText QPATHTOF(rsc\vector_t.paa);
(_dlgVector displayCtrl 1314) ctrlSetText "";
};
case ("nigt"): {
(_dlgVector displayCtrl 1315) ctrlSetText "";
- (_dlgVector displayCtrl 1316) ctrlSetText QUOTE(PATHTOF(rsc\vector_n.paa));
- (_dlgVector displayCtrl 1317) ctrlSetText QUOTE(PATHTOF(rsc\vector_i.paa));
- (_dlgVector displayCtrl 1318) ctrlSetText QUOTE(PATHTOF(rsc\vector_g.paa));
- (_dlgVector displayCtrl 1319) ctrlSetText QUOTE(PATHTOF(rsc\vector_t.paa));
+ (_dlgVector displayCtrl 1316) ctrlSetText QPATHTOF(rsc\vector_n.paa);
+ (_dlgVector displayCtrl 1317) ctrlSetText QPATHTOF(rsc\vector_i.paa);
+ (_dlgVector displayCtrl 1318) ctrlSetText QPATHTOF(rsc\vector_g.paa);
+ (_dlgVector displayCtrl 1319) ctrlSetText QPATHTOF(rsc\vector_t.paa);
};
case ("eret"): {
(_dlgVector displayCtrl 1315) ctrlSetText "";
- (_dlgVector displayCtrl 1316) ctrlSetText QUOTE(PATHTOF(rsc\vector_e.paa));
- (_dlgVector displayCtrl 1317) ctrlSetText QUOTE(PATHTOF(rsc\vector_r.paa));
- (_dlgVector displayCtrl 1318) ctrlSetText QUOTE(PATHTOF(rsc\vector_e.paa));
- (_dlgVector displayCtrl 1319) ctrlSetText QUOTE(PATHTOF(rsc\vector_t.paa));
+ (_dlgVector displayCtrl 1316) ctrlSetText QPATHTOF(rsc\vector_e.paa);
+ (_dlgVector displayCtrl 1317) ctrlSetText QPATHTOF(rsc\vector_r.paa);
+ (_dlgVector displayCtrl 1318) ctrlSetText QPATHTOF(rsc\vector_e.paa);
+ (_dlgVector displayCtrl 1319) ctrlSetText QPATHTOF(rsc\vector_t.paa);
};
case ("on"): {
- (_dlgVector displayCtrl 1310) ctrlSetText QUOTE(PATHTOF(rsc\vector_o.paa));
- (_dlgVector displayCtrl 1311) ctrlSetText QUOTE(PATHTOF(rsc\vector_n.paa));
+ (_dlgVector displayCtrl 1310) ctrlSetText QPATHTOF(rsc\vector_o.paa);
+ (_dlgVector displayCtrl 1311) ctrlSetText QPATHTOF(rsc\vector_n.paa);
(_dlgVector displayCtrl 1312) ctrlSetText "";
(_dlgVector displayCtrl 1313) ctrlSetText "";
(_dlgVector displayCtrl 1314) ctrlSetText "";
};
case ("off"): {
- (_dlgVector displayCtrl 1310) ctrlSetText QUOTE(PATHTOF(rsc\vector_o.paa));
- (_dlgVector displayCtrl 1311) ctrlSetText QUOTE(PATHTOF(rsc\vector_f.paa));
- (_dlgVector displayCtrl 1312) ctrlSetText QUOTE(PATHTOF(rsc\vector_f.paa));
+ (_dlgVector displayCtrl 1310) ctrlSetText QPATHTOF(rsc\vector_o.paa);
+ (_dlgVector displayCtrl 1311) ctrlSetText QPATHTOF(rsc\vector_f.paa);
+ (_dlgVector displayCtrl 1312) ctrlSetText QPATHTOF(rsc\vector_f.paa);
(_dlgVector displayCtrl 1313) ctrlSetText "";
(_dlgVector displayCtrl 1314) ctrlSetText "";
};
case ("deg"): {
(_dlgVector displayCtrl 1315) ctrlSetText "";
- (_dlgVector displayCtrl 1316) ctrlSetText QUOTE(PATHTOF(rsc\vector_3.paa));
- (_dlgVector displayCtrl 1317) ctrlSetText QUOTE(PATHTOF(rsc\vector_6.paa));
- (_dlgVector displayCtrl 1318) ctrlSetText QUOTE(PATHTOF(rsc\vector_0.paa));
- (_dlgVector displayCtrl 1319) ctrlSetText QUOTE(PATHTOF(rsc\vector_degree.paa));
+ (_dlgVector displayCtrl 1316) ctrlSetText QPATHTOF(rsc\vector_3.paa);
+ (_dlgVector displayCtrl 1317) ctrlSetText QPATHTOF(rsc\vector_6.paa);
+ (_dlgVector displayCtrl 1318) ctrlSetText QPATHTOF(rsc\vector_0.paa);
+ (_dlgVector displayCtrl 1319) ctrlSetText QPATHTOF(rsc\vector_degree.paa);
};
case ("mil"): {
(_dlgVector displayCtrl 1315) ctrlSetText "";
- (_dlgVector displayCtrl 1316) ctrlSetText QUOTE(PATHTOF(rsc\vector_6.paa));
- (_dlgVector displayCtrl 1317) ctrlSetText QUOTE(PATHTOF(rsc\vector_4.paa));
- (_dlgVector displayCtrl 1318) ctrlSetText QUOTE(PATHTOF(rsc\vector_0.paa));
- (_dlgVector displayCtrl 1319) ctrlSetText QUOTE(PATHTOF(rsc\vector_0.paa));
+ (_dlgVector displayCtrl 1316) ctrlSetText QPATHTOF(rsc\vector_6.paa);
+ (_dlgVector displayCtrl 1317) ctrlSetText QPATHTOF(rsc\vector_4.paa);
+ (_dlgVector displayCtrl 1318) ctrlSetText QPATHTOF(rsc\vector_0.paa);
+ (_dlgVector displayCtrl 1319) ctrlSetText QPATHTOF(rsc\vector_0.paa);
};
case ("meter"): {
- (_dlgVector displayCtrl 1310) ctrlSetText QUOTE(PATHTOF(rsc\vector_5.paa));
- (_dlgVector displayCtrl 1311) ctrlSetText QUOTE(PATHTOF(rsc\vector_1.paa));
- (_dlgVector displayCtrl 1312) ctrlSetText QUOTE(PATHTOF(rsc\vector_minus.paa));
- (_dlgVector displayCtrl 1313) ctrlSetText QUOTE(PATHTOF(rsc\vector_u.paa));
+ (_dlgVector displayCtrl 1310) ctrlSetText QPATHTOF(rsc\vector_5.paa);
+ (_dlgVector displayCtrl 1311) ctrlSetText QPATHTOF(rsc\vector_1.paa);
+ (_dlgVector displayCtrl 1312) ctrlSetText QPATHTOF(rsc\vector_minus.paa);
+ (_dlgVector displayCtrl 1313) ctrlSetText QPATHTOF(rsc\vector_u.paa);
(_dlgVector displayCtrl 1314) ctrlSetText "";
};
case ("feet"): {
- (_dlgVector displayCtrl 1310) ctrlSetText QUOTE(PATHTOF(rsc\vector_f.paa));
- (_dlgVector displayCtrl 1311) ctrlSetText QUOTE(PATHTOF(rsc\vector_e.paa));
- (_dlgVector displayCtrl 1312) ctrlSetText QUOTE(PATHTOF(rsc\vector_e.paa));
- (_dlgVector displayCtrl 1313) ctrlSetText QUOTE(PATHTOF(rsc\vector_t.paa));
+ (_dlgVector displayCtrl 1310) ctrlSetText QPATHTOF(rsc\vector_f.paa);
+ (_dlgVector displayCtrl 1311) ctrlSetText QPATHTOF(rsc\vector_e.paa);
+ (_dlgVector displayCtrl 1312) ctrlSetText QPATHTOF(rsc\vector_e.paa);
+ (_dlgVector displayCtrl 1313) ctrlSetText QPATHTOF(rsc\vector_t.paa);
(_dlgVector displayCtrl 1314) ctrlSetText "";
};
case ("stor"): {
- (_dlgVector displayCtrl 1321) ctrlSetText QUOTE(PATHTOF(rsc\vector_5.paa));
- (_dlgVector displayCtrl 1322) ctrlSetText QUOTE(PATHTOF(rsc\vector_t.paa));
- (_dlgVector displayCtrl 1323) ctrlSetText QUOTE(PATHTOF(rsc\vector_o.paa));
- (_dlgVector displayCtrl 1324) ctrlSetText QUOTE(PATHTOF(rsc\vector_r.paa));
+ (_dlgVector displayCtrl 1321) ctrlSetText QPATHTOF(rsc\vector_5.paa);
+ (_dlgVector displayCtrl 1322) ctrlSetText QPATHTOF(rsc\vector_t.paa);
+ (_dlgVector displayCtrl 1323) ctrlSetText QPATHTOF(rsc\vector_o.paa);
+ (_dlgVector displayCtrl 1324) ctrlSetText QPATHTOF(rsc\vector_r.paa);
};
case ("old_config"): {
(_dlgVector displayCtrl 1315) ctrlSetText "";
(_dlgVector displayCtrl 1316) ctrlSetText "";
- (_dlgVector displayCtrl 1317) ctrlSetText QUOTE(PATHTOF(rsc\vector_o.paa));
- (_dlgVector displayCtrl 1318) ctrlSetText QUOTE(PATHTOF(rsc\vector_1.paa));
- (_dlgVector displayCtrl 1319) ctrlSetText QUOTE(PATHTOF(rsc\vector_d.paa));
- (_dlgVector displayCtrl 1310) ctrlSetText QUOTE(PATHTOF(rsc\vector_c.paa));
- (_dlgVector displayCtrl 1311) ctrlSetText QUOTE(PATHTOF(rsc\vector_o.paa));
- (_dlgVector displayCtrl 1312) ctrlSetText QUOTE(PATHTOF(rsc\vector_n.paa));
- (_dlgVector displayCtrl 1313) ctrlSetText QUOTE(PATHTOF(rsc\vector_f.paa));
+ (_dlgVector displayCtrl 1317) ctrlSetText QPATHTOF(rsc\vector_o.paa);
+ (_dlgVector displayCtrl 1318) ctrlSetText QPATHTOF(rsc\vector_1.paa);
+ (_dlgVector displayCtrl 1319) ctrlSetText QPATHTOF(rsc\vector_d.paa);
+ (_dlgVector displayCtrl 1310) ctrlSetText QPATHTOF(rsc\vector_c.paa);
+ (_dlgVector displayCtrl 1311) ctrlSetText QPATHTOF(rsc\vector_o.paa);
+ (_dlgVector displayCtrl 1312) ctrlSetText QPATHTOF(rsc\vector_n.paa);
+ (_dlgVector displayCtrl 1313) ctrlSetText QPATHTOF(rsc\vector_f.paa);
(_dlgVector displayCtrl 1314) ctrlSetText "";
};
case ("old_settings"): {
(_dlgVector displayCtrl 1315) ctrlSetText "";
(_dlgVector displayCtrl 1316) ctrlSetText "";
- (_dlgVector displayCtrl 1317) ctrlSetText QUOTE(PATHTOF(rsc\vector_o.paa));
- (_dlgVector displayCtrl 1318) ctrlSetText QUOTE(PATHTOF(rsc\vector_1.paa));
- (_dlgVector displayCtrl 1319) ctrlSetText QUOTE(PATHTOF(rsc\vector_d.paa));
- (_dlgVector displayCtrl 1310) ctrlSetText QUOTE(PATHTOF(rsc\vector_u.paa));
- (_dlgVector displayCtrl 1311) ctrlSetText QUOTE(PATHTOF(rsc\vector_n.paa));
- (_dlgVector displayCtrl 1312) ctrlSetText QUOTE(PATHTOF(rsc\vector_i.paa));
- (_dlgVector displayCtrl 1313) ctrlSetText QUOTE(PATHTOF(rsc\vector_t.paa));
+ (_dlgVector displayCtrl 1317) ctrlSetText QPATHTOF(rsc\vector_o.paa);
+ (_dlgVector displayCtrl 1318) ctrlSetText QPATHTOF(rsc\vector_1.paa);
+ (_dlgVector displayCtrl 1319) ctrlSetText QPATHTOF(rsc\vector_d.paa);
+ (_dlgVector displayCtrl 1310) ctrlSetText QPATHTOF(rsc\vector_u.paa);
+ (_dlgVector displayCtrl 1311) ctrlSetText QPATHTOF(rsc\vector_n.paa);
+ (_dlgVector displayCtrl 1312) ctrlSetText QPATHTOF(rsc\vector_i.paa);
+ (_dlgVector displayCtrl 1313) ctrlSetText QPATHTOF(rsc\vector_t.paa);
(_dlgVector displayCtrl 1314) ctrlSetText "";
};
diff --git a/addons/vehiclelock/CfgMagazines.hpp b/addons/vehiclelock/CfgMagazines.hpp
index 62c6fdcec2..28cb00717a 100644
--- a/addons/vehiclelock/CfgMagazines.hpp
+++ b/addons/vehiclelock/CfgMagazines.hpp
@@ -1,7 +1,7 @@
class CfgMagazines {
class CA_Magazine;
class ACE_key_customKeyMagazine: CA_Magazine {
- picture = QUOTE(PATHTOF(ui\keyBlack.paa));
+ picture = QPATHTOF(ui\keyBlack.paa);
displayName = "ACE Vehicle Key"; //!!!CANNOT be localized!!!: because it is used as part of the magazineDetail string
descriptionShort = CSTRING(Item_Custom_Description);
count = 1;
diff --git a/addons/vehiclelock/CfgVehicles.hpp b/addons/vehiclelock/CfgVehicles.hpp
index 873c875f09..5906f05f79 100644
--- a/addons/vehiclelock/CfgVehicles.hpp
+++ b/addons/vehiclelock/CfgVehicles.hpp
@@ -5,14 +5,14 @@
condition = QUOTE(([ARR_2(_player, _target)] call FUNC(hasKeyForVehicle)) && {(locked _target) in [ARR_2(2,3)]}); \
statement = QUOTE([ARR_3('VehicleLock_SetVehicleLock', [_target], [ARR_2(_target,false)])] call EFUNC(common,targetEvent)); \
priority = 0.3; \
- icon = QUOTE(PATHTOF(UI\key_menuIcon_ca.paa)); \
+ icon = QPATHTOF(UI\key_menuIcon_ca.paa); \
}; \
class ACE_lockVehicle { \
displayName = CSTRING(Action_Lock); \
condition = QUOTE(([ARR_2(_player, _target)] call FUNC(hasKeyForVehicle)) && {(locked _target) in [ARR_2(0,1)]}); \
statement = QUOTE([ARR_3('VehicleLock_SetVehicleLock', [_target], [ARR_2(_target,true)])] call EFUNC(common,targetEvent)); \
priority = 0.2; \
- icon = QUOTE(PATHTOF(UI\key_menuIcon_ca.paa)); \
+ icon = QPATHTOF(UI\key_menuIcon_ca.paa); \
}; \
class ACE_lockpickVehicle { \
displayName = CSTRING(Action_Lockpick); \
@@ -29,7 +29,7 @@
condition = QUOTE(([ARR_2(_player, _target)] call FUNC(hasKeyForVehicle)) && {(locked _target) in [ARR_2(2,3)]}); \
statement = QUOTE([ARR_3('VehicleLock_SetVehicleLock', [_target], [ARR_2(_target,false)])] call EFUNC(common,targetEvent)); \
priority = 0.3; \
- icon = QUOTE(PATHTOF(UI\key_menuIcon_ca.paa)); \
+ icon = QPATHTOF(UI\key_menuIcon_ca.paa); \
}; \
class ACE_lockVehicle { \
displayName = CSTRING(Action_Lock); \
@@ -37,7 +37,7 @@
condition = QUOTE(([ARR_2(_player, _target)] call FUNC(hasKeyForVehicle)) && {(locked _target) in [ARR_2(0,1)]}); \
statement = QUOTE([ARR_3('VehicleLock_SetVehicleLock', [_target], [ARR_2(_target,true)])] call EFUNC(common,targetEvent)); \
priority = 0.2; \
- icon = QUOTE(PATHTOF(UI\key_menuIcon_ca.paa)); \
+ icon = QPATHTOF(UI\key_menuIcon_ca.paa); \
}; \
class ACE_lockpickVehicle { \
displayName = CSTRING(Action_Lockpick); \
@@ -75,7 +75,7 @@ class CfgVehicles {
scope = 2;
isGlobal = 0;
isSingular = 1;
- icon = QUOTE(PATHTOF(UI\Icon_Module_VehicleLock_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_VehicleLock_ca.paa);
functionPriority = 0;
class Arguments {
class LockVehicleInventory {
@@ -113,7 +113,7 @@ class CfgVehicles {
function = QFUNC(moduleSync);
scope = 2;
isGlobal = 0;
- icon = QUOTE(PATHTOF(UI\Icon_Module_VehicleKey_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_VehicleKey_ca.paa);
functionPriority = 0;
class Arguments {};
class ModuleDescription: ModuleDescription {
diff --git a/addons/vehiclelock/CfgWeapons.hpp b/addons/vehiclelock/CfgWeapons.hpp
index 0895988737..1d72a5538d 100644
--- a/addons/vehiclelock/CfgWeapons.hpp
+++ b/addons/vehiclelock/CfgWeapons.hpp
@@ -8,7 +8,7 @@ class CfgWeapons {
displayName = "Vehicle Key: Master";
descriptionShort = CSTRING(Item_Master_Description);
model = "\A3\weapons_F\ammo\mag_univ.p3d";
- picture = QUOTE(PATHTOF(ui\keyBlack.paa));
+ picture = QPATHTOF(ui\keyBlack.paa);
scope = 2;
class ItemInfo: InventoryItem_Base_F {
mass = 0;
@@ -17,26 +17,26 @@ class CfgWeapons {
class ACE_key_lockpick: ACE_key_master {
displayName = "Lockpick";
descriptionShort = CSTRING(Item_Lockpick_Description);
- picture = QUOTE(PATHTOF(ui\lockpick.paa));
+ picture = QPATHTOF(ui\lockpick.paa);
};
class ACE_key_west: ACE_key_master {
displayName = "Vehicle Key: West";
descriptionShort = CSTRING(Item_West_Description);
- picture = QUOTE(PATHTOF(ui\keyBlue.paa));
+ picture = QPATHTOF(ui\keyBlue.paa);
};
class ACE_key_east: ACE_key_master {
displayName = "Vehicle Key: East";
descriptionShort = CSTRING(Item_East_Description);
- picture = QUOTE(PATHTOF(ui\keyRed.paa));
+ picture = QPATHTOF(ui\keyRed.paa);
};
class ACE_key_indp: ACE_key_master {
displayName = "Vehicle Key: Independent";
descriptionShort = CSTRING(Item_Indp_Description);
- picture = QUOTE(PATHTOF(ui\keyPurple.paa));
+ picture = QPATHTOF(ui\keyPurple.paa);
};
class ACE_key_civ: ACE_key_master {
displayName = "Vehicle Key: Civilian";
descriptionShort = CSTRING(Item_Civ_Description);
- picture = QUOTE(PATHTOF(ui\keyGreen.paa));
+ picture = QPATHTOF(ui\keyGreen.paa);
};
};
diff --git a/addons/vehiclelock/config.cpp b/addons/vehiclelock/config.cpp
index 9ee1343bc8..942c3959f2 100644
--- a/addons/vehiclelock/config.cpp
+++ b/addons/vehiclelock/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction"};
- author[] = {"PabstMirror"};
+ author = ECSTRING(common,ACETeam);
+ url = ECSTRING(main,URL);
+ authors[] = {"PabstMirror"};
authorUrl = "https://github.com/acemod/ACE3";
VERSION_CONFIG;
};
diff --git a/addons/vehiclelock/functions/fnc_handleVehicleInitPost.sqf b/addons/vehiclelock/functions/fnc_handleVehicleInitPost.sqf
index be23dc8dd9..7cc7cac5f7 100644
--- a/addons/vehiclelock/functions/fnc_handleVehicleInitPost.sqf
+++ b/addons/vehiclelock/functions/fnc_handleVehicleInitPost.sqf
@@ -42,4 +42,4 @@ TRACE_1("params",_vehicle);
};
};
//Delay call until mission start (so everyone has the eventHandler's installed)
-}, [_vehicle], 0.25] call EFUNC(common,waitAndExecute);
+}, [_vehicle], 0.25] call CBA_fnc_waitAndExecute;
diff --git a/addons/vehiclelock/functions/fnc_moduleSync.sqf b/addons/vehiclelock/functions/fnc_moduleSync.sqf
index 27577e4dbe..99e822d53d 100644
--- a/addons/vehiclelock/functions/fnc_moduleSync.sqf
+++ b/addons/vehiclelock/functions/fnc_moduleSync.sqf
@@ -51,4 +51,4 @@ if !(_activated) exitWith {WARNING("Vehicle Lock Sync Module - placed but not ac
} forEach _syncedObjects;
//Wait to add keys until various gear assigns have finished (~5 seconds)
-}, [_syncedObjects], 5, 1] call EFUNC(common,waitAndExecute);
+}, [_syncedObjects], 5, 1] call CBA_fnc_waitAndExecute;
diff --git a/addons/vehiclelock/functions/fnc_onOpenInventory.sqf b/addons/vehiclelock/functions/fnc_onOpenInventory.sqf
index 5ac9ee427e..fb8972ef1d 100644
--- a/addons/vehiclelock/functions/fnc_onOpenInventory.sqf
+++ b/addons/vehiclelock/functions/fnc_onOpenInventory.sqf
@@ -42,7 +42,7 @@ if (GVAR(LockVehicleInventory) && //if setting not enabled
[{
TRACE_1("Opening Player Inventory", _this);
ACE_player action ["Gear", objNull]
- }, []] call EFUNC(common,execNextFrame);
+ }, []] call CBA_fnc_execNextFrame;
},
- []] call EFUNC(common,waitUntilAndExecute);
+ []] call CBA_fnc_waitUntilAndExecute;
};
diff --git a/addons/vehicles/config.cpp b/addons/vehicles/config.cpp
index a3641a7b5b..9d2cd3caac 100644
--- a/addons/vehicles/config.cpp
+++ b/addons/vehicles/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2","KoffeinFlummi"};
- authorUrl = "https://github.com/KoffeinFlummi/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2","KoffeinFlummi"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/vehicles/functions/fnc_startEngine.sqf b/addons/vehicles/functions/fnc_startEngine.sqf
index e2c171e018..8b0d0f17bb 100644
--- a/addons/vehicles/functions/fnc_startEngine.sqf
+++ b/addons/vehicles/functions/fnc_startEngine.sqf
@@ -24,9 +24,9 @@ if (!_isEngineOn || {floor abs speed _vehicle > 0}) exitWith {};
params ["_args", "_idPFH"];
_args params ["_vehicle", "_time", "_direction"];
- if (ACE_time > _time) exitWith { [_idPFH] call CBA_fnc_removePerFrameHandler; };
+ if (CBA_missionTime > _time) exitWith { [_idPFH] call CBA_fnc_removePerFrameHandler; };
_vehicle setVelocity [0, 0, 0];
_vehicle setVectorDirAndUp _direction;
-} , 0, [_vehicle, ACE_time + STARTUP_DELAY, [vectorDir _vehicle, vectorUp _vehicle]]] call CBA_fnc_addPerFrameHandler;
+} , 0, [_vehicle, CBA_missionTime + STARTUP_DELAY, [vectorDir _vehicle, vectorUp _vehicle]]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/viewdistance/config.cpp b/addons/viewdistance/config.cpp
index 2de8b2c954..bf3dd29d24 100644
--- a/addons/viewdistance/config.cpp
+++ b/addons/viewdistance/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Winter", "Jonpas", "Arkhir"};
- authorUrl = "https://github.com/Winter259";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Winter", "Jonpas", "Arkhir"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/weaponselect/config.cpp b/addons/weaponselect/config.cpp
index 231d167cd0..b6a98e6d88 100644
--- a/addons/weaponselect/config.cpp
+++ b/addons/weaponselect/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2","KoffeinFlummi","esteldunedain"};
- authorUrl = "https://github.com/commy2/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2","KoffeinFlummi","esteldunedain"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/weather/CfgVehicles.hpp b/addons/weather/CfgVehicles.hpp
index f98a1e50f5..ab3d408fdc 100644
--- a/addons/weather/CfgVehicles.hpp
+++ b/addons/weather/CfgVehicles.hpp
@@ -3,7 +3,7 @@ class CfgVehicles {
class GVAR(ModuleSettings): ACE_Module {
scope = 2;
displayName = CSTRING(Module_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Wind_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Wind_ca.paa);
category = "ACE";
function = QUOTE(DFUNC(initModuleSettings));
functionPriority = 1;
diff --git a/addons/weather/XEH_postInit.sqf b/addons/weather/XEH_postInit.sqf
index 9c32634060..f085217c56 100644
--- a/addons/weather/XEH_postInit.sqf
+++ b/addons/weather/XEH_postInit.sqf
@@ -5,13 +5,13 @@ GVAR(temperatureShift) = 3 - random 6;
GVAR(badWeatherShift) = (random 1) ^ 2 * 10;
GVAR(humidityShift) = (5 - random 10) / 100;
-GVAR(wind_period_start_time) = ACE_time;
-GVAR(rain_period_start_time) = ACE_time;
+GVAR(wind_period_start_time) = CBA_missionTime;
+GVAR(rain_period_start_time) = CBA_missionTime;
GVAR(ACE_rain) = rain;
-"ACE_WIND_PARAMS" addPublicVariableEventHandler { GVAR(wind_period_start_time) = ACE_time; };
-"ACE_RAIN_PARAMS" addPublicVariableEventHandler { GVAR(rain_period_start_time) = ACE_time; };
+"ACE_WIND_PARAMS" addPublicVariableEventHandler { GVAR(wind_period_start_time) = CBA_missionTime; };
+"ACE_RAIN_PARAMS" addPublicVariableEventHandler { GVAR(rain_period_start_time) = CBA_missionTime; };
"ACE_MISC_PARAMS" addPublicVariableEventHandler {
if (!isServer) then {
TRACE_1("MISC PARAMS PVEH",ACE_MISC_PARAMS);
@@ -78,14 +78,14 @@ simulWeatherSync;
[] call FUNC(updateWind); //Every 1 second
- if (ACE_time >= GVAR(nextUpdateRain)) then {
+ if (CBA_missionTime >= GVAR(nextUpdateRain)) then {
[] call FUNC(updateRain); //Every 2 seconds
- GVAR(nextUpdateRain) = 2 + ACE_time;
+ GVAR(nextUpdateRain) = 2 + CBA_missionTime;
};
- if (ACE_time >= GVAR(nextUpdateTempAndHumidity)) then {
+ if (CBA_missionTime >= GVAR(nextUpdateTempAndHumidity)) then {
[] call FUNC(updateTemperature); //Every 20 seconds
[] call FUNC(updateHumidity); //Every 20 seconds
- GVAR(nextUpdateTempAndHumidity) = 20 + ACE_time;
+ GVAR(nextUpdateTempAndHumidity) = 20 + CBA_missionTime;
};
END_COUNTER(weatherPFEH);
diff --git a/addons/weather/config.cpp b/addons/weather/config.cpp
index 50e2f8ace0..d2d8764ead 100644
--- a/addons/weather/config.cpp
+++ b/addons/weather/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"q1184", "Rocko", "esteldunedain", "Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"q1184", "Rocko", "esteldunedain", "Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/weather/functions/fnc_displayWindInfo.sqf b/addons/weather/functions/fnc_displayWindInfo.sqf
index f81384c1b0..5ea69c59a0 100644
--- a/addons/weather/functions/fnc_displayWindInfo.sqf
+++ b/addons/weather/functions/fnc_displayWindInfo.sqf
@@ -78,10 +78,10 @@ TRACE_1("Starting Wind Info PFEH", GVAR(WindInfo));
TRACE_3("update display",_beaufortNumber,_windDir,_windSpeed);
__ctrl ctrlSetTextColor _windColor;
if (_beaufortNumber > 0) then {
- __ctrl ctrlSetText QUOTE(PATHTOF(UI\wind_arrow_ca.paa));
+ __ctrl ctrlSetText QPATHTOF(UI\wind_arrow_ca.paa);
__ctrl ctrlSetAngle [_windDir, 0.5, 0.5];
} else {
- __ctrl ctrlSetText QUOTE(PATHTOF(UI\wind_noneCircle_ca.paa));
+ __ctrl ctrlSetText QPATHTOF(UI\wind_noneCircle_ca.paa);
};
__ctrl ctrlCommit 0;
@@ -94,7 +94,7 @@ TRACE_1("Starting Wind Info PFEH", GVAR(WindInfo));
for "_index" from 0 to (_beaufortNumber - 1) do {
private _ball = __dsp ctrlCreate ["RscPicture", _index];
- _ball ctrlSetText QUOTE(PATHTOF(UI\wind_dot_ca.paa));
+ _ball ctrlSetText QPATHTOF(UI\wind_dot_ca.paa);
_ball ctrlSetTextColor [1,1,1,1];
private _ballCenterX = _centerX - (_ballWidth / 2) + ((sin _windDir) * 0.013333) * (_index - 4.9) + ((cos _windDir) * 0.0125);
private _ballCenterY = _centerY - (_ballHeight / 2) - ((1 * cos _windDir) * 4/3*0.013333) * (_index - 4.9) + ((sin _windDir) * 0.0125);
diff --git a/addons/weather/functions/fnc_getWind.sqf b/addons/weather/functions/fnc_getWind.sqf
index c9ccd43ff9..7c08e813e1 100644
--- a/addons/weather/functions/fnc_getWind.sqf
+++ b/addons/weather/functions/fnc_getWind.sqf
@@ -20,7 +20,7 @@ if (isNil "ACE_WIND_PARAMS") exitWith { [0, 0, 0] };
ACE_WIND_PARAMS params ["_dir", "_dirChange", "_spd", "_spdChange", "_period"];
//Wind _dir is the "source" of the wind [eg: "northerly wind": _dir = 0 -> wind = [0,-1,0];]
-private _periodPosition = (ACE_time - GVAR(wind_period_start_time)) min _period;
+private _periodPosition = (CBA_missionTime - GVAR(wind_period_start_time)) min _period;
private _periodPercent = _periodPosition / _period;
_spd = _spd + _spdChange * _periodPercent;
diff --git a/addons/weather/functions/fnc_updateAceWeather.sqf b/addons/weather/functions/fnc_updateAceWeather.sqf
index 2eb264d91b..3f2f9a356c 100644
--- a/addons/weather/functions/fnc_updateAceWeather.sqf
+++ b/addons/weather/functions/fnc_updateAceWeather.sqf
@@ -48,7 +48,7 @@ if (GVAR(syncRain) && {GVAR(rain_period_count) > GVAR(rain_next_period)}) then {
ACE_RAIN_PARAMS = [_lastRain, GVAR(current_rain), _transitionTime];
TRACE_4("",_lastRain,_rainOverCast,_transitionTime,overcast);
- GVAR(rain_period_start_time) = ACE_time;
+ GVAR(rain_period_start_time) = CBA_missionTime;
publicVariable "ACE_RAIN_PARAMS";
};
@@ -94,7 +94,7 @@ if (GVAR(syncWind) && {GVAR(wind_period_count) > GVAR(wind_next_period)}) then {
GVAR(current_wind_direction) = _windDirection;
GVAR(current_wind_speed) = _windSpeed;
- GVAR(wind_period_start_time) = ACE_time;
+ GVAR(wind_period_start_time) = CBA_missionTime;
publicVariable "ACE_WIND_PARAMS";
};
diff --git a/addons/weather/functions/fnc_updateRain.sqf b/addons/weather/functions/fnc_updateRain.sqf
index 9146b266b3..ccacb09955 100644
--- a/addons/weather/functions/fnc_updateRain.sqf
+++ b/addons/weather/functions/fnc_updateRain.sqf
@@ -18,10 +18,10 @@
if (!isNil "ACE_RAIN_PARAMS") then {
ACE_RAIN_PARAMS params ["_oldRain", "_newRain", "_period"];
- private _periodPosition = (ACE_time - GVAR(rain_period_start_time)) min _period;
+ private _periodPosition = (CBA_missionTime - GVAR(rain_period_start_time)) min _period;
private _periodPercent = (_periodPosition / _period) min 1;
- GVAR(ACE_Rain) = linearConversion [GVAR(rain_period_start_time), (GVAR(rain_period_start_time) + _period), ACE_time, _oldRain, _newRain];
+ GVAR(ACE_Rain) = linearConversion [GVAR(rain_period_start_time), (GVAR(rain_period_start_time) + _period), CBA_missionTime, _oldRain, _newRain];
TRACE_3("Update Rain",rain,ACE_RAIN_PARAMS,GVAR(ACE_Rain));
};
diff --git a/addons/winddeflection/CfgVehicles.hpp b/addons/winddeflection/CfgVehicles.hpp
index c52949e1fc..866a00d9c1 100644
--- a/addons/winddeflection/CfgVehicles.hpp
+++ b/addons/winddeflection/CfgVehicles.hpp
@@ -3,7 +3,7 @@ class CfgVehicles {
class GVAR(ModuleSettings): ACE_Module {
scope = 2;
displayName = CSTRING(windDeflection_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Wind_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Wind_ca.paa);
category = "ACE";
function = QUOTE(DFUNC(initModuleSettings));
functionPriority = 1;
diff --git a/addons/winddeflection/config.cpp b/addons/winddeflection/config.cpp
index a7bedbb9ef..2faf536423 100644
--- a/addons/winddeflection/config.cpp
+++ b/addons/winddeflection/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_weather"};
- author[] = {ECSTRING(common,ACETeam), "Glowbal", "Ruthberg"};
- authorUrl = "http://ace3mod.com/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {ECSTRING(common,ACETeam), "Glowbal", "Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/winddeflection/functions/fnc_updateTrajectoryPFH.sqf b/addons/winddeflection/functions/fnc_updateTrajectoryPFH.sqf
index 393a5cd757..5ec512c903 100644
--- a/addons/winddeflection/functions/fnc_updateTrajectoryPFH.sqf
+++ b/addons/winddeflection/functions/fnc_updateTrajectoryPFH.sqf
@@ -22,8 +22,8 @@
params ["_args"];
_args params ["_lastTime"];
- _deltaT = ACE_time - _lastTime;
- _args set [0, ACE_time];
+ _deltaT = CBA_missionTime - _lastTime;
+ _args set [0, CBA_missionTime];
_deleted = 0;
_isWind = (vectorMagnitude ACE_wind > 0);
@@ -53,4 +53,4 @@
nil
} count +GVAR(trackedBullets);
// END_COUNTER(pfeh);
-}, GVAR(simulationInterval), [ACE_time]] call CBA_fnc_addPerFrameHandler;
+}, GVAR(simulationInterval), [CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/yardage450/CfgWeapons.hpp b/addons/yardage450/CfgWeapons.hpp
index 54e15401a6..382a6d09fc 100644
--- a/addons/yardage450/CfgWeapons.hpp
+++ b/addons/yardage450/CfgWeapons.hpp
@@ -5,9 +5,9 @@ class CfgWeapons {
author = ECSTRING(common,ACETeam);
displayName = CSTRING(DisplayName);
descriptionShort = CSTRING(Description);
- model = PATHTOF(data\ace_yardage_pro_450.p3d);
- modelOptics = PATHTOF(data\bushnell_optic.p3d);
- picture = PATHTOF(UI\w_bushnell_ca.paa);
+ model = QPATHTOF(data\ace_yardage_pro_450.p3d);
+ modelOptics = QPATHTOF(data\bushnell_optic.p3d);
+ picture = QPATHTOF(UI\w_bushnell_ca.paa);
opticsZoomMin = 0.33333/4;
opticsZoomMax = 0.33333/4;
opticsZoomInit = 0.33333/4;
diff --git a/addons/yardage450/config.cpp b/addons/yardage450/config.cpp
index 4d0f820aed..18779bd5be 100644
--- a/addons/yardage450/config.cpp
+++ b/addons/yardage450/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {"ACE_Yardage450"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_apl", "ace_laser"};
- author[] = {"Spooner", "tcp", "Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Spooner", "tcp", "Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/addons/yardage450/functions/fnc_turnOn.sqf b/addons/yardage450/functions/fnc_turnOn.sqf
index 1cb20e71b6..a56bddb016 100644
--- a/addons/yardage450/functions/fnc_turnOn.sqf
+++ b/addons/yardage450/functions/fnc_turnOn.sqf
@@ -23,14 +23,14 @@
if (currentWeapon ACE_player != "ACE_Yardage450" || cameraView != "GUNNER") exitWith {};
-GVAR(powerOnTime) = ACE_time;
+GVAR(powerOnTime) = CBA_missionTime;
if (GVAR(active)) exitWith {};
GVAR(active) = true;
[{
- if (ACE_time - GVAR(powerOnTime) > 30) exitWith {
+ if (CBA_missionTime - GVAR(powerOnTime) > 30) exitWith {
GVAR(active) = false;
74210 cutText ["", "PLAIN"];
[_this select 1] call CBA_fnc_removePerFrameHandler;
diff --git a/addons/zeus/CfgVehicles.hpp b/addons/zeus/CfgVehicles.hpp
index fbf63930c4..45cd00adbd 100644
--- a/addons/zeus/CfgVehicles.hpp
+++ b/addons/zeus/CfgVehicles.hpp
@@ -18,7 +18,7 @@ class CfgVehicles {
class GVAR(moduleSettings): ACE_Module {
scope = 2;
displayName = CSTRING(Settings_DisplayName);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Settings_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Zeus_Settings_ca.paa);
category = "ACE";
function = QFUNC(moduleZeusSettings);
functionPriority = 1;
@@ -96,7 +96,7 @@ class CfgVehicles {
curatorCanAttach = 1;
displayName = CSTRING(ModuleCaptive_DisplayName);
function = QFUNC(moduleCaptive);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Captive_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Zeus_Captive_ca.paa);
class ModuleDescription {
description = "Flips the capture state of the specified unit.";
sync[] = {};
@@ -106,7 +106,7 @@ class CfgVehicles {
curatorCanAttach = 1;
displayName = CSTRING(ModuleSurrender_DisplayName);
function = QFUNC(moduleSurrender);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Surrender_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Zeus_Surrender_ca.paa);
class ModuleDescription {
description = "Flips the surrender state of the specified unit.";
sync[] = {};
@@ -116,7 +116,7 @@ class CfgVehicles {
curatorCanAttach = 1;
displayName = CSTRING(ModuleUnconscious_DisplayName);
function = QFUNC(moduleUnconscious);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Unconscious_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Zeus_Unconscious_ca.paa);
class ModuleDescription {
description = "Flips the unconscious state of the specified unit.";
sync[] = {};
@@ -126,7 +126,7 @@ class CfgVehicles {
curatorCanAttach = 1;
displayName = CSTRING(ModuleSetMedic_DisplayName);
function = QFUNC(moduleSetMedic);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa);
class ModuleDescription {
description = "";
sync[] = {};
@@ -136,7 +136,7 @@ class CfgVehicles {
curatorCanAttach = 1;
displayName = CSTRING(ModuleSetMedicalVehicle_DisplayName);
function = QFUNC(moduleSetMedicalVehicle);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa);
class ModuleDescription {
description = "";
sync[] = {};
@@ -146,7 +146,7 @@ class CfgVehicles {
curatorCanAttach = 1;
displayName = CSTRING(ModuleSetMedicalFacility_DisplayName);
function = QFUNC(moduleSetMedicalFacility);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa));
+ icon = QPATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa);
class ModuleDescription {
description = "";
sync[] = {};
@@ -157,7 +157,7 @@ class CfgVehicles {
curatorCanAttach = 1;
displayName = CSTRING(ModuleAddSpareTrack_DisplayName);
function = QFUNC(moduleAddSpareTrack);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa));//@todo
+ icon = QPATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa);//@todo
class ModuleDescription {
description = CSTRING(ModuleAddSpareTrack_Description);
sync[] = {};
@@ -167,7 +167,7 @@ class CfgVehicles {
curatorCanAttach = 1;
displayName = CSTRING(ModuleAddSpareWheel_DisplayName);
function = QFUNC(moduleAddSpareWheel);
- icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa));//@todo
+ icon = QPATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa);//@todo
class ModuleDescription {
description = CSTRING(ModuleAddSpareWheel_Description);
sync[] = {};
diff --git a/addons/zeus/config.cpp b/addons/zeus/config.cpp
index f41769e727..6b066c8efb 100644
--- a/addons/zeus/config.cpp
+++ b/addons/zeus/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"SilentSpike"};
- authorUrl = "https://github.com/SilentSpike";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"SilentSpike"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
// Use additional cfgPatches to contextually remove modules from zeus
diff --git a/addons/zeus/functions/fnc_addObjectToCurator.sqf b/addons/zeus/functions/fnc_addObjectToCurator.sqf
index 176b55dfdc..d727bb6826 100644
--- a/addons/zeus/functions/fnc_addObjectToCurator.sqf
+++ b/addons/zeus/functions/fnc_addObjectToCurator.sqf
@@ -27,4 +27,4 @@ if (!(_object getVariable [QGVAR(addObject), GVAR(autoAddObjects)])) exitWith {}
{
_x addCuratorEditableObjects [[_this], true];
} forEach allCurators;
-}, _object] call EFUNC(common,execNextFrame);
+}, _object] call CBA_fnc_execNextFrame;
diff --git a/addons/zeus/functions/fnc_bi_moduleCurator.sqf b/addons/zeus/functions/fnc_bi_moduleCurator.sqf
index d10d36b839..2909aceba5 100644
--- a/addons/zeus/functions/fnc_bi_moduleCurator.sqf
+++ b/addons/zeus/functions/fnc_bi_moduleCurator.sqf
@@ -113,7 +113,7 @@ if (_activated) then {
if (_name == "") then {_name = localize "STR_A3_curator";};
//--- Wait until mission starts
- waitUntil {time > 0}; // NOTE: DO NOT CHANGE TO ACE_TIME, IT BREAKS THE MODULE
+ waitUntil {time > 0}; // NOTE: DO NOT CHANGE TO CBA_missionTime, IT BREAKS THE MODULE
//--- Refresh addon list, so it's broadcasted to clients
_addons = curatoraddons _logic;
@@ -170,7 +170,7 @@ if (_activated) then {
};
} forEach (curatoreditableobjects _logic);
};
- },[_logic,_player]] call EFUNC(common,execNextFrame);
+ },[_logic,_player]] call CBA_fnc_execNextFrame;
[_logic,"curatorUnitAssigned",[_logic,_player]] call bis_fnc_callscriptedeventhandler;
@@ -244,7 +244,7 @@ if (_activated) then {
}
];
};
- },[_logic]] call EFUNC(common,execNextFrame);
+ },[_logic]] call CBA_fnc_execNextFrame;
};
//--- Player
diff --git a/addons/zeus/functions/fnc_bi_moduleProjectile.sqf b/addons/zeus/functions/fnc_bi_moduleProjectile.sqf
index 1143c30443..cdacd5ff0e 100644
--- a/addons/zeus/functions/fnc_bi_moduleProjectile.sqf
+++ b/addons/zeus/functions/fnc_bi_moduleProjectile.sqf
@@ -104,9 +104,9 @@ if (_activated) then {
_side = side group _x;
if (_side in [east,west,resistance,civilian]) then {
//--- Play radio (only if it wasn't played recently)
- if (ACE_time > _x getVariable ["BIS_fnc_moduleProjectile_radio",-_delay]) then {
+ if (CBA_missionTime > _x getVariable ["BIS_fnc_moduleProjectile_radio",-_delay]) then {
[[_side,_radio,"side"],"bis_fnc_sayMessage",_x] call bis_fnc_mp;
- _x setVariable ["BIS_fnc_moduleProjectile_radio",ACE_time + _delay];
+ _x setVariable ["BIS_fnc_moduleProjectile_radio",CBA_missionTime + _delay];
};
};
};
diff --git a/extras/blank/config.cpp b/extras/blank/config.cpp
index a7b7bae6df..f78545d212 100644
--- a/extras/blank/config.cpp
+++ b/extras/blank/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {""};
- authorUrl = "";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {""};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/compat_adr_97/config.cpp b/optionals/compat_adr_97/config.cpp
index 0b879124aa..aca323c98c 100644
--- a/optionals/compat_adr_97/config.cpp
+++ b/optionals/compat_adr_97/config.cpp
@@ -6,11 +6,13 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"A3_Weapons_F_Mod"};
- author[] = {"Nic547"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Nic547"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
#include "CfgWeapons.hpp"
#include "CfgAmmo.hpp"
-#include "CfgMagazines.hpp"
\ No newline at end of file
+#include "CfgMagazines.hpp"
diff --git a/optionals/compat_r3f/config.cpp b/optionals/compat_r3f/config.cpp
index d5dbc8e68c..c7e42c35ad 100644
--- a/optionals/compat_r3f/config.cpp
+++ b/optionals/compat_r3f/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"R3F_Armes", "R3F_Acc"};
- author[]={"Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/compat_rh_acc/config.cpp b/optionals/compat_rh_acc/config.cpp
index 9f563bd157..b66be68593 100644
--- a/optionals/compat_rh_acc/config.cpp
+++ b/optionals/compat_rh_acc/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"RH_acc"};
- author[]={"Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/compat_rh_de/config.cpp b/optionals/compat_rh_de/config.cpp
index 3d82eab05a..77dc828105 100644
--- a/optionals/compat_rh_de/config.cpp
+++ b/optionals/compat_rh_de/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"RH_de_cfg"};
- author[]={"Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/compat_rh_m4/config.cpp b/optionals/compat_rh_m4/config.cpp
index 9c28be4f89..4bacb9dedf 100644
--- a/optionals/compat_rh_m4/config.cpp
+++ b/optionals/compat_rh_m4/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"RH_m4_cfg"};
- author[]={"Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/compat_rh_pdw/config.cpp b/optionals/compat_rh_pdw/config.cpp
index 4aed0e6241..e3c5d15a07 100644
--- a/optionals/compat_rh_pdw/config.cpp
+++ b/optionals/compat_rh_pdw/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"RH_PDW"};
- author[]={"Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/compat_rhs_afrf3/config.cpp b/optionals/compat_rhs_afrf3/config.cpp
index 82873b01e2..bf36181ce8 100644
--- a/optionals/compat_rhs_afrf3/config.cpp
+++ b/optionals/compat_rhs_afrf3/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"rhs_c_weapons", "rhs_c_troops", "rhs_c_bmd", "rhs_c_bmp", "rhs_c_bmp3", "rhs_c_a2port_armor", "rhs_c_btr", "rhs_c_sprut", "rhs_c_t72", "rhs_c_tanks", "rhs_c_a2port_air", "rhs_c_a2port_car", "rhs_c_cars", "rhs_c_2s3", "rhs_c_rva"};
- author[]={"Ruthberg", "GitHawk", "BaerMitUmlaut"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/compat_rhs_usf3/config.cpp b/optionals/compat_rhs_usf3/config.cpp
index ef173ad1c6..e218f77d2e 100644
--- a/optionals/compat_rhs_usf3/config.cpp
+++ b/optionals/compat_rhs_usf3/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"rhsusf_c_weapons", "rhsusf_c_troops", "rhsusf_c_m1a1", "rhsusf_c_m1a2", "RHS_US_A2_AirImport", "rhsusf_c_m109", "rhsusf_c_hmmwv", "rhsusf_c_rg33", "rhsusf_c_fmtv", "rhsusf_c_m113", "RHS_US_A2Port_Armor"};
- author[]={"Ruthberg", "GitHawk", "BaerMitUmlaut"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/compat_rksl_pm_ii/config.cpp b/optionals/compat_rksl_pm_ii/config.cpp
index c3ed720f8b..ca0a7189f2 100644
--- a/optionals/compat_rksl_pm_ii/config.cpp
+++ b/optionals/compat_rksl_pm_ii/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"RKSL_PMII"};
- author[]={"Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/compat_sma3_iansky/config.cpp b/optionals/compat_sma3_iansky/config.cpp
index 4dfda50805..5611c2d4af 100644
--- a/optionals/compat_sma3_iansky/config.cpp
+++ b/optionals/compat_sma3_iansky/config.cpp
@@ -6,7 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"iansky_opt"};
- author[]={"Ruthberg"};
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Ruthberg"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/noactionmenu/config.cpp b/optionals/noactionmenu/config.cpp
index 763665660b..77e0457643 100644
--- a/optionals/noactionmenu/config.cpp
+++ b/optionals/noactionmenu/config.cpp
@@ -7,8 +7,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"commy2"};
- authorUrl = "https://github.com/commy2";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"commy2"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/server/config.cpp b/optionals/server/config.cpp
index 9cfcb35012..ab354fa4d8 100644
--- a/optionals/server/config.cpp
+++ b/optionals/server/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
- author[] = {"Glowbal"};
- authorUrl = "https://github.com/Glowbal/";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"Glowbal"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
diff --git a/optionals/tracers/config.cpp b/optionals/tracers/config.cpp
index 07e1607681..32f1bfbb2d 100644
--- a/optionals/tracers/config.cpp
+++ b/optionals/tracers/config.cpp
@@ -6,8 +6,9 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_ballistics"};
- author[] = {"ACE2 Team"};
- authorUrl = "https://www.ace3mod.com";
+ author = ECSTRING(common,ACETeam);
+ authors[] = {"ACE2 Team"};
+ url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};