mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Remove test parameters, timing correct. Attack profile selection working.
This commit is contained in:
parent
0a1aae8553
commit
5a9a8d239c
@ -42,12 +42,12 @@ class CfgAmmo {
|
||||
class ACE_MissileGuidance {
|
||||
enabled = 1;
|
||||
|
||||
//minDeflection = 0.005; // Minium flap deflection for guidance
|
||||
//maxDeflection = 0.025; // Maximum flap deflection for guidance
|
||||
//incDeflection = 0.005; // The incrmeent in which deflection adjusts.
|
||||
minDeflection = 0.005;
|
||||
maxDeflection = 0.5;
|
||||
incDeflection = 0.005;
|
||||
minDeflection = 0.005; // Minium flap deflection for guidance
|
||||
maxDeflection = 0.025; // Maximum flap deflection for guidance
|
||||
incDeflection = 0.005; // The incrmeent in which deflection adjusts.
|
||||
//minDeflection = 0.005;
|
||||
//maxDeflection = 0.5;
|
||||
//incDeflection = 0.005;
|
||||
|
||||
// Guidance type for munitions
|
||||
defaultSeekerType = "SALH";
|
||||
|
@ -16,10 +16,9 @@ _enabled = getNumber ( _config >> "enabled");
|
||||
// Bail if guidance is not enabled
|
||||
if(isNil "_enabled" || {_enabled != 1}) exitWith { false };
|
||||
|
||||
|
||||
_target = _shooter getVariable[QGVAR(target), nil];
|
||||
_seekerType = _shooter getVariable [QGVAR(seekerType), nil];
|
||||
_attackProfile = _shooter getVariable [QGVAR(attackProfile), nil];
|
||||
_target = (vehicle _shooter) getVariable [QGVAR(target), nil];
|
||||
_seekerType = (vehicle _shooter) getVariable [QGVAR(seekerType), nil];
|
||||
_attackProfile = (vehicle _shooter) getVariable [QGVAR(attackProfile), nil];
|
||||
TRACE_3("Begin guidance", _target, _seekerType, _attackProfile);
|
||||
|
||||
if ( isNil "_seekerType" || { ! ( _seekerType in (getArray (_config >> "seekerTypes" ) ) ) } ) then {
|
||||
|
Loading…
Reference in New Issue
Block a user