Home   Help Search Login Register  

Author Topic: AI drop bombs on buildings  (Read 619 times)

0 Members and 1 Guest are viewing this topic.

Uldics

  • Guest
AI drop bombs on buildings
« on: 28 Mar 2005, 10:26:06 »
Is there a way to transfer a target from plane to its released bomb?

Addon I am using: ITA MFG Tornado with Paveway homing bomb. But I think it should be usable with others too. It is just easy to see the bomb alternating its course with the Paveway.
I have figured out (with long studies of my physics and mathemathics formulas) when I have to release the bomb at target approach. But the bomb is just freefalling. Not alternating its course.
When I fly the plane myself (without using my dropbomb script) I can see, if my course is slightly off the target, and I have it selected as target, the bomb is guiding on the target. So it should be possible to do it with AI. But as I see, my fire command just drops the bomb in freefall. So it falls some 10-20 m off my target.
On the other hand - if I give the building as target to my plane, it climbs and then descends pointing at my target as if it shoots with guns. Not smart with bombs, so I dropped this possibility. I just make a plane fly over my target without any dotarget or dowatch commands.

So, if some gurus know, how to activate my guided bomb on a target building, pls let me know.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:AI drop bombs on buildings
« Reply #1 on: 28 Mar 2005, 17:13:35 »
You may need a script that manipulates the bomb's velocity to guide it to target.  Some guided bomb/missile addons have projectile control scripts built into the addon.  If the addon you are using has a readme file it may say in there how to access the gidance features of the bomb.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:AI drop bombs on buildings
« Reply #2 on: 29 Mar 2005, 01:16:58 »
The bomb may work like a missle: meaning, if it is "locked on" before firing, then it will guide itself towards the target; otherwise it just dumbly flies ahead (or down in the case of a bomb).

AFAIK, the only way to make the AI "lock on" to a target is with the dotarget / dofire commands. I think the "fire" command just makes them dumbly fire the weapon wherever they are pointed; although you might want to see what happens if you issue a "dotarget" command before the "fire" command.

If that doesn't work then the problem is, as you said, the way the pilot's AI makes him engage the target. There might be a way to get around his AI: try the disableAI "target" or "autotarget" command (on the pilot). If nothing else, perhaps disabling the "move" AI, and then guiding the plane via setvelocity commands.

If none of this works, then you are going to have to script your own guidance for the bomb, instead of just using OFP's built-in guidance system. There may be a script for something like this in the ed depot, or else you could hit up the Project: Mcar folks, who have plenty of experience with scripting guidance systems. :)
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!