Remove test parameters, timing correct. Attack profile selection working.

This commit is contained in:
jaynus 2015-04-08 15:52:58 -07:00
parent 0a1aae8553
commit 5a9a8d239c
2 changed files with 9 additions and 10 deletions

View File

@ -42,12 +42,12 @@ class CfgAmmo {
class ACE_MissileGuidance { class ACE_MissileGuidance {
enabled = 1; enabled = 1;
//minDeflection = 0.005; // Minium flap deflection for guidance minDeflection = 0.005; // Minium flap deflection for guidance
//maxDeflection = 0.025; // Maximum flap deflection for guidance maxDeflection = 0.025; // Maximum flap deflection for guidance
//incDeflection = 0.005; // The incrmeent in which deflection adjusts. incDeflection = 0.005; // The incrmeent in which deflection adjusts.
minDeflection = 0.005; //minDeflection = 0.005;
maxDeflection = 0.5; //maxDeflection = 0.5;
incDeflection = 0.005; //incDeflection = 0.005;
// Guidance type for munitions // Guidance type for munitions
defaultSeekerType = "SALH"; defaultSeekerType = "SALH";

View File

@ -16,10 +16,9 @@ _enabled = getNumber ( _config >> "enabled");
// Bail if guidance is not enabled // Bail if guidance is not enabled
if(isNil "_enabled" || {_enabled != 1}) exitWith { false }; if(isNil "_enabled" || {_enabled != 1}) exitWith { false };
_target = (vehicle _shooter) getVariable [QGVAR(target), nil];
_target = _shooter getVariable[QGVAR(target), nil]; _seekerType = (vehicle _shooter) getVariable [QGVAR(seekerType), nil];
_seekerType = _shooter getVariable [QGVAR(seekerType), nil]; _attackProfile = (vehicle _shooter) getVariable [QGVAR(attackProfile), nil];
_attackProfile = _shooter getVariable [QGVAR(attackProfile), nil];
TRACE_3("Begin guidance", _target, _seekerType, _attackProfile); TRACE_3("Begin guidance", _target, _seekerType, _attackProfile);
if ( isNil "_seekerType" || { ! ( _seekerType in (getArray (_config >> "seekerTypes" ) ) ) } ) then { if ( isNil "_seekerType" || { ! ( _seekerType in (getArray (_config >> "seekerTypes" ) ) ) } ) then {