Skip to content

Commit 1bc375a

Browse files
committed
Merge branch 'master' into pr/9217
2 parents e6f5aba + 4f86527 commit 1bc375a

103 files changed

Lines changed: 1462 additions & 433 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

addons/advanced_fatigue/functions/fnc_renderDebugLines.sqf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ addMissionEventHandler ["Draw3D", {
1919
private _normal = surfaceNormal (getPosWorld ACE_player);
2020
private _beg = (getPosWorld ACE_player) vectorAdd (_normal vectorMultiply 0.5);
2121
private _end = _beg vectorAdd (_normal vectorMultiply 2);
22-
drawLine3D [ASLToATL _beg, ASLToATL _end, [0, 1, 0, 1]];
22+
drawLine3D [ASLToAGL _beg, ASLToAGL _end, [0, 1, 0, 1]];
2323

2424
private _side = vectorNormalized (_normal vectorCrossProduct [0, 0, 1]);
2525
private _end = _beg vectorAdd (_side vectorMultiply 2);
26-
drawLine3D [ASLToATL _beg, ASLToATL _end, [0, 0, 1, 1]];
26+
drawLine3D [ASLToAGL _beg, ASLToAGL _end, [0, 0, 1, 1]];
2727

2828
private _up = vectorNormalized (_normal vectorCrossProduct _side);
2929
private _end = _beg vectorAdd (_up vectorMultiply 2);
30-
drawLine3D [ASLToATL _beg, ASLToATL _end, [1, 0, 0, 1]];
30+
drawLine3D [ASLToAGL _beg, ASLToAGL _end, [1, 0, 0, 1]];
3131

3232
private _movementVector = vectorNormalized (velocity ACE_player);
3333
private _end = _beg vectorAdd (_movementVector vectorMultiply 2);
34-
drawLine3D [ASLToATL _beg, ASLToATL _end, [1, 1, 0, 1]];
34+
drawLine3D [ASLToAGL _beg, ASLToAGL _end, [1, 1, 0, 1]];
3535

3636
private _sideVector = vectorNormalized (_movementVector vectorCrossProduct _normal);
3737
_sideVector set [2, 0];
3838
private _end = _beg vectorAdd (_sideVector vectorMultiply 2);
39-
drawLine3D [ASLToATL _beg, ASLToATL _end, [0, 1, 1, 1]];
39+
drawLine3D [ASLToAGL _beg, ASLToAGL _end, [0, 1, 1, 1]];
4040
}];

addons/ai/functions/fnc_drawCuratorGarrisonPathing.sqf

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,33 +25,8 @@ private _unitMoveList = missionNamespace getVariable [QGVAR(garrison_unitMoveLis
2525
{
2626
_x params ["_unit", "_pos"];
2727

28-
switch (true) do {
29-
case (surfaceIsWater (getPos _unit) && {surfaceIsWater _pos}) : {
30-
for "_i" from 0 to 3 do {
31-
drawLine3D [_unit modelToWorldVisualWorld [0,0,1], (AGLToASL _pos), [1,0,0,1]];
32-
};
33-
drawIcon3D ["\a3\ui_f\data\map\groupicons\waypoint.paa", [1,0,0,1], (AGLToASL _pos), 0.75, 0.75, 0.75];
34-
};
35-
36-
case (!surfaceIsWater (getPos _unit) && {!surfaceIsWater _pos}) : {
37-
for "_i" from 0 to 3 do {
38-
drawLine3D [_unit modelToWorldVisual [0,0,1], _pos, [1,0,0,1]];
39-
};
40-
drawIcon3D ["\a3\ui_f\data\map\groupicons\waypoint.paa", [1,0,0,1], _pos, 0.75, 0.75, 0.75];
41-
};
42-
43-
case (!surfaceIsWater (getPos _unit) && {surfaceIsWater _pos}) : {
44-
for "_i" from 0 to 3 do {
45-
drawLine3D [_unit modelToWorldVisual [0,0,1], (AGLToASL _pos), [1,0,0,1]];
46-
};
47-
drawIcon3D ["\a3\ui_f\data\map\groupicons\waypoint.paa", [1,0,0,1], (AGLToASL _pos), 0.75, 0.75, 0.75];
48-
};
49-
50-
case (surfaceIsWater (getPos _unit) && {!surfaceIsWater _pos}) : {
51-
for "_i" from 0 to 3 do {
52-
drawLine3D [_unit modelToWorldVisualWorld [0,0,1], _pos, [1,0,0,1]];
53-
};
54-
drawIcon3D ["\a3\ui_f\data\map\groupicons\waypoint.paa", [1,0,0,1], _pos, 0.75, 0.75, 0.75];
55-
};
28+
for "_i" from 0 to 3 do {
29+
drawLine3D [_unit modelToWorldVisual [0,0,1], _pos, [1,0,0,1]];
5630
};
31+
drawIcon3D ["\a3\ui_f\data\map\groupicons\waypoint.paa", [1,0,0,1], _pos, 0.75, 0.75, 0.75];
5732
} forEach _unitMoveList;

addons/common/CfgSounds.hpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,20 @@ class CfgSounds {
44
sound[] = {QPATHTOF(sounds\ACE_click.wav), 1, 1, 200};
55
titles[] = {};
66
};
7+
class ACE_Sound_Click_10db {
8+
sound[] = {QPATHTOF(sounds\ACE_click.wav), "db-10", 1, 200};
9+
titles[] = {};
10+
};
11+
class ACE_Sound_Click_20db {
12+
sound[] = {QPATHTOF(sounds\ACE_click.wav), "db-20", 1, 200};
13+
titles[] = {};
14+
};
15+
class ACE_Sound_Click_30db {
16+
sound[] = {QPATHTOF(sounds\ACE_click.wav), "db-30", 1, 200};
17+
titles[] = {};
18+
};
19+
class ACE_Sound_Click_40db {
20+
sound[] = {QPATHTOF(sounds\ACE_click.wav), "db-40", 1, 200};
21+
titles[] = {};
22+
};
723
};

addons/common/XEH_PREP.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ PREP(unloadPerson);
214214
PREP(unloadPersonLocal);
215215
PREP(unloadUnitWeapon);
216216
PREP(unmuteUnit);
217+
PREP(updatePlayerVehAttenuation);
217218
PREP(useItem);
218219
PREP(useMagazine);
219220
PREP(watchVariable);

addons/common/XEH_postInit.sqf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,11 @@ GVAR(OldIsCamera) = false;
375375
["ace_activeCameraChanged", [_player, GVAR(OldIsCamera)]] call CBA_fnc_localEvent;
376376
}, true] call CBA_fnc_addPlayerEventHandler;
377377

378+
// Update vehicle audio attenuation when player vehicle changes
379+
GVAR(playerVehAttenuation) = 1;
380+
["vehicle", LINKFUNC(updatePlayerVehAttenuation), true] call CBA_fnc_addPlayerEventHandler;
381+
["turret", LINKFUNC(updatePlayerVehAttenuation), false] call CBA_fnc_addPlayerEventHandler;
382+
378383
// Add event handler for UAV control change
379384
ACE_controlledUAV = [objNull, objNull, [], ""];
380385
addMissionEventHandler ["PlayerViewChanged", {

addons/common/functions/fnc_checkFiles.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ if (isMultiplayer) then {
230230
// No need to show which addons, just show the mod that the compats are for
231231
if (_additionalCompats isNotEqualTo []) exitWith {
232232
// Fix is easy
233-
private _fixMsg = format ["Fix: %1", "Make sure your mod list matches or add those mods to the server. Check your server files and '-mod=' parameter if you're the server administrator."];
233+
private _fixMsg = format ["Fix: %1", "Make sure your mod list matches or add those mods to the server.<br/><br/>If you're the server administrator, repair the mods below, check your server mod files and '-mod=' parameter."];
234234

235235
private _additionalMods = [];
236236
private _loadedModsInfo = getLoadedModsInfo;
@@ -246,7 +246,7 @@ if (isMultiplayer) then {
246246
} forEach _additionalCompats;
247247

248248
private _reasonMsg = format ["Reason: %1", "Client has extra mods requiring compats loaded (listed below)"];
249-
private _infoMsg = format ["Additional compatibility is being loaded for: %1", _additionalMods joinString ", "];
249+
private _infoMsg = format ["Additional compatibility is being loaded for:<br/>%1", _additionalMods joinString ", "];
250250

251251
[_title, _reasonMsg, _fixMsg, _infoMsg, _infoMsg] // return
252252
};

addons/common/functions/fnc_checkPBOs.sqf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ if (!_checkAll) exitWith {};
3838
if (!isServer) then {
3939
["ace_versioning_clientCheckDone", {
4040
// Don't let this event get triggered again
41-
//IGNORE_PRIVATE_WARNING ["_thisType", "_thisId", "_thisArgs"];
4241
[_thisType, _thisId] call CBA_fnc_removeEventHandler;
4342

4443
params ["_clientErrors"];

addons/common/functions/fnc_getMGRSdata.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private _UTM = [_long, _lat] call BIS_fnc_posDegToUTM;
3636
private _easting = _UTM select 0;
3737
private _northing = _UTM select 1;
3838
//private _zone = _UTM select 2;
39-
TRACE_4("",_UTM,_easting,_northing,_zone);
39+
TRACE_3("",_UTM,_easting,_northing);
4040

4141
/*
4242
private _band = switch (true) do {

addons/common/functions/fnc_getTargetAzimuthAndInclination.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* Public: Yes
1717
*/
1818

19-
private _position = ATLToASL positionCameraToWorld [0, 0, 0];
20-
private _direction = ATLToASL positionCameraToWorld [0, 0, 1];
19+
private _position = AGLToASL positionCameraToWorld [0, 0, 0];
20+
private _direction = AGLToASL positionCameraToWorld [0, 0, 1];
2121

2222
private _azimuth = ((_direction select 0) - (_position select 0)) atan2 ((_direction select 1) - (_position select 1));
2323
private _inclination = asin ((_direction select 2) - (_position select 2));

addons/common/functions/fnc_getTargetObject.sqf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717

1818
params ["_maxDistance"];
1919

20-
private _position = ATLToASL positionCameraToWorld [0, 0, 0];
21-
_position set [2, (_position select 2) - (getTerrainHeightASL _position min 0)];
20+
private _position = AGLToASL positionCameraToWorld [0, 0, 0];
2221

23-
private _laser = ATLToASL positionCameraToWorld [0, 0, _maxDistance];
24-
_laser set [2, (_laser select 2) - (getTerrainHeightASL _laser min 0)];
22+
private _laser = AGLToASL positionCameraToWorld [0, 0, _maxDistance];
2523

2624
private _intersects = lineIntersectsObjs [_position, _laser, objNull, objNull, true, 2];
2725

0 commit comments

Comments
 (0)