diff --git a/AUTHORS.txt b/AUTHORS.txt
index c9fdea1351..d33f9f41c7 100644
--- a/AUTHORS.txt
+++ b/AUTHORS.txt
@@ -24,22 +24,30 @@ VKing
Walter Pearce
# CONTRIBUTORS
-11RDP-LoupVert
[BIG]Bull
+11RDP-LoupVert
ACCtomeek
+adam3adam
Adanteh
aeroson
-alef
Aggr094
+alef
+Aleksey EpMAK Yermakov
Alganthe
Anthariel
+Asgar Serran
+Bla1337
+BlackPixxel
BlackQwar
Brakoviejo
Brisse
BullHorn
Clon1998
Codingboy
+Coren
Crusty
+Dharma Bellamkonda
+Dimaslg
eRazeri
evromalarkey
Falke75
@@ -49,31 +57,37 @@ Filip Basara
FreeZbe
geraldbolso1899
Ghost
+Gianmarco Varriale (TeamNuke)
GieNkoV
gpgpgpgp
Grzegorz
-Gianmarco Varriale (TeamNuke)
Hamburger SV
Harakhti
havena
Hawkins
jokoho48
Jonpas
+Kavinsky
Kllrt
+legman
Legolasindar "Viper"
licht-im-Norden87
MarcBook
meat
Michail Nikolaev
nic547
+nikolauska
nomisum
+OnkelDisMaster
oscarmolinadev
pokertour
+Professor
rakowozz
+ramius86
Raspu86
Riccardo Petricca
Robert Boklahánics
-ramius86
+ruPaladin
SilentSpike
simon84
Sniperwolf572
@@ -82,19 +96,6 @@ Toaster
Tonic
Tourorist
Valentin Torikian
-zGuba
-Aleksey EpMAK Yermakov
-ruPaladin
-BlackPixxel
-Asgar Serran
-Kavinsky
-Coren
-OnkelDisMaster
-Dimaslg
VyMajoris(W-Cephei)
-Bla1337
-nikolauska
-adam3adam
-Professor
Winter
-Dharma Bellamkonda
+zGuba
diff --git a/README.md b/README.md
index 4ed84011bf..a5d1d57306 100644
--- a/README.md
+++ b/README.md
@@ -3,19 +3,21 @@
height="112">
-
-
+ v3.0.1
+
-
-
-
+ -->
+
diff --git a/addons/advanced_ballistics/ACE_Settings.hpp b/addons/advanced_ballistics/ACE_Settings.hpp
index 67bc51511e..757385deb3 100644
--- a/addons/advanced_ballistics/ACE_Settings.hpp
+++ b/addons/advanced_ballistics/ACE_Settings.hpp
@@ -5,23 +5,29 @@ class ACE_Settings {
typeName = "BOOL";
value = 0;
};
- class GVAR(alwaysSimulateForSnipers) {
- displayName = "Always Enabled For Snipers";
- description = "Always enables advanced ballistics when high power optics are used";
+ class GVAR(simulateForSnipers) {
+ displayName = "Enabled For Snipers";
+ description = "Enables advanced ballistics for non local snipers (when using high power optics)";
typeName = "BOOL";
value = 1;
};
- class GVAR(disabledInFullAutoMode) {
- displayName = "Disabled In FullAuto Mode";
- description = "Disables the advanced ballistics during full auto fire";
+ class GVAR(simulateForGroupMembers) {
+ displayName = "Enabled For Group Members";
+ description = "Enables advanced ballistics for non local group members";
typeName = "BOOL";
value = 0;
};
- class GVAR(onlyActiveForLocalPlayers) {
- displayName = "Disabled For Non Local Players";
- description = "Disables the advanced ballistics for bullets coming from other players (enable this if you encounter frame drops during heavy firefights in multiplayer)";
+ class GVAR(simulateForEveryone) {
+ displayName = "Enabled For Everyone";
+ description = "Enables advanced ballistics for all non local players (enabling this may degrade performance during heavy firefights in multiplayer)";
typeName = "BOOL";
- value = 1;
+ value = 0;
+ };
+ class GVAR(disabledInFullAutoMode) {
+ displayName = "Disabled In FullAuto Mode";
+ description = "Disables advanced ballistics during full auto fire";
+ typeName = "BOOL";
+ value = 0;
};
/* // TODO: We currently do not have firedEHs on vehicles
class GVAR(vehicleGunnerEnabled) {
diff --git a/addons/advanced_ballistics/CfgVehicles.hpp b/addons/advanced_ballistics/CfgVehicles.hpp
index 4e42f35f72..854930d639 100644
--- a/addons/advanced_ballistics/CfgVehicles.hpp
+++ b/addons/advanced_ballistics/CfgVehicles.hpp
@@ -17,24 +17,30 @@ class CfgVehicles {
typeName = "BOOL";
defaultValue = 0;
};
- class alwaysSimulateForSnipers {
- displayName = "$STR_ACE_AdvancedBallistics_alwaysSimulateForSnipers_DisplayName";
- description = "$STR_ACE_AdvancedBallistics_alwaysSimulateForSnipers_Description";
+ class simulateForSnipers {
+ displayName = "$STR_ACE_AdvancedBallistics_simulateForSnipers_DisplayName";
+ description = "$STR_ACE_AdvancedBallistics_simulateForSnipers_Description";
typeName = "BOOL";
defaultValue = 1;
};
+ class simulateForGroupMembers {
+ displayName = "$STR_ACE_AdvancedBallistics_simulateForGroupMembers_DisplayName";
+ description = "$STR_ACE_AdvancedBallistics_simulateForGroupMembers_Description";
+ typeName = "BOOL";
+ defaultValue = 0;
+ };
+ class simulateForEveryone {
+ displayName = "$STR_ACE_AdvancedBallistics_simulateForEveryone_DisplayName";
+ description = "$STR_ACE_AdvancedBallistics_simulateForEveryone_Description";
+ typeName = "BOOL";
+ defaultValue = 0;
+ };
class disabledInFullAutoMode {
displayName = "$STR_ACE_AdvancedBallistics_disabledInFullAutoMod_DisplayName";
description = "$STR_ACE_AdvancedBallistics_disabledInFullAutoMod_Description";
typeName = "BOOL";
defaultValue = 0;
};
- class onlyActiveForLocalPlayers {
- displayName = "$STR_ACE_AdvancedBallistics_onlyActiveForLocalPlayers_DisplayName";
- description = "$STR_ACE_AdvancedBallistics_onlyActiveForLocalPlayers_Description";
- typeName = "BOOL";
- defaultValue = 1;
- };
/* // TODO: We currently do not have firedEHs on vehicles
class vehicleGunnerEnabled {
displayName = "Enabled For Vehicle Gunners";
diff --git a/addons/advanced_ballistics/XEH_postInit.sqf b/addons/advanced_ballistics/XEH_postInit.sqf
index b59737412a..b199acb9e5 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) = time;
+GVAR(ProtractorStart) = ACE_time;
GVAR(currentGrid) = 0;
GVAR(initMessageEnabled) = false;
diff --git a/addons/advanced_ballistics/functions/fnc_handleFired.sqf b/addons/advanced_ballistics/functions/fnc_handleFired.sqf
index bb0b649da4..e2a0875e01 100644
--- a/addons/advanced_ballistics/functions/fnc_handleFired.sqf
+++ b/addons/advanced_ballistics/functions/fnc_handleFired.sqf
@@ -35,16 +35,18 @@ if (!([_unit] call EFUNC(common,isPlayer))) exitWith {};
if (underwater _unit) exitWith {};
if (!(_ammo isKindOf "BulletBase")) exitWith {};
if (_unit distance ACE_player > GVAR(simulationRadius)) exitWith {};
-if (GVAR(onlyActiveForLocalPlayers) && !(local _unit)) then {
- if (GVAR(alwaysSimulateForSnipers)) then {
- // The shooter is non local
+if (!GVAR(simulateForEveryone) && !(local _unit)) then {
+ // The shooter is non local
+ _abort = true;
+ if (GVAR(simulateForSnipers)) then {
if (currentWeapon _unit == primaryWeapon _unit && count primaryWeaponItems _unit > 2) then {
_opticsName = (primaryWeaponItems _unit) select 2;
_opticType = getNumber(configFile >> "CfgWeapons" >> _opticsName >> "ItemInfo" >> "opticType");
_abort = _opticType != 2; // We only abort if the non local shooter is not a sniper
};
- } else {
- _abort = true;
+ };
+ if (GVAR(simulateForGroupMembers) && _abort) then {
+ _abort = (group ACE_player) != (group _unit);
};
};
//if (!GVAR(vehicleGunnerEnabled) && !(_unit isKindOf "Man")) then { _abort = true; }; // We currently do not have firedEHs on vehicles
@@ -112,7 +114,7 @@ if (_caliber > 0 && _bulletLength > 0 && _bulletMass > 0 && _barrelTwist > 0) th
GVAR(currentbulletID) = (GVAR(currentbulletID) + 1) % 10000;
-"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), _AmmoCacheEntry select 0, _AmmoCacheEntry select 6, _AmmoCacheEntry select 7, _AmmoCacheEntry select 8, _AmmoCacheEntry select 5, _stabilityFactor, _WeaponCacheEntry select 1, _muzzleVelocity, _AmmoCacheEntry select 4, getPosASL _bullet, EGVAR(weather,Latitude), EGVAR(weather,currentTemperature), EGVAR(weather,Altitude), EGVAR(weather,currentHumidity), overcast, floor(time), time - floor(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), _AmmoCacheEntry select 0, _AmmoCacheEntry select 6, _AmmoCacheEntry select 7, _AmmoCacheEntry select 8, _AmmoCacheEntry select 5, _stabilityFactor, _WeaponCacheEntry select 1, _muzzleVelocity, _AmmoCacheEntry select 4, getPosASL _bullet, EGVAR(weather,Latitude), EGVAR(weather,currentTemperature), EGVAR(weather,Altitude), EGVAR(weather,currentHumidity), overcast, floor(ACE_time), ACE_time - floor(ACE_time)];
[{
private ["_args", "_index", "_bullet", "_caliber", "_bulletTraceVisible", "_bulletVelocity", "_bulletPosition"];
@@ -132,9 +134,9 @@ GVAR(currentbulletID) = (GVAR(currentbulletID) + 1) % 10000;
};
if (_bulletTraceVisible && _bulletSpeed > 600) then {
- drop ["\A3\data_f\ParticleEffects\Universal\Refract","","Billboard",1,0.1,getPos _bullet,[0,0,0],0,1.275,1,0,[0.0157480315*_caliber,0.00787401574*_caliber],[[0,0,0,0.6],[0,0,0,0.4]],[1,0],0,0,"","",""];
+ 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.6],[0,0,0,0.4]],[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, floor(time), time - floor(time)]);
+ call compile ("ace_advanced_ballistics" callExtension format["simulate:%1:%2:%3:%4:%5:%6:%7", _index, _bulletVelocity, _bulletPosition, ACE_wind, ASLToATL(_bulletPosition) select 2, floor(ACE_time), ACE_time - floor(ACE_time)]);
}, GVAR(simulationInterval), [_bullet, _caliber, _bulletTraceVisible, GVAR(currentbulletID)]] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/advanced_ballistics/functions/fnc_initModuleSettings.sqf b/addons/advanced_ballistics/functions/fnc_initModuleSettings.sqf
index ba7ea31a8f..186c0d0649 100644
--- a/addons/advanced_ballistics/functions/fnc_initModuleSettings.sqf
+++ b/addons/advanced_ballistics/functions/fnc_initModuleSettings.sqf
@@ -26,9 +26,10 @@ if !(_activated) exitWith {};
[_logic, QGVAR(ammoTemperatureEnabled), "ammoTemperatureEnabled"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(barrelLengthInfluenceEnabled), "barrelLengthInfluenceEnabled"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(bulletTraceEnabled), "bulletTraceEnabled"] call EFUNC(common,readSettingFromModule);
-[_logic, QGVAR(onlyActiveForLocalPlayers), "onlyActiveForLocalPlayers"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(simulateForEveryone), "simulateForEveryone"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(disabledInFullAutoMode), "disabledInFullAutoMode"] call EFUNC(common,readSettingFromModule);
-[_logic, QGVAR(alwaysSimulateForSnipers), "alwaysSimulateForSnipers"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(simulateForSnipers), "simulateForSnipers"] call EFUNC(common,readSettingFromModule);
+[_logic, QGVAR(simulateForGroupMembers), "simulateForGroupMembers"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(simulationInterval), "simulationInterval"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(simulationRadius), "simulationRadius"] call EFUNC(common,readSettingFromModule);
diff --git a/addons/advanced_ballistics/functions/fnc_initializeTerrainExtension.sqf b/addons/advanced_ballistics/functions/fnc_initializeTerrainExtension.sqf
index 93a79138c6..b2fc7ba084 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 = time;
+_initStartTime = ACE_time;
_mapSize = getNumber (configFile >> "CfgWorlds" >> worldName >> "MapSize");
if (("ace_advanced_ballistics" callExtension format["init:%1:%2", worldName, _mapSize]) == "Terrain already initialized") exitWith {
@@ -41,7 +41,7 @@ GVAR(currentGrid) = 0;
if (GVAR(currentGrid) >= _gridCells) exitWith {
if (GVAR(initMessageEnabled)) then {
- systemChat format["AdvancedBallistics: Finished terrain initialization in %1 seconds", ceil(time - _initStartTime)];
+ systemChat format["AdvancedBallistics: Finished terrain initialization in %1 seconds", ceil(ACE_time - _initStartTime)];
};
[_this select 1] call cba_fnc_removePerFrameHandler;
};
diff --git a/addons/advanced_ballistics/functions/fnc_readWeaponDataFromConfig.sqf b/addons/advanced_ballistics/functions/fnc_readWeaponDataFromConfig.sqf
index cbf8731336..8a1a29f7b0 100644
--- a/addons/advanced_ballistics/functions/fnc_readWeaponDataFromConfig.sqf
+++ b/addons/advanced_ballistics/functions/fnc_readWeaponDataFromConfig.sqf
@@ -4,7 +4,7 @@
* Reads the weapon class config and updates the config cache
*
* Arguments:
- * 0: ammo - classname
+ * 0: weapon - classname
*
* Return Value:
* 0: [_barrelTwist, _twistDirection, _barrelLength]
diff --git a/addons/advanced_ballistics/stringtable.xml b/addons/advanced_ballistics/stringtable.xml
index 565e4bd801..0c321aa833 100644
--- a/addons/advanced_ballistics/stringtable.xml
+++ b/addons/advanced_ballistics/stringtable.xml
@@ -28,82 +28,115 @@
Advanced Ballistics
Zaawansowana balistyka
+ Balística avanzada
Advanced Ballistics
Zaawansowana balistyka
+ Balística avanzada
Enables advanced ballistics
Aktywuje zaawansowaną balistykę
+ Activa la balística avanzada
-
- Always Enabled For Snipers
- Zawsze akt. dla snajp.
+
+ Enabled For Snipers
+ Activada para francotiradores
-
- Always enables advanced ballistics when high power optics are used
- Aktywuje zaawansowaną balistykę zawsze, kiedy używana jest optyka
+
+ Enables advanced ballistics for non local snipers (when using high power optics)
+ Activa la balística avanzada para francotiradores no locales (cuando se usa una mira telescópica)
+
+
+ Enabled For Group Members
+ Activada para miembros de grupo
+
+
+ Enables advanced ballistics for non local group members
+ Activada la balística avanzada para miembros de grupo no locales
+
+
+ Enabled For Everyone
+ Activada para todos
+
+
+ Enables advanced ballistics for all non local players (enabling this may degrade performance during heavy firefights in multiplayer)
+ Activada la balística avanzada para todos los jugadores no locales (activarlo puede degradar el rendimiento durante grandes tiroteos en multijugador).
+
+
+ Always Enabled For Group Members
+ Zawsze akt. dla czł. grupy
+ Siempre activada para miembros de grupo
+
+
+ Always enables advanced ballistics when a group member fires
+ Aktywuje zaawansowaną balistykę dla wszystkich członków grupy
+ Activada la balística avanzada siempre cuando miembros de grupo disparan
Disabled In FullAuto Mode
Wył. podczas ognia auto.
+ Desactivada en modo automático
Disables the advanced ballistics during full auto fire
Dezaktywuje zaawansowaną balistykę podczas ognia automatycznego
-
-
- Disabled For Non Local Players
- Wyłącz dla nielok. graczy
-
-
- Disables the advanced ballistics for bullets coming from other players (enable this if you encounter frame drops during heavy firefights in multiplayer)
- Dezaktywuje zaawansowaną balistykę dla pocisków pochodzących od innych graczy(aktywuj tą opcję jeżeli odczuwasz spadki FPS podczas sporych strzelanin w MP)
+ Desactivada la balística avanzada durante el fuego automático
Enable Ammo Temperature Simulation
Symulacja temp. amunicji
+ Activar simulación de temperatura de munición
Muzzle velocity varies with ammo temperature
Prędkość wylotowa pocisku jest zależna od temperatury amunicji
+ La velocidad de salida varía con la temperatura de la munición
Enable Barrel Length Simulation
Symulacja długości lufy
+ Habilitar la simulación de longitud del cañón
Muzzle velocity varies with barrel length
Prędkość wylotowa pocisku jest zależna od długości lufy
+ La velocidad de salidal varía con la longitud del cañón
Enable Bullet Trace Effect
Efekt smugi pocisku
+ Activar el efecto trazador de la bala
Enables a bullet trace effect to high caliber bullets (only visible when looking through high power optics)
Aktywuje efekt smugi pocisku dla pocisków wysokokalibrowych (widoczne tylko podczas patrzenia przez optykę)
+ Activa el efecto trazador de la balas de gran calibre (solo visible cuando se mira a través de una mira telescópica)
Simulation Interval
Interwał symulacji
+ Intervalo de simulación
Defines the interval between every calculation step
Określa interwał pomiędzy każdym krokiem kalkulacji
+ Define el intervalo entre cada cálculo
Simulation Radius
Zasięg symulacji
+ Radio de simulación
Defines the radius around the player (in meters) at which advanced ballistics are applied to projectiles
Określa obszar naokoło gracza (w metrach), na którym zaawansowana balistyka jest aplikowana dla pocisków
+ Define el radio alrededor del jugador (en metros) en el cual se aplica la balística avanzada a los proyectiles
Moduł ten pozwala aktywować zaawansowaną balistykę biorącą przy obliczeniach trajektorii lotu pocisku pod uwagę takie rzeczy jak temperatura powietrza, ciśnienie atmosferyczne, wilgotność powietrza, siły Coriolisa i Eotvosa, grawitację a także broń z jakiej wykonywany jest strzał oraz rodzaj amunicji. Wszystko to sprowadza się na bardzo dokładne odwzorowanie balistyki.
-
\ No newline at end of file
+
diff --git a/addons/ai/script_component.hpp b/addons/ai/script_component.hpp
index 6097849c6b..7add51c06c 100644
--- a/addons/ai/script_component.hpp
+++ b/addons/ai/script_component.hpp
@@ -1,5 +1,5 @@
#define COMPONENT ai
-#include "\z\ace\Addons\main\script_mod.hpp"
+#include "\z\ace\addons\main\script_mod.hpp"
#ifdef DEBUG_ENABLED_AI
#define DEBUG_MODE_FULL
@@ -9,4 +9,4 @@
#define DEBUG_SETTINGS DEBUG_SETTINGS_AI
#endif
-#include "\z\ace\Addons\main\script_macros.hpp"
\ No newline at end of file
+#include "\z\ace\addons\main\script_macros.hpp"
\ No newline at end of file
diff --git a/addons/atragmx/RscTitles.hpp b/addons/atragmx/RscTitles.hpp
index cefc7a26eb..97dad6e7b6 100644
--- a/addons/atragmx/RscTitles.hpp
+++ b/addons/atragmx/RscTitles.hpp
@@ -152,7 +152,7 @@ class ATragMX_Display {
type=0;
font="TahomaB";
SizeEX=0.025;
- idc=-1;
+ idc=720000;
style=48;
x=0.55*safezoneW+safezoneX-0.256;
y=0.265*safezoneH+safezoneY-0.1;
@@ -160,7 +160,7 @@ class ATragMX_Display {
h=1.024*4/3;
colorBackground[]={1,1,1,1};
colorText[]={1,1,1,1};
- text=PATHTOF(UI\atrag.paa);
+ text=PATHTOF(UI\atrag_d.paa);
};
class POWER: ATragMX_RscButton {
idc=-1;
diff --git a/addons/atragmx/UI/ATRAG.paa b/addons/atragmx/UI/ATRAG_D.paa
similarity index 100%
rename from addons/atragmx/UI/ATRAG.paa
rename to addons/atragmx/UI/ATRAG_D.paa
diff --git a/addons/atragmx/UI/ATRAG_N.paa b/addons/atragmx/UI/ATRAG_N.paa
new file mode 100644
index 0000000000..a588fdbc8b
Binary files /dev/null and b/addons/atragmx/UI/ATRAG_N.paa differ
diff --git a/addons/atragmx/XEH_postInit.sqf b/addons/atragmx/XEH_postInit.sqf
index 1e86838b8b..9663ec0a92 100644
--- a/addons/atragmx/XEH_postInit.sqf
+++ b/addons/atragmx/XEH_postInit.sqf
@@ -6,41 +6,41 @@ if ((profileNamespace getVariable ["ACE_ATragMX_profileNamespaceVersion", 0]) ==
GVAR(gunList) = profileNamespace getVariable "ACE_ATragMX_gunList";
} else {
// Profile Name, Muzzle Velocity, Zero Range, Scope Base Angle, AirFriction, Bore Height, Scope Unit, Scope Click Unit, Scope Click Number, Maximum Elevation, Dialed Elevation, Dialed Windage, Mass, Bullet Diameter, Rifle Twist, BC, Drag Model, Atmosphere Model
- GVAR(gunList) = [["12.7x108mm" , 820, 100, 0.0657, -0.0006400, 3.81, 0, 2, 10, 120, 0, 0, 48.28, 12.7, 38.10, 0.630, 1, "ASM" ],
+ GVAR(gunList) = [["12.7x108mm" , 820, 100, 0.0657, -0.0006469, 3.81, 0, 2, 10, 120, 0, 0, 48.28, 12.7, 38.10, 0.630, 1, "ASM" ],
- ["12.7x99mm AMAX" , 860, 100, 0.0612, -0.0003740, 3.81, 0, 2, 10, 120, 0, 0, 48.60, 12.7, 38.10, 1.050, 1, "ASM" ],
- ["12.7x99mm" , 900, 100, 0.0623, -0.0006000, 3.81, 0, 2, 10, 120, 0, 0, 41.92, 12.7, 38.10, 0.670, 1, "ASM" ],
+ ["12.7x99mm AMAX" , 860, 100, 0.0612, -0.0003722, 3.81, 0, 2, 10, 120, 0, 0, 48.60, 12.7, 38.10, 1.050, 1, "ASM" ],
+ ["12.7x99mm" , 900, 100, 0.0623, -0.0005942, 3.81, 0, 2, 10, 120, 0, 0, 41.92, 12.7, 38.10, 0.670, 1, "ASM" ],
- ["12.7x54mm" , 300, 100, 0.3395, -0.0001400, 3.81, 0, 2, 10, 120, 0, 0, 48.60, 12.7, 24.13, 1.050, 1, "ASM" ],
+ ["12.7x54mm" , 300, 100, 0.3395, -0.0001877, 3.81, 0, 2, 10, 120, 0, 0, 48.60, 12.7, 24.13, 1.050, 1, "ASM" ],
- [".408 Chey Tac" , 910, 100, 0.0571, -0.0003950, 3.81, 0, 2, 10, 120, 0, 0, 27.15, 10.4, 33.02, 0.970, 1, "ASM" ],
+ [".408 Chey Tac" , 910, 100, 0.0571, -0.0003958, 3.81, 0, 2, 10, 120, 0, 0, 27.15, 10.4, 33.02, 0.970, 1, "ASM" ],
- ["9.3×64mm" , 870, 100, 0.0619, -0.0010600, 3.81, 0, 2, 10, 120, 0, 0, 14.90, 9.30, 35.56, 0.368, 1, "ASM" ],
+ ["9.3×64mm" , 870, 100, 0.0619, -0.0010921, 3.81, 0, 2, 10, 120, 0, 0, 14.90, 9.30, 35.56, 0.368, 1, "ASM" ],
- [".338LM 250gr" , 880, 100, 0.0598, -0.0006060, 3.81, 0, 2, 10, 120, 0, 0, 16.20, 8.58, 25.40, 0.322, 7, "ICAO"],
- [".338LM 300gr" , 800, 100, 0.0677, -0.0005350, 3.81, 0, 2, 10, 120, 0, 0, 19.44, 8.58, 25.40, 0.381, 7, "ICAO"],
- [".338LM API526" , 895, 100, 0.0601, -0.0006730, 3.81, 0, 2, 10, 120, 0, 0, 16.39, 8.58, 25.40, 0.560, 1, "ASM" ],
+ [".338LM 250gr" , 880, 100, 0.0598, -0.0006234, 3.81, 0, 2, 10, 120, 0, 0, 16.20, 8.58, 25.40, 0.322, 7, "ICAO"],
+ [".338LM 300gr" , 800, 100, 0.0677, -0.0005397, 3.81, 0, 2, 10, 120, 0, 0, 19.44, 8.58, 25.40, 0.381, 7, "ICAO"],
+ [".338LM API526" , 895, 100, 0.0601, -0.0007120, 3.81, 0, 2, 10, 120, 0, 0, 16.39, 8.58, 25.40, 0.560, 1, "ASM" ],
- [".300WM Mk248 Mod 0", 900, 100, 0.0584, -0.0008300, 3.81, 0, 2, 10, 120, 0, 0, 13.31, 7.80, 25.40, 0.268, 7, "ICAO"],
- [".300WM Mk248 Mod 1", 867, 100, 0.0611, -0.0008150, 3.81, 0, 2, 10, 120, 0, 0, 14.26, 7.80, 25.40, 0.310, 7, "ICAO"],
- [".300WM Berger OTM" , 853, 100, 0.0622, -0.0007600, 3.81, 0, 2, 10, 120, 0, 0, 14.90, 7.80, 25.40, 0.368, 7, "ICAO"],
+ [".300WM Mk248 Mod 0", 900, 100, 0.0584, -0.0007305, 3.81, 0, 2, 10, 120, 0, 0, 13.31, 7.80, 25.40, 0.268, 7, "ICAO"],
+ [".300WM Mk248 Mod 1", 867, 100, 0.0611, -0.0006326, 3.81, 0, 2, 10, 120, 0, 0, 14.26, 7.80, 25.40, 0.310, 7, "ICAO"],
+ [".300WM Berger OTM" , 853, 100, 0.0622, -0.0005271, 3.81, 0, 2, 10, 120, 0, 0, 14.90, 7.80, 25.40, 0.368, 7, "ICAO"],
- ["7.62x54mmR" , 800, 100, 0.0692, -0.0010230, 3.81, 0, 2, 10, 120, 0, 0, 9.849, 7.92, 24.13, 0.400, 1, "ICAO"],
+ ["7.62x54mmR" , 800, 100, 0.0692, -0.0010165, 3.81, 0, 2, 10, 120, 0, 0, 9.849, 7.92, 24.13, 0.400, 1, "ICAO"],
- ["7.62x51mm M80" , 810, 100, 0.0679, -0.0010350, 3.81, 0, 2, 10, 120, 0, 0, 9.525, 7.82, 25.40, 0.200, 7, "ICAO"],
- ["7.62x51mm M118LR" , 780, 100, 0.0710, -0.0008525, 3.81, 0, 2, 10, 120, 0, 0, 11.34, 7.82, 25.40, 0.243, 7, "ICAO"],
- ["7.62x51mm Mk319" , 910, 100, 0.0585, -0.0010300, 3.81, 0, 2, 10, 120, 0, 0, 8.424, 7.82, 25.40, 0.377, 1, "ICAO"],
- ["7.62x51mm M993" , 930, 100, 0.0585, -0.0010300, 3.81, 0, 2, 10, 120, 0, 0, 8.230, 7.82, 25.40, 0.359, 1, "ICAO"],
- ["7.62x51mm Subsonic", 320, 100, 0.3060, -0.0004910, 3.81, 0, 2, 10, 120, 0, 0, 12.96, 7.82, 25.40, 0.235, 7, "ICAO"],
+ ["7.62x51mm M80" , 810, 100, 0.0679, -0.0010319, 3.81, 0, 2, 10, 120, 0, 0, 9.525, 7.82, 25.40, 0.200, 7, "ICAO"],
+ ["7.62x51mm M118LR" , 780, 100, 0.0710, -0.0008497, 3.81, 0, 2, 10, 120, 0, 0, 11.34, 7.82, 25.40, 0.243, 7, "ICAO"],
+ ["7.62x51mm Mk319" , 910, 100, 0.0585, -0.0010435, 3.81, 0, 2, 10, 120, 0, 0, 8.424, 7.82, 25.40, 0.377, 1, "ICAO"],
+ ["7.62x51mm M993" , 930, 100, 0.0585, -0.0010914, 3.81, 0, 2, 10, 120, 0, 0, 8.230, 7.82, 25.40, 0.359, 1, "ICAO"],
+ ["7.62x51mm Subsonic", 320, 100, 0.3060, -0.0004145, 3.81, 0, 2, 10, 120, 0, 0, 12.96, 7.82, 25.40, 0.235, 7, "ICAO"],
- ["6.5x39mm" , 800, 100, 0.0683, -0.0007850, 3.81, 0, 2, 10, 120, 0, 0, 7.970, 6.71, 22.86, 0.263, 7, "ICAO"],
- ["6.5x47mm Lapua" , 800, 100, 0.0682, -0.0007710, 3.81, 0, 2, 10, 120, 0, 0, 9.007, 6.71, 22.86, 0.290, 7, "ICAO"],
- ["6.5mm Creedmor" , 840, 100, 0.0637, -0.0006510, 3.81, 0, 2, 10, 120, 0, 0, 9.072, 6.71, 22.86, 0.317, 7, "ICAO"],
+ ["6.5x39mm" , 800, 100, 0.0683, -0.0007728, 3.81, 0, 2, 10, 120, 0, 0, 7.970, 6.71, 22.86, 0.263, 7, "ICAO"],
+ ["6.5x47mm Lapua" , 800, 100, 0.0682, -0.0006977, 3.81, 0, 2, 10, 120, 0, 0, 9.007, 6.71, 22.86, 0.290, 7, "ICAO"],
+ ["6.5mm Creedmor" , 840, 100, 0.0637, -0.0006136, 3.81, 0, 2, 10, 120, 0, 0, 9.072, 6.71, 22.86, 0.317, 7, "ICAO"],
- ["5.56x45mm M855" , 870, 100, 0.0626, -0.0012650, 3.81, 0, 2, 10, 120, 0, 0, 4.018, 5.70, 17.78, 0.151, 7, "ASM" ],
- ["5.56x45mm Mk262" , 820, 100, 0.0671, -0.0011250, 3.81, 0, 2, 10, 120, 0, 0, 4.990, 5.70, 17.78, 0.361, 1, "ASM" ],
- ["5.56x45mm Mk318" , 880, 100, 0.0616, -0.0011200, 3.81, 0, 2, 10, 120, 0, 0, 4.018, 5.70, 17.78, 0.307, 1, "ASM" ],
- ["5.56x45mm M995" , 869, 100, 0.0616, -0.0011200, 3.81, 0, 2, 10, 120, 0, 0, 4.536, 5.70, 17.78, 0.310, 1, "ASM" ]];
+ ["5.56x45mm M855" , 870, 100, 0.0626, -0.0013685, 3.81, 0, 2, 10, 120, 0, 0, 4.018, 5.70, 17.78, 0.151, 7, "ASM" ],
+ ["5.56x45mm Mk262" , 820, 100, 0.0671, -0.0011287, 3.81, 0, 2, 10, 120, 0, 0, 4.990, 5.70, 17.78, 0.361, 1, "ASM" ],
+ ["5.56x45mm Mk318" , 880, 100, 0.0616, -0.0013064, 3.81, 0, 2, 10, 120, 0, 0, 4.018, 5.70, 17.78, 0.307, 1, "ASM" ],
+ ["5.56x45mm M995" , 869, 100, 0.0616, -0.0012972, 3.81, 0, 2, 10, 120, 0, 0, 4.536, 5.70, 17.78, 0.310, 1, "ASM" ]];
[] call FUNC(clear_user_data);
profileNamespace setVariable ["ACE_ATragMX_gunList", GVAR(gunList)];
diff --git a/addons/atragmx/XEH_preInit.sqf b/addons/atragmx/XEH_preInit.sqf
index 62bf2181c7..0277de1c14 100644
--- a/addons/atragmx/XEH_preInit.sqf
+++ b/addons/atragmx/XEH_preInit.sqf
@@ -4,7 +4,6 @@ ADDON = false;
PREP(add_new_gun);
PREP(calculate_range_card);
-PREP(calculate_scope_base_angle);
PREP(calculate_solution);
PREP(calculate_target_range_assist);
PREP(calculate_target_solution);
diff --git a/addons/atragmx/functions/fnc_calculate_scope_base_angle.sqf b/addons/atragmx/functions/fnc_calculate_scope_base_angle.sqf
deleted file mode 100644
index fbd191bb79..0000000000
--- a/addons/atragmx/functions/fnc_calculate_scope_base_angle.sqf
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Author: Ruthberg
- * Calculates a new scope base angle
- *
- * Arguments:
- * 0: Bullet mass
- * 1: Bore height
- * 2: air friction
- * 3: muzzle velocity
- * 4: zero range
- *
- * Return Value:
- * scope base angle
- *
- * Example:
- * call ace_atragmx_calculate_scope_base_angle
- *
- * Public: No
- */
-#include "script_component.hpp"
-
-private ["_bulletMass", "_boreHeight", "_airFriction", "_muzzleVelocity", "_zeroRange"];
-_bulletMass = _this select 0;
-_boreHeight = _this select 1;
-_airFriction = _this select 2;
-_muzzleVelocity = _this select 3;
-_zeroRange = _this select 4;
-
-private ["_scopeBaseAngle"];
-_scopeBaseAngle = 0;
-
-private ["_temperature", "_barometricPressure", "_relativeHumidity"];
-_temperature = 15;
-_barometricPressure = 1013.25;
-_relativeHumidity = 0;
-
-private ["_result"];
-_result = [_scopeBaseAngle, _bulletMass, _boreHeight, _airFriction, _muzzleVelocity, _temperature, _barometricPressure, _relativeHumidity, 1000, [0, 0], 0, 0, 0, _zeroRange, _airFriction, 1, "ICAO", false, 1.5, 0, 0, 0] call FUNC(calculate_solution);
-
-_scopeBaseAngle + (_result select 0) / 60
diff --git a/addons/atragmx/functions/fnc_calculate_solution.sqf b/addons/atragmx/functions/fnc_calculate_solution.sqf
index 2049398a9c..869ce8d098 100644
--- a/addons/atragmx/functions/fnc_calculate_solution.sqf
+++ b/addons/atragmx/functions/fnc_calculate_solution.sqf
@@ -37,7 +37,7 @@
* 8: Spin drift (MOA)
*
* Example:
- * call ace_atragmx_calculate_target_range_assist
+ * call ace_atragmx_calculate_solution
*
* Public: No
*/
diff --git a/addons/atragmx/functions/fnc_create_dialog.sqf b/addons/atragmx/functions/fnc_create_dialog.sqf
index 6951137577..df71f9beb9 100644
--- a/addons/atragmx/functions/fnc_create_dialog.sqf
+++ b/addons/atragmx/functions/fnc_create_dialog.sqf
@@ -15,6 +15,9 @@
*/
#include "script_component.hpp"
+#define __dsp (uiNamespace getVariable "ATragMX_Display")
+#define __ctrlBackground (__dsp displayCtrl 720000)
+
if (GVAR(active)) exitWith { false };
if (underwater ACE_player) exitWith { false };
if (!("ACE_ATragMX" in (uniformItems ACE_player)) && !("ACE_ATragMX" in (vestItems ACE_player))) exitWith { false };
@@ -49,4 +52,11 @@ GVAR(showTargetSpeedAssistTimer) call FUNC(show_target_speed_assist_timer);
GVAR(active) = true;
+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))];
+}, 60, []] call cba_fnc_addPerFrameHandler;
+
true
diff --git a/addons/atragmx/functions/fnc_on_close_dialog.sqf b/addons/atragmx/functions/fnc_on_close_dialog.sqf
index 32ba4e4c43..46cbbfc146 100644
--- a/addons/atragmx/functions/fnc_on_close_dialog.sqf
+++ b/addons/atragmx/functions/fnc_on_close_dialog.sqf
@@ -1,4 +1,5 @@
#include "script_component.hpp"
uiNamespace setVariable ['ATragMX_Display', nil];
-GVAR(active) = false;
\ No newline at end of file
+GVAR(active) = false;
+[GVAR(DialogPFH)] call cba_fnc_removePerFrameHandler;
\ No newline at end of file
diff --git a/addons/atragmx/functions/fnc_parse_input.sqf b/addons/atragmx/functions/fnc_parse_input.sqf
index 31f38f63c9..ce566416f4 100644
--- a/addons/atragmx/functions/fnc_parse_input.sqf
+++ b/addons/atragmx/functions/fnc_parse_input.sqf
@@ -59,7 +59,7 @@ if (GVAR(currentUnit) == 1) then {
private ["_boreHeight", "_bulletMass", "_bulletDiameter", "_airFriction", "_rifleTwist", "_muzzleVelocity", "_zeroRange"];
_boreHeight = parseNumber(ctrlText 120000);
_bulletMass = parseNumber(ctrlText 120010);
-_bulletDiameter = parseNumber(ctrlText 120020);
+_bulletDiameter = parseNumber(ctrlText 120020) * 10;
if (missionNamespace getVariable [QEGVAR(advanced_ballistics,enabled), false]) then {
_airFriction = 0.1 max parseNumber(ctrlText 120030) min 2;
} else {
@@ -71,7 +71,7 @@ _zeroRange = parseNumber (ctrlText 120060);
if (GVAR(currentUnit) != 2) then {
_boreHeight = _boreHeight * 2.54;
_bulletMass = _bulletMass * 0.06479891;
- _bulletDiameter = _bulletDiameter * 10 * 2.54;
+ _bulletDiameter = _bulletDiameter * 2.54;
_rifleTwist = _rifleTwist * 2.54;
_muzzleVelocity = _muzzleVelocity / 3.2808399;
};
diff --git a/addons/atragmx/functions/fnc_target_speed_assist_timer.sqf b/addons/atragmx/functions/fnc_target_speed_assist_timer.sqf
index 6e47461cf3..9bc5b7e34f 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((time - _startTime) * 10) / 10)];
+ ctrlSetText [8006, Str(Round((ACE_time - _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((time - _startTime) * 10) / 10)];
+ ctrlSetText [9001, Str(Round((ACE_time - _startTime) * 10) / 10)];
- }, 0.1, [time]] call CBA_fnc_addPerFrameHandler;
+ }, 0.1, [ACE_time]] call CBA_fnc_addPerFrameHandler;
};
diff --git a/addons/atragmx/functions/fnc_update_gun_ammo_data.sqf b/addons/atragmx/functions/fnc_update_gun_ammo_data.sqf
index b11b214500..6332506006 100644
--- a/addons/atragmx/functions/fnc_update_gun_ammo_data.sqf
+++ b/addons/atragmx/functions/fnc_update_gun_ammo_data.sqf
@@ -30,7 +30,7 @@ if (GVAR(currentUnit) != 2) then {
if (GVAR(currentUnit) != 2) then {
ctrlSetText [120020, Str(Round((GVAR(workingMemory) select 13) / 10 / 2.54 * 1000) / 1000)];
} else {
- ctrlSetText [120020, Str(Round((GVAR(workingMemory) select 13) * 1000) / 1000)];
+ ctrlSetText [120020, Str(Round((GVAR(workingMemory) select 13) / 10 * 1000) / 1000)];
};
if (missionNamespace getVariable [QEGVAR(advanced_ballistics,enabled), false]) then {
ctrlSetText [120030, Str(Round((GVAR(workingMemory) select 15) * 1000) / 1000)];
diff --git a/addons/atragmx/initKeybinds.sqf b/addons/atragmx/initKeybinds.sqf
index 8bc37752f3..0638e5cea8 100644
--- a/addons/atragmx/initKeybinds.sqf
+++ b/addons/atragmx/initKeybinds.sqf
@@ -2,7 +2,10 @@
{
// Conditions: canInteract
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
- if (GVAR(active)) exitWith {false};
+ if (GVAR(active)) exitWith {
+ closeDialog 0;
+ false
+ };
// Statement
[] call FUNC(create_dialog);
false
diff --git a/addons/atragmx/script_component.hpp b/addons/atragmx/script_component.hpp
index 585070d401..40d62e440e 100644
--- a/addons/atragmx/script_component.hpp
+++ b/addons/atragmx/script_component.hpp
@@ -11,4 +11,4 @@
#include "\z\ace\addons\main\script_macros.hpp"
-#define ATRAGMX_PROFILE_NAMESPACE_VERSION 1.5
+#define ATRAGMX_PROFILE_NAMESPACE_VERSION 1.6
diff --git a/addons/attach/$PBOPREFIX$ b/addons/attach/$PBOPREFIX$
index 71a2f40af8..a647dc3672 100644
--- a/addons/attach/$PBOPREFIX$
+++ b/addons/attach/$PBOPREFIX$
@@ -1 +1 @@
-z\ace\Addons\attach
\ No newline at end of file
+z\ace\addons\attach
\ No newline at end of file
diff --git a/addons/attach/script_component.hpp b/addons/attach/script_component.hpp
index 6d468d89c1..409f74ab94 100644
--- a/addons/attach/script_component.hpp
+++ b/addons/attach/script_component.hpp
@@ -1,5 +1,5 @@
#define COMPONENT attach
-#include "\z\ace\Addons\main\script_mod.hpp"
+#include "\z\ace\addons\main\script_mod.hpp"
#ifdef DEBUG_ENABLED_ATTACH
#define DEBUG_MODE_FULL
@@ -9,4 +9,4 @@
#define DEBUG_SETTINGS DEBUG_SETTINGS_ATTACH
#endif
-#include "\z\ace\Addons\main\script_macros.hpp"
\ No newline at end of file
+#include "\z\ace\addons\main\script_macros.hpp"
\ No newline at end of file
diff --git a/addons/ballistics/CfgAmmo.hpp b/addons/ballistics/CfgAmmo.hpp
index 3ab265091e..74b8d1e4c3 100644
--- a/addons/ballistics/CfgAmmo.hpp
+++ b/addons/ballistics/CfgAmmo.hpp
@@ -20,11 +20,11 @@ class CfgAmmo {
};
class B_556x45_Ball : BulletBase {
- airFriction=-0.001265;
+ airFriction=-0.0013685;
hit=8;
typicalSpeed=750;
- tracerStartTime = 0.073; //M856 tracer burns out to 800m
- tracerEndTime = 1.579; //Time in seconds calculated with ballistics calculator
+ tracerStartTime=0.073; // M856 tracer burns out to 800m
+ tracerEndTime=1.57123; // Time in seconds calculated with ballistics calculator
ACE_caliber=5.69;
ACE_bulletLength=23.012;
ACE_bulletMass=4.0176;
@@ -37,7 +37,7 @@ class CfgAmmo {
ACE_barrelLengths[]={210.82, 238.76, 269.24, 299.72, 330.2, 360.68, 391.16, 419.1, 449.58, 480.06, 508.0, 609.6};
};
class ACE_556x45_Ball_Mk262 : B_556x45_Ball {
- airFriction=-0.001125;
+ airFriction=-0.0011287;
caliber=0.8;
deflecting=18;
hit=11;
@@ -54,7 +54,7 @@ class CfgAmmo {
ACE_barrelLengths[]={190.5, 368.3, 457.2, 508.0};
};
class ACE_556x45_Ball_Mk318 : B_556x45_Ball {
- airFriction=-0.001120;
+ airFriction=-0.0013064;
caliber=0.8;
deflecting=18;
hit=9;
@@ -71,7 +71,7 @@ class CfgAmmo {
ACE_barrelLengths[]={254.0, 393.7, 508.0};
};
class ACE_556x45_Ball_M995_AP : B_556x45_Ball {
- airFriction=-0.001120;
+ airFriction=-0.0012972;
caliber=1.6;
deflecting=18;
hit=6;
@@ -85,14 +85,14 @@ class CfgAmmo {
ACE_standardAtmosphere="ASM";
ACE_dragModel=1;
ACE_muzzleVelocities[]={820, 865, 880};
- ACE_barrelLengths[]={254.0, 393.7, 508.0};
+ ACE_barrelLengths[]={254.0, 368.3, 508.0};
};
class B_556x45_Ball_Tracer_Red;
class ACE_B_556x45_Ball_Tracer_Dim: B_556x45_Ball_Tracer_Red {
nvgOnly = 1;
};
class ACE_545x39_Ball_7N6M : B_556x45_Ball {
- airFriction=-0.001162;
+ airFriction=-0.001222;
caliber=0.6;
deflecting=18;
hit=7;
@@ -110,13 +110,13 @@ class CfgAmmo {
};
class B_556x45_Ball_Tracer_Green;
class ACE_545x39_Ball_7T3M : B_556x45_Ball_Tracer_Green {
- airFriction=-0.001162;
+ airFriction=-0.001222;
caliber=0.6;
deflecting=18;
hit=7;
typicalSpeed=883;
- tracerStartTime = 0.073; //7T3M tracer burns out to 850m
- tracerEndTime = 1.736; //Time in seconds calculated with ballistics calculator
+ tracerStartTime=0.073; // 7T3M tracer burns out to 850m
+ tracerEndTime=1.70236; // Time in seconds calculated with ballistics calculator
ACE_caliber=5.588;
ACE_bulletLength=21.59;
ACE_bulletMass=3.22704;
@@ -129,7 +129,7 @@ class CfgAmmo {
ACE_barrelLengths[]={254.0, 414.02, 508.0};
};
class B_65x39_Caseless : BulletBase {
- airFriction=-0.000785;
+ airFriction=-0.0007728;
typicalSpeed=800;
ACE_caliber=6.706;
ACE_bulletLength=32.893;
@@ -151,7 +151,7 @@ class CfgAmmo {
nvgOnly = 1;
};
class ACE_65x47_Ball_Scenar: B_65x39_Caseless {
- airFriction=-0.00078;
+ airFriction=-0.0006977;
typicalSpeed=820 ;
caliber=0.9;
ACE_caliber=6.706;
@@ -166,7 +166,7 @@ class CfgAmmo {
ACE_barrelLengths[]={254.0, 406.4, 508.0, 609.6, 660.4};
};
class ACE_65_Creedmor_Ball: B_65x39_Caseless {
- airFriction=-0.000651;
+ airFriction=-0.0006136;
typicalSpeed=860 ;
caliber=1.1;
ACE_caliber=6.706;
@@ -181,11 +181,11 @@ class CfgAmmo {
ACE_barrelLengths[]={254.0, 406.4, 508.0, 609.6, 660.4};
};
class B_762x51_Ball : BulletBase {
- airFriction=-0.001035;
+ airFriction=-0.0010319;
typicalSpeed=833;
hit=9;
- tracerStartTime = 0.073; //Based on the British L5A1 which burns out to 1000m
- tracerEndTime = 2.058; //Time in seconds calculated with ballistics calculator
+ tracerStartTime=0.073; // Based on the British L5A1 which burns out to 1000m
+ tracerEndTime=2.15957; // Time in seconds calculated with ballistics calculator
ACE_caliber=7.823;
ACE_bulletLength=28.956;
ACE_bulletMass=9.4608;
@@ -202,7 +202,7 @@ class CfgAmmo {
nvgOnly = 1;
};
class ACE_762x51_Ball_M118LR : B_762x51_Ball {
- airFriction=-0.0008525;
+ airFriction=-0.0008497;
caliber=1.8;
hit=16;
typicalSpeed=790;
@@ -218,7 +218,7 @@ class CfgAmmo {
ACE_barrelLengths[]={406.4, 508.0, 609.6, 660.4};
};
class ACE_762x51_Ball_Mk316_Mod_0 : B_762x51_Ball {
- airFriction=-0.0008525;
+ airFriction=-0.0008421;
caliber=1.8;
hit=16;
typicalSpeed=790;
@@ -234,7 +234,7 @@ class CfgAmmo {
ACE_barrelLengths[]={406.4, 508.0, 609.6, 660.4};
};
class ACE_762x51_Ball_Mk319_Mod_0 : B_762x51_Ball {
- airFriction=-0.00103;
+ airFriction=-0.0010435;
caliber=1.5;
hit=14;
typicalSpeed=900;
@@ -250,7 +250,7 @@ class CfgAmmo {
ACE_barrelLengths[]={330.2, 406.4, 508.0};
};
class ACE_762x51_Ball_M993_AP : B_762x51_Ball {
- airFriction=-0.00103;
+ airFriction=-0.0010914;
caliber=2.2;
hit=11;
typicalSpeed=910;
@@ -266,7 +266,7 @@ class CfgAmmo {
ACE_barrelLengths[]={330.2, 406.4, 508.0};
};
class ACE_762x51_Ball_Subsonic : B_762x51_Ball {
- airFriction=-0.000535;
+ airFriction=-0.0004145;
caliber=1;
hit=6;
typicalSpeed=320;
@@ -282,7 +282,7 @@ class CfgAmmo {
ACE_barrelLengths[]={406.4, 508.0, 609.6, 660.4};
};
class ACE_30_06_M1_Ball : B_762x51_Ball {
- airFriction=-0.0009;
+ airFriction=-0.0008290;
typicalSpeed=800;
caliber=2.0;
hit=10;
@@ -298,7 +298,7 @@ class CfgAmmo {
ACE_barrelLengths[]={254.0, 406.4, 508.0, 609.6, 660.4};
};
class ACE_7_Remington_Magnum_Ball : B_762x51_Ball {
- airFriction=-0.0008;
+ airFriction=-0.0005809;
typicalSpeed=820;
caliber=2.1;
hit=8;
@@ -314,7 +314,7 @@ class CfgAmmo {
ACE_barrelLengths[]={254.0, 406.4, 508.0, 609.6, 660.4};
};
class ACE_243_Winchester_Ball : B_762x51_Ball {
- airFriction=-0.00095;
+ airFriction=-0.0007010;
typicalSpeed=915;
caliber=2.3;
hit=6;
@@ -330,7 +330,7 @@ class CfgAmmo {
ACE_barrelLengths[]={254.0, 406.4, 508.0, 609.6, 660.4};
};
class ACE_762x67_Ball_Mk248_Mod_0 : B_762x51_Ball {
- airFriction=-0.000830;
+ airFriction=-0.0007305;
caliber=1.8;
hit=17;
typicalSpeed=900;
@@ -346,7 +346,7 @@ class CfgAmmo {
ACE_barrelLengths[]={508.0, 609.6, 660.4};
};
class ACE_762x67_Ball_Mk248_Mod_1 : B_762x51_Ball {
- airFriction=-0.000815;
+ airFriction=-0.0006326;
caliber=1.9;
hit=18;
typicalSpeed=867;
@@ -362,7 +362,7 @@ class CfgAmmo {
ACE_barrelLengths[]={508.0, 609.6, 660.4};
};
class ACE_762x67_Ball_Berger_Hybrid_OTM : B_762x51_Ball {
- airFriction=-0.00076;
+ airFriction=-0.0005271;
caliber=2.0;
hit=19;
typicalSpeed=853;
@@ -378,7 +378,7 @@ class CfgAmmo {
ACE_barrelLengths[]={508.0, 609.6, 660.4};
};
class B_762x54_Ball: B_762x51_Ball {
- airFriction=-0.001023;
+ airFriction=-0.0010165;
typicalSpeed=820;
ACE_caliber=7.925;
ACE_bulletLength=28.956;
@@ -392,7 +392,7 @@ class CfgAmmo {
ACE_barrelLengths[]={406.4, 508.0, 609.6, 660.4};
};
class ACE_762x54_Ball_7N14 : B_762x51_Ball {
- airFriction=-0.001023;
+ airFriction=-0.0010165;
caliber=1.5;
hit=15;
typicalSpeed=820;
@@ -409,12 +409,12 @@ class CfgAmmo {
};
class B_762x54_Tracer_Green;
class ACE_762x54_Ball_7T2 : B_762x54_Tracer_Green {
- airFriction=-0.001023;
+ airFriction=-0.0010369;
caliber=1.5;
hit=15;
typicalSpeed=800;
- tracerStartTime = 0.073; //Based on the 7T2 which burns three seconds
- tracerEndTime = 3;
+ tracerStartTime=0.073; // Based on the 7T2 which burns three seconds
+ tracerEndTime=3;
ACE_caliber=7.925;
ACE_bulletLength=28.956;
ACE_bulletMass=9.6552;
@@ -427,7 +427,7 @@ class CfgAmmo {
ACE_barrelLengths[]={406.4, 508.0, 609.6, 660.4};
};
class ACE_762x35_Ball : B_762x51_Ball {
- airFriction=-0.000821;
+ airFriction=-0.0012406;
caliber=1.5;
hit=11;
typicalSpeed=790;
@@ -443,7 +443,7 @@ class CfgAmmo {
ACE_barrelLengths[]={228.6, 406.4, 508.0};
};
class ACE_762x39_Ball : B_762x51_Ball {
- airFriction=-0.0015168;
+ airFriction=-0.0014519;
hit=12;
caliber=1.5;
typicalSpeed=716;
@@ -477,7 +477,7 @@ class CfgAmmo {
ACE_barrelLengths[]={254.0, 414.02, 508.0};
};
class B_9x21_Ball : BulletBase {
- airFriction=-0.00125;
+ airFriction=-0.0021165;
typicalSpeed=390;
hit=6;
ACE_caliber=9.042;
@@ -493,7 +493,7 @@ class CfgAmmo {
};
class ACE_9x18_Ball_57N181S : B_9x21_Ball {
hit=5;
- airFriction=-0.001234;
+ airFriction=-0.0015655;
typicalSpeed=298;
ACE_caliber=9.271;
ACE_bulletLength=15.494;
@@ -507,7 +507,7 @@ class CfgAmmo {
ACE_barrelLengths[]={96.52, 127.0, 228.6};
};
class ACE_9x19_Ball : B_9x21_Ball {
- airFriction=-0.001234;
+ airFriction=-0.0015833;
typicalSpeed=370;
hit=6;
ACE_caliber=9.017;
@@ -537,7 +537,7 @@ class CfgAmmo {
ACE_barrelLengths[]={101.6, 117.094, 228.6};
};
class ACE_765x17_Ball: B_9x21_Ball {
- airFriction=-0.001213;
+ airFriction=-0.001410;
typicalSpeed=282;
hit=7;
ACE_caliber=7.938;
@@ -552,7 +552,7 @@ class CfgAmmo {
ACE_barrelLengths[]={101.6, 127.0, 228.6};
};
class ACE_303_Ball : ACE_762x51_Ball_M118LR {
- airFriction=-0.00083;
+ airFriction=-0.0008410;
typicalSpeed=761;
caliber=2.0;
ACE_caliber=7.899;
@@ -567,7 +567,7 @@ class CfgAmmo {
ACE_barrelLengths[]={508.0, 609.6, 660.4};
};
class B_93x64_Ball : BulletBase {
- airFriction=-0.00106;
+ airFriction=-0.0010921;
typicalSpeed=880;
ACE_caliber=9.296;
ACE_bulletLength=34.29;
@@ -582,7 +582,7 @@ class CfgAmmo {
};
class B_408_Ball : BulletBase {
timeToLive=10;
- airFriction=-0.000395;
+ airFriction=-0.0003958;
typicalSpeed=910;
ACE_caliber=10.363;
ACE_bulletLength=54.0;
@@ -611,7 +611,7 @@ class CfgAmmo {
};
class B_338_Ball : BulletBase {
timeToLive=10;
- airFriction=-0.000606;
+ airFriction=-0.0006234;
typicalSpeed=915;
ACE_caliber=8.585;
ACE_bulletLength=39.573;
@@ -625,7 +625,7 @@ class CfgAmmo {
ACE_barrelLengths[]={508.0, 660.4, 711.2};
};
class B_338_NM_Ball : BulletBase {
- airFriction=-0.000537;
+ airFriction=-0.0005434;
typicalSpeed=820;
ACE_caliber=8.585;
ACE_bulletLength=43.18;
@@ -640,7 +640,7 @@ class CfgAmmo {
};
class ACE_338_Ball : B_338_Ball {
timeToLive=10;
- airFriction=-0.000535;
+ airFriction=-0.0005397;
typicalSpeed=826;
ACE_caliber=8.585;
ACE_bulletLength=43.18;
@@ -655,7 +655,7 @@ class CfgAmmo {
};
class ACE_338_Ball_API526 : B_338_Ball {
timeToLive=10;
- airFriction=-0.000673;
+ airFriction=-0.0007120;
caliber=2.8;
typicalSpeed=895;
ACE_caliber=8.585;
@@ -670,7 +670,7 @@ class CfgAmmo {
ACE_barrelLengths[]={508.0, 660.4, 711.2};
};
class B_127x54_Ball : BulletBase {
- airFriction=-0.00014;
+ airFriction=-0.0001877;
typicalSpeed=300;
ACE_caliber=12.954;
ACE_bulletLength=64.516;
@@ -685,7 +685,7 @@ class CfgAmmo {
};
class B_127x99_Ball : BulletBase {
timeToLive=10;
- airFriction=-0.0006;
+ airFriction=-0.0005942;
typicalSpeed=900;
ACE_caliber=12.954;
ACE_bulletLength=58.674;
@@ -700,7 +700,7 @@ class CfgAmmo {
};
class ACE_127x99_API : BulletBase {
timeToLive=10;
- airFriction=-0.0006;
+ airFriction=-0.0005886;
typicalSpeed=900;
hit=25;
caliber=4.0;
@@ -717,7 +717,7 @@ class CfgAmmo {
};
class ACE_127x99_Ball_AMAX : B_127x99_Ball {
timeToLive=10;
- airFriction=-0.000374;
+ airFriction=-0.0003722;
typicalSpeed=860;
caliber=3.0;
ACE_caliber=12.954;
@@ -733,7 +733,7 @@ class CfgAmmo {
};
class B_127x108_Ball : BulletBase {
timeToLive=10;
- airFriction=-0.00064;
+ airFriction=-0.0006469;
typicalSpeed=820;
ACE_caliber=12.979;
ACE_bulletLength=64.008;
@@ -747,7 +747,7 @@ class CfgAmmo {
ACE_barrelLengths[]={728.98};
};
class B_45ACP_Ball : BulletBase {
- airFriction=-0.0007182;
+ airFriction=-0.0007312;
typicalSpeed=250;
ACE_caliber=11.481;
ACE_bulletLength=17.272;
diff --git a/addons/ballistics/CfgMagazines.hpp b/addons/ballistics/CfgMagazines.hpp
index 32121e4e87..6d1a3c7b89 100644
--- a/addons/ballistics/CfgMagazines.hpp
+++ b/addons/ballistics/CfgMagazines.hpp
@@ -55,7 +55,7 @@ class CfgMagazines {
displayName = "$STR_ACE_30Rnd_556x45_Stanag_M995_AP_mag_Name";
displayNameShort = "$STR_ACE_30Rnd_556x45_Stanag_M995_AP_mag_NameShort";
descriptionShort = "$STR_ACE_30Rnd_556x45_Stanag_M995_AP_mag_Description";
- initSpeed = 1046;
+ initSpeed = 865;
};
class ACE_30Rnd_556x45_Stanag_Mk262_mag: 30Rnd_556x45_Stanag {
author = "$STR_ACE_Common_ACETeam";
diff --git a/addons/ballistics/CfgWeapons.hpp b/addons/ballistics/CfgWeapons.hpp
index 571112697a..e0cc3f203d 100644
--- a/addons/ballistics/CfgWeapons.hpp
+++ b/addons/ballistics/CfgWeapons.hpp
@@ -552,7 +552,7 @@ class CfgWeapons {
};
initSpeed = -1.0;
ACE_barrelTwist=381.0;
- ACE_barrelLength=929.64;
+ ACE_barrelLength=730;
};
class srifle_DMR_02_F: DMR_02_base_F {
magazines[] = {
diff --git a/addons/ballistics/stringtable.xml b/addons/ballistics/stringtable.xml
index 85ac44b4de..17c3238c66 100644
--- a/addons/ballistics/stringtable.xml
+++ b/addons/ballistics/stringtable.xml
@@ -1595,6 +1595,7 @@
[ACE] Ammo Supply Crate
[ACE] Skrzynka z amunicją
+ [ACE] Caja de suministros de munición
-
+
\ No newline at end of file
diff --git a/addons/captives/functions/fnc_handleKilled.sqf b/addons/captives/functions/fnc_handleKilled.sqf
index 720bde9df7..3eed932d5a 100644
--- a/addons/captives/functions/fnc_handleKilled.sqf
+++ b/addons/captives/functions/fnc_handleKilled.sqf
@@ -17,8 +17,10 @@
PARAMS_1(_oldUnit);
+if (!local _oldUnit) exitWith {};
+
if (_oldUnit getVariable [QGVAR(isHandcuffed), false]) then {
- [_oldUnit, false] call FUNC(setSurrendered);
+ [_oldUnit, false] call FUNC(setHandcuffed);
};
if (_oldUnit getVariable [QGVAR(isEscorting), false]) then {
diff --git a/addons/captives/functions/fnc_setSurrendered.sqf b/addons/captives/functions/fnc_setSurrendered.sqf
index 22de70921d..c1a34b636c 100644
--- a/addons/captives/functions/fnc_setSurrendered.sqf
+++ b/addons/captives/functions/fnc_setSurrendered.sqf
@@ -89,7 +89,7 @@ if (_state) then {
PARAMS_2(_args,_pfID);
EXPLODE_2_PVT(_args,_unit,_maxTime);
//If waited long enough or they re-surrendered or they are unconscious, exit loop
- if ((time > _maxTime) || {_unit getVariable [QGVAR(isSurrendering), false]} || {_unit getVariable ["ACE_isUnconscious", false]}) exitWith {
+ if ((ACE_time > _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)
@@ -98,6 +98,6 @@ if (_state) then {
//Break out of hands up animation loop
[_unit, "ACE_AmovPercMstpSsurWnonDnon_AmovPercMstpSnonWnonDnon", 2] call EFUNC(common,doAnimation);
};
- }, 0, [_unit, (time + 20)]] call CBA_fnc_addPerFrameHandler;
+ }, 0, [_unit, (ACE_time + 20)]] call CBA_fnc_addPerFrameHandler;
};
};
diff --git a/addons/captives/stringtable.xml b/addons/captives/stringtable.xml
index 07cf780e19..071282c5f9 100644
--- a/addons/captives/stringtable.xml
+++ b/addons/captives/stringtable.xml
@@ -196,10 +196,12 @@
Make Unit Surrender
Poddaj się!
+ Hacer que la unidad se rinda
Sync a unit to make them surrender.<br />Source: ace_captives
Zsynchronizuj z jednostką aby sprawić by się poddała<br />Źródło: ace_captives
+ Sincroniza una unidad para hacer que se rinda.<br />Fuente: ace_captives
-
+
\ No newline at end of file
diff --git a/addons/common/XEH_postInit.sqf b/addons/common/XEH_postInit.sqf
index c76b5bee7b..20fb4694b0 100644
--- a/addons/common/XEH_postInit.sqf
+++ b/addons/common/XEH_postInit.sqf
@@ -3,12 +3,6 @@
//IGNORE_PRIVATE_WARNING("_handleNetEvent", "_handleRequestAllSyncedEvents", "_handleRequestSyncedEvent", "_handleSyncedEvent");
-// Load settings from profile
-if (hasInterface) then {
- call FUNC(loadSettingsFromProfile);
- call FUNC(loadSettingsLocalizedText);
-};
-
// Listens for global "SettingChanged" events, to update the force status locally
["SettingChanged", {
PARAMS_2(_name,_value);
@@ -41,7 +35,7 @@ if (hasInterface) then {
// hack to get PFH to work in briefing
[QGVAR(onBriefingPFH), "onEachFrame", {
- if (time > 0) exitWith {
+ if (ACE_time > 0) exitWith {
[QGVAR(onBriefingPFH), "onEachFrame"] call BIS_fnc_removeStackedEventHandler;
};
@@ -223,7 +217,7 @@ GVAR(OldIsCamera) = false;
["activeCameraChanged", [ACE_player, _isCamera]] call FUNC(localEvent);
};
-}, 1, []] call cba_fnc_addPerFrameHandler; // feel free to decrease the sleep time if you need it.
+}, 1, []] call cba_fnc_addPerFrameHandler; // feel free to decrease the sleep ACE_time if you need it.
[QGVAR(StateArrested),false,true,QUOTE(ADDON)] call FUNC(defineVariable);
@@ -244,7 +238,7 @@ GVAR(OldIsCamera) = false;
// Lastly, do JIP events
// JIP Detection and event trigger. Run this at the very end, just in case anything uses it
-if(isMultiplayer && { time > 0 || isNull player } ) then {
+if(isMultiplayer && { ACE_time > 0 || isNull player } ) then {
// We are jipping! Get ready and wait, and throw the event
[{
if(!(isNull player)) then {
@@ -261,3 +255,19 @@ if(isMultiplayer && { time > 0 || isNull player } ) then {
call compile GVAR(checkPBOsWhitelist)
] call FUNC(checkPBOs)
}] call FUNC(addEventHandler);
+
+GVAR(commonPostInited) = true;
+
+// Create a pfh to wait until all postinits are ready and settings are initialized
+[{
+ // If post inits are not ready then wait
+ if !(SLX_XEH_MACHINE select 8) exitWith {};
+ // If settings are not initialized then wait
+ if !(GVAR(SettingsInitialized)) exitWith {};
+
+ [(_this select 1)] call cba_fnc_removePerFrameHandler;
+
+ diag_log text format["[ACE] Settings initialized"];
+ ["SettingsInitialized", []] call FUNC(localEvent);
+
+}, 0, []] call cba_fnc_addPerFrameHandler;
diff --git a/addons/common/XEH_preInit.sqf b/addons/common/XEH_preInit.sqf
index ce7623ea38..fbd5f3ddd5 100644
--- a/addons/common/XEH_preInit.sqf
+++ b/addons/common/XEH_preInit.sqf
@@ -180,6 +180,7 @@ PREP(toHex);
PREP(toNumber);
PREP(uniqueElementsOnly);
PREP(unloadPerson);
+PREP(unloadPersonLocal);
PREP(unmuteUnit);
PREP(useItem);
PREP(useMagazine);
@@ -286,15 +287,30 @@ PREP(_handleRequestSyncedEvent);
PREP(_handleRequestAllSyncedEvents);
GVAR(syncedEvents) = HASH_CREATE;
+GVAR(waitAndExecArray) = [];
// @TODO: Generic local-managed global-synced objects (createVehicleLocal)
//Debug
ACE_COUNTERS = [];
-// Load settings
+// Wait for server settings to arrive
+GVAR(SettingsInitialized) = false;
+["ServerSettingsReceived", {
+ diag_log text format["[ACE] Settings received from server"];
+ // Load user settings from profile
+ if (hasInterface) then {
+ call FUNC(loadSettingsFromProfile);
+ call FUNC(loadSettingsLocalizedText);
+ };
+ GVAR(SettingsInitialized) = true;
+}] call FUNC(addEventhandler);
+
+// Load settings on the server and broadcast them
if (isServer) then {
call FUNC(loadSettingsOnServer);
+ // Raise a local event for other modules to listen too
+ ["ServerSettingsReceived", []] call FUNC(localEvent);
};
ACE_player = player;
@@ -321,6 +337,8 @@ ACE_realTime = diag_tickTime;
ACE_virtualTime = diag_tickTime;
ACE_diagTime = diag_tickTime;
ACE_gameTime = time;
+ACE_pausedTime = 0;
+ACE_virtualPausedTime = 0;
PREP(timePFH);
[FUNC(timePFH), 0, []] call cba_fnc_addPerFrameHandler;
diff --git a/addons/common/functions/fnc__handleSyncedEvent.sqf b/addons/common/functions/fnc__handleSyncedEvent.sqf
index 9807896358..053ecb60b7 100644
--- a/addons/common/functions/fnc__handleSyncedEvent.sqf
+++ b/addons/common/functions/fnc__handleSyncedEvent.sqf
@@ -28,7 +28,7 @@ if(isServer) then {
if(_ttl > -1) then {
_internalData = HASH_GET(GVAR(syncedEvents),_name);
_eventLog = _internalData select 1;
- _eventLog pushback [diag_tickTime, _args, _ttl];
+ _eventLog pushback [ACE_diagTime, _args, _ttl];
};
};
diff --git a/addons/common/functions/fnc_addScrollWheelEventHandler.sqf b/addons/common/functions/fnc_addScrollWheelEventHandler.sqf
index 9f63719649..d079b4b17e 100644
--- a/addons/common/functions/fnc_addScrollWheelEventHandler.sqf
+++ b/addons/common/functions/fnc_addScrollWheelEventHandler.sqf
@@ -1,7 +1,7 @@
/*
* Author: commy2
*
- * Add an event handler that executes every time the scroll wheel is used. This is needed, because adding a MouseZ display event handler to display 46 will break in save games. Argument will be [Interval] where 'Interval' is a number.
+ * Add an event handler that executes every ACE_time the scroll wheel is used. This is needed, because adding a MouseZ display event handler to display 46 will break in save games. Argument will be [Interval] where 'Interval' is a number.
*
* Argument:
* 0: Code to execute (Code or String)
diff --git a/addons/common/functions/fnc_cachedCall.sqf b/addons/common/functions/fnc_cachedCall.sqf
index c03d498eaa..f9d9c74dd3 100644
--- a/addons/common/functions/fnc_cachedCall.sqf
+++ b/addons/common/functions/fnc_cachedCall.sqf
@@ -1,6 +1,6 @@
/*
* Author: esteldunedain and Jaynus
- * Returns the result of the function and caches it up to a given time or event
+ * Returns the result of the function and caches it up to a given ACE_time or event
*
* Arguments:
* 0: Parameters
@@ -21,8 +21,8 @@ PARAMS_5(_params,_function,_namespace,_uid,_duration);
//IGNORE_PRIVATE_WARNING("_eventName");
-if (((_namespace getVariable [_uid, [-99999]]) select 0) < diag_tickTime) then {
- _namespace setVariable [_uid, [diag_tickTime + _duration, _params call _function]];
+if (((_namespace getVariable [_uid, [-99999]]) select 0) < ACE_diagTime) then {
+ _namespace setVariable [_uid, [ACE_diagTime + _duration, _params call _function]];
// Does the cache needs to be cleared on an event?
if (count _this > 5) then {
diff --git a/addons/common/functions/fnc_displayIcon.sqf b/addons/common/functions/fnc_displayIcon.sqf
index 6561dbf63b..2fd5245465 100644
--- a/addons/common/functions/fnc_displayIcon.sqf
+++ b/addons/common/functions/fnc_displayIcon.sqf
@@ -86,11 +86,11 @@ _refresh = {
if (_show) then {
if ({(_x select 0 == _iconId)} count _list == 0) then {
- _list pushback [_iconId, _icon, _color, time];
+ _list pushback [_iconId, _icon, _color, ACE_time];
} else {
{
if (_x select 0 == _iconId) exitwith {
- _list set [_foreachIndex, [_iconId, _icon, _color, time]];
+ _list set [_foreachIndex, [_iconId, _icon, _color, ACE_time]];
};
} forEach _list;
};
diff --git a/addons/common/functions/fnc_displayText.sqf b/addons/common/functions/fnc_displayText.sqf
index ced1fbb4af..22349962ac 100644
--- a/addons/common/functions/fnc_displayText.sqf
+++ b/addons/common/functions/fnc_displayText.sqf
@@ -36,7 +36,7 @@ if (isNil "_sound") then {_sound = DEFAULT_PLAY_SOUND};
if (isNil "_delay") then {_delay = DEFAULT_DELAY};
if (isNil "_priority") then {_priority = DEFAULT_PRIORITY};
-_time = time;
+_time = ACE_time;
if (_time > _lastHintTime + _delay || {_priority >= _lastHintPriority}) then {
hintSilent _text;
if (_sound) then {playSound "ACE_Sound_Click"};
diff --git a/addons/common/functions/fnc_getDeathAnim.sqf b/addons/common/functions/fnc_getDeathAnim.sqf
index 1e84224b0f..539c8d2616 100644
--- a/addons/common/functions/fnc_getDeathAnim.sqf
+++ b/addons/common/functions/fnc_getDeathAnim.sqf
@@ -1,6 +1,6 @@
/*
* Author: Glowbal, PabstMirror
- * Get the death animation for the unit at current time
+ * Get the death animation for the unit at current ACE_time
*
* Arguments:
* 0: unit