NikolaiVChr / f16

General Dynamics F-16 for Flightgear flight simulator
GNU General Public License v2.0
115 stars 36 forks source link

Laser guided bombs target radar lock instead of TGP lock #532

Closed NikolaiVChr closed 1 year ago

NikolaiVChr commented 1 year ago

Reported by @BobDotCom

Only fails below 5000 ft.

Temp work-around: Undesignate radar lock before dropping.

NikolaiVChr commented 1 year ago

@BobDotCom can you check if setting gbu-12/24 to this fixes the problem:

<class type="string">P</class>

That prevents them from using targets from radar, which I guess is fair, since the laser would only turn on if TGP locks.

BobDotCom commented 1 year ago

Doesn't fix it for me. Additionally, I believe the issue also occurred with GPS guided munitions (though I'd have to check).

NikolaiVChr commented 1 year ago

I just made a commit, any chance you could check if the issue is solved? Please fly with this line set to 1 in missile_code.nas: var DEBUG_STATS = 0;#most basic stuff

In case it is not solved, please note the output in console, especially this line: Note: Ordnance was released locked on this target type: ?

Also note if it say it changed target and lost/reacquired lock during the drop.

NikolaiVChr commented 1 year ago

Fixed, hopefully.