diff --git a/addons/diagnostic/fnc_projectileTracking_drawProjectilePaths.sqf b/addons/diagnostic/fnc_projectileTracking_drawProjectilePaths.sqf index fe0d941dd..2001edc2a 100644 --- a/addons/diagnostic/fnc_projectileTracking_drawProjectilePaths.sqf +++ b/addons/diagnostic/fnc_projectileTracking_drawProjectilePaths.sqf @@ -52,7 +52,11 @@ for "_index" from 0 to _maxLines do { private _green = _currentSpeed / _startSpeed; private _red = 1 - _green; - drawLine3D [_currentProjectileData select 0, _nextProjectileData select 0, [_red, _green, 0, 1]]; + drawLine3D [ + ASLToAGL (_currentProjectileData select 0), + ASLToAGL (_nextProjectileData select 0), + [_red, _green, 0, 1] + ]; } forEach _projectileData; }; diff --git a/addons/diagnostic/fnc_projectileTracking_handleFired.sqf b/addons/diagnostic/fnc_projectileTracking_handleFired.sqf index dd5177937..9f8647309 100644 --- a/addons/diagnostic/fnc_projectileTracking_handleFired.sqf +++ b/addons/diagnostic/fnc_projectileTracking_handleFired.sqf @@ -35,7 +35,7 @@ if (_index <= (count GVAR(projectileData) - 1)) then { }; // using 0.1 to improve performance, we don't need that many bullet position to draw a line -[FUNC(projectileTracking_trackProjectile), 0.1, [_projectile, _index, [(getPos _projectile), vectorMagnitude (velocity _projectile)]]] call CBA_fnc_addPerFrameHandler; +[FUNC(projectileTracking_trackProjectile), 0.1, [_projectile, _index, [getPosASL _projectile, vectorMagnitude velocity _projectile]]] call CBA_fnc_addPerFrameHandler; private _maxLines = GVAR(projectileMaxLines) min 20; diff --git a/addons/diagnostic/fnc_projectileTracking_trackProjectile.sqf b/addons/diagnostic/fnc_projectileTracking_trackProjectile.sqf index 8e0dc6ff8..8e8b4b0d0 100644 --- a/addons/diagnostic/fnc_projectileTracking_trackProjectile.sqf +++ b/addons/diagnostic/fnc_projectileTracking_trackProjectile.sqf @@ -45,7 +45,7 @@ if (!isNull _projectile) then { _data = [_handle, _bulletData]; GVAR(projectileData) set [_index, _data]; }; - _bulletData pushBack [(getPos _projectile), _speed]; + _bulletData pushBack [getPosASL _projectile, _speed]; } else { [_handle] call CBA_fnc_removePerFrameHandler;