OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods Beta Testing => Topic started by: rOk on 28 Oct 2004, 11:02:18

Title: GAM Bombs
Post by: rOk on 28 Oct 2004, 11:02:18
Hi all

GAM stands for GPS Aided Munition.

Essentially free-fall bombs with GPS and little wings which direct them.
Is this possible in OFP?
And laser is out of the question.

I suppose JDAM is pretty similar but GAM's are bigger/more precise(?); the big bombers carry them (B-1, B-2, B-52)

Thanks
Title: Re:GAM Bombs
Post by: Raptorsaurus on 28 Oct 2004, 19:50:42
If you know the target position, you could then use setvelocity on the bombs to direct them toward the target.  Try this Intercept function I wrote.  This function will require an object at the target location (you can use a game logic for that).  Also the bomb has to be moving before you can call this function (it requires that the projectile has some motion or else the time to intercept calculation becomes infinite which makes the function error out).  But that is no problem, just let the bomb fall a few meters before you start your velocity manipulation script.  To see an example of how to implement this function check out my Super Guided Missile script at the Editor Depot here http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=-1&category=2_4&subcategory=-1_-1&numreturn=25&displayformat=0&ofpv=1&start=50 (http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=-1&category=2_4&subcategory=-1_-1&numreturn=25&displayformat=0&ofpv=1&start=50) at OFPEC.
Title: Re:GAM Bombs
Post by: Homefry31464 on 29 Oct 2004, 03:48:29
Is there a way to add a pause in a function?  If so... you could just do that and fix the problem all together.
Title: Re:GAM Bombs
Post by: Nulear_Man on 29 Oct 2004, 18:13:55
no, you can only do that in scripts