diff --git a/addons/missileguidance/functions/fnc_changeMissileDirection.sqf b/addons/missileguidance/functions/fnc_changeMissileDirection.sqf index f9a2493955..77858401ba 100644 --- a/addons/missileguidance/functions/fnc_changeMissileDirection.sqf +++ b/addons/missileguidance/functions/fnc_changeMissileDirection.sqf @@ -2,6 +2,7 @@ /* * Author: jaynus / nou * Change a projectile's direction, maintaing speed + * No longer used in guidancePFH, kept for backwards compatibility * * Arguments: * 0: Projectile diff --git a/addons/missileguidance/functions/fnc_checkLos.sqf b/addons/missileguidance/functions/fnc_checkLos.sqf index f39d7fa6c6..242b595ab8 100644 --- a/addons/missileguidance/functions/fnc_checkLos.sqf +++ b/addons/missileguidance/functions/fnc_checkLos.sqf @@ -25,7 +25,7 @@ if (_checkVisibilityTest) exitWith { _visibility > 0.001 }; if ((isNil "_seeker") || {isNil "_target"}) exitWith { - ERROR_2("nil %1->%2",_seeker,_target); + ERROR_2("nil [%1]->[%2]",_seeker,_target); false }; diff --git a/addons/missileguidance/functions/fnc_doAttackProfile.sqf b/addons/missileguidance/functions/fnc_doAttackProfile.sqf index 3c7b80b106..3c74ab87c6 100644 --- a/addons/missileguidance/functions/fnc_doAttackProfile.sqf +++ b/addons/missileguidance/functions/fnc_doAttackProfile.sqf @@ -25,7 +25,7 @@ private _attackProfileFunction = getText (configFile >> QGVAR(AttackProfiles) >> private _attackProfilePos = _this call (missionNamespace getVariable _attackProfileFunction); if ((isNil "_attackProfilePos") || {_attackProfilePos isEqualTo [0,0,0]}) exitWith { - ERROR_1("attack profile %1 returned bad pos",_attackProfilePos); + ERROR_2("attack profile [%1] returned bad pos %2",_attackProfileName,_attackProfilePos); [0,0,0] }; diff --git a/addons/missileguidance/functions/fnc_guidancePFH.sqf b/addons/missileguidance/functions/fnc_guidancePFH.sqf index 3c67b4b126..28f677bbdd 100644 --- a/addons/missileguidance/functions/fnc_guidancePFH.sqf +++ b/addons/missileguidance/functions/fnc_guidancePFH.sqf @@ -33,29 +33,8 @@ if (!alive _projectile || isNull _projectile || isNull _shooter) exitWith { }; if (_showTrail) then { - drop [ - "\a3\data_f\kouleSvetlo", "", "Billboard", - 100, - 0.03, - _projectile modelToWorld [0, 0, 0], - [0, 0, 0], - 0, - 1.25, - 1, - 0.05, - [0.5], - [TRAIL_COLOUR(1)], - [0], - 0, - 0, - "", - "", - "", - 0, - false, - -1, - [TRAIL_COLOUR(10000)] - ]; + drop ["\a3\data_f\kouleSvetlo", "", "Billboard", 100, 0.03, _projectile modelToWorld [0, 0, 0], + [0, 0, 0], 0, 1.25, 1, 0.05, [0.5], [TRAIL_COLOUR(1)], [0], 0, 0, "", "", "", 0, false, -1, [TRAIL_COLOUR(10000)]]; }; private _timestep = diag_deltaTime * accTime; @@ -199,8 +178,6 @@ if ((_pitchRate != 0 || {_yawRate != 0})) then { _projectile setVectorDirAndUp [_dir, _up]; - //[_projectile, _pitch, _yaw, 0] call FUNC(changeMissileDirection); - _guidanceParameters set [0, _yaw]; _guidanceParameters set [2, _pitch]; diff --git a/addons/missileguidance/script_component.hpp b/addons/missileguidance/script_component.hpp index 2ffb589e77..47f0e83e03 100644 --- a/addons/missileguidance/script_component.hpp +++ b/addons/missileguidance/script_component.hpp @@ -5,7 +5,7 @@ // #define DRAW_GUIDANCE_INFO // #define ENABLE_PROJECTILE_CAMERA // #define DEBUG_MODE_FULL - #define DISABLE_COMPILE_CACHE +// #define DISABLE_COMPILE_CACHE // #define ENABLE_PERFORMANCE_COUNTERS #ifdef DEBUG_ENABLED_MISSILEGUIDANCE