Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Heavy bombing  (Read 3795 times)

0 Members and 1 Guest are viewing this topic.

Shove It

  • Guest
Heavy bombing
« on: 21 Jun 2004, 10:34:07 »
You know those a-10 Thunderbolts (LGB) that have very powerful bombs (GBU-24) that can blow up loads of stuff at once, well I need a command to put in a trigger in the On Activation bit so that I can have AIs fire them whenever I want. I really need it cause I'm working on the biggest bombing raid in history!!!!!!!!! ;D ;D

CrashnBurn

  • Guest
Re:Heavy bombing
« Reply #1 on: 21 Jun 2004, 18:06:31 »
I tried to do that once using the fire command, but could'nt get it to work. You can fake it using the camcreate, setdir, getdir, and setvelocity commands. Here's an example-

bomb1 = "LaserGuidedBomb" camcreate getpos hog1; bomb1 setdir getdir hog1; bomb1 setvelocity [50,0,-10]

The setvelocity command has to be tweaked depending on the speed and direction of the plane. The above example was for an A10 flying east at limited speed.

Shove It

  • Guest
Re:Heavy bombing
« Reply #2 on: 22 Jun 2004, 06:22:07 »
Thanks but I don't like faking stuff, unless, (sorry I can't go on OFP now because I lent it to someone) unless you would actually see the bombs drop. You see, I don't like using pages of script that you have to download and refer to on OFP and I don't like faking stuff at all. There has to be some other solution.

CrashnBurn

  • Guest
Re:Heavy bombing
« Reply #3 on: 22 Jun 2004, 08:23:15 »
Yes you can see the bombs drop and it looks very realistic and only requires a few triggers. No scripting is necessary.

Shove It

  • Guest
Re:Heavy bombing
« Reply #4 on: 22 Jun 2004, 16:05:33 »
Ok, then it should be perfect. I'm very desperate so I'm running over my principles (yes, I'm a nerd). I'll test it as soon as I get OFP back.

Shove It

  • Guest
Re:Heavy bombing
« Reply #5 on: 22 Jun 2004, 16:07:27 »
What is hog1?

Shove It

  • Guest
Re:Heavy bombing
« Reply #6 on: 22 Jun 2004, 16:50:47 »
Ok I just got OFP back and I worked it out. It's great, but how do I change the formula if the hog1 (a-10) is flying west?

Iceholey

  • Guest
Re:Heavy bombing
« Reply #7 on: 22 Jun 2004, 17:59:58 »
If you don't like simulated LGBs, you can use the command

planename fire "LaserGuidedBomblauncher"

But I think its fair to warn you that it will be very inaccurate.

If you are after a really really heavy duty and indiscriminate bombing run, then you could try a simple script like this:


_plane= _this select 0
_Bombs= _this select 1
_interval = _this select 2

_Counter1= 0

#Bomb
? (_Counter1 == _Bombs ): exit
_plane fire "LaserGuidedBomblauncher"
~(_interval)
_Counter1 = _Counter1 + 1
Goto "Bomb"

Give your script a name and use a command line like
[planename, 5, 2] exec "thisscriptname.sqs"
« Last Edit: 22 Jun 2004, 18:14:36 by Iceholey »

Iceholey

  • Guest
Re:Heavy bombing
« Reply #8 on: 22 Jun 2004, 18:11:59 »
Sorry, in answer to your previous question, you could try tweaking the velocity speed i.e. bomb1 setvelocity [-50,0,-10]

You could take it a bit further with:

bombdirx = getdir bomb1 select 0; bombdiry = getdir bomb1 select 1; bomb1 setvelocity [(bombdirx)*0.5, (bombdiry)*0.5, -10]
« Last Edit: 22 Jun 2004, 18:15:09 by Iceholey »

Dubieman

  • Guest
Re:Heavy bombing
« Reply #9 on: 23 Jun 2004, 04:27:45 »
Err did you guys miss the laser designator? :o :P

That's its purpose in the game, I think its one of those

man dofire LaserDesignator

things coupled with a looping dotarget such and such. The bombs actually come out of the plane so its a plus for realism.

Also there is a invisible targets addon around somewhere, try lookin in ofp sites for it, like opflashpoint.org or ofp.info and they might have it.

There's a invisible laser target. Set it to east and let the A10s at it, they will bomb the crap out of everything near that laser until they are out of ammo. ;D

Dubieman

  • Guest
Re:Heavy bombing
« Reply #10 on: 23 Jun 2004, 04:31:37 »
Here it is, just download it, unzip it and put it in the addon folder. Sorry but the readme is in dutch but the addon is self explanatory. ;)

 

Shove It

  • Guest
Re:Heavy bombing
« Reply #11 on: 25 Jun 2004, 06:24:20 »
I'm not going to use the type of script that you put in the addons folder because it doesn't work with me, but thanks anyway, thanks for all the help, this bombing raid is going to be a lot more eventfull. Oh by the way, does anyone know what I should call the bomb with the fire command for the camel planes cause I might make a slightly different bombing raid with those.

Dubieman

  • Guest
Re:Heavy bombing
« Reply #12 on: 25 Jun 2004, 14:36:54 »
Its not a script, its an invisbile unit. Like a Game logic, but it s targeted by the opposing side depending on what kind you put there. It really helps in makin bombing or cover fire those sort things. The download itself is like only 2 kb.

OR

Try and get my laser designator to work. There has to be a thing in the ed depot on it or a search of the forums would reveal how to do this. :P

Otherwise your camcreating stuff.

Shove It

  • Guest
Re:Heavy bombing
« Reply #13 on: 26 Jun 2004, 08:40:22 »
As long as I have to download it and it does not have an installer, I can't use whatever it is. Thanks anyway.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Heavy bombing
« Reply #14 on: 26 Jun 2004, 12:43:39 »
Hmmmm.......How difficult can it be, putting a PBO file in your Addons folder.

I think switching the computer on is only slightly less complex.



Planck
I know a little about a lot, and a lot about a little.