Home   Help Search Login Register  

Author Topic: Cluster Bomb Script  (Read 5598 times)

0 Members and 1 Guest are viewing this topic.

Offline Pilot

  • Contributing Member
  • **
Cluster Bomb Script
« on: 13 Feb 2005, 02:50:13 »
This is a relatively simple to use script to simulate a cluster bomb.  It creates a laser guided bomb at the pos of the specified plane, and once the bomb reaches a predetermined height, 30 shells of a specified type are created around the bomb and the bomb is deleted.  The shells fall to the ground and explode, simulating a cluster bomb.

I have not tested this in mp, so I do not know if it works in mp.

Details on how to use are in the readme.
« Last Edit: 13 Feb 2005, 20:15:40 by Student Pilot »

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Cluster Bomb Script
« Reply #1 on: 13 Feb 2005, 05:03:27 »
sounds very usefull, downloading now

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Cluster Bomb Script
« Reply #2 on: 13 Feb 2005, 19:16:36 »
ok, i tried it, works pretty well, i have just 1 problem with it, the spreading patern is a little to close together, the bombs should be spread out a little moreIMO from what ive seen of gulf war videos.
other than that its perfect, except is the patern suposed to be perfectly square

Offline Pilot

  • Contributing Member
  • **
Re:Cluster Bomb Script
« Reply #3 on: 13 Feb 2005, 19:25:28 »
Quote
the spreading patern is a little to close together

Really?  I thought it was pretty good. :P

Quote
except is the patern suposed to be perfectly square

Yeah, it is pretty square! :P  I'll see if I can't adjust it so it's a bit more "random".

Offline Pilot

  • Contributing Member
  • **
Re:Cluster Bomb Script
« Reply #4 on: 13 Feb 2005, 20:17:14 »
Ok, I have increased the spreading pattern, and also added bit more "randomness" to the spreading patter.  I also changed the camera view in the mission to give the viewer a better view of the explosions.
« Last Edit: 15 Feb 2005, 05:28:00 by Student Pilot »

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Cluster Bomb Script
« Reply #5 on: 13 Feb 2005, 21:32:35 »
wow! the script is so neat, i never knew the actual bomblets came out, i thought they were just explosions set on the ground in the right place, i only found this out when i took the player and put him right where the bombs are falling, i think u should  delete the camra script(though it is a very good camra script) and just place the player on that marker that says t1. then make a litttle title text that says "look up, here it comes" save you some work of camra scripting(but i dont know anything about camra scripting so i dont know how hard that was for you to make, it looked hard. how do u make the camra folow the bomb?



 its better this time but when i said spread it out more i dint mean like this

                           
 
                                    .  .
                                  . .  .  .                                                                                  .  .  .  .  . .
                            .   . .   .   .   .  .  
                         .  .  .  .  .  .  .  .  .   .
                            .   .   .   .   .   .   .
                            .    .  .  .  .  .  .
                                 .  .  .  .  .
                                   .    .  .                                      

i meant like this
                                       
       

                                       .   .   .   .  .
                                         .  .     .   .
                                           .    .     .  .
                                         .   .   .   .   .
                                           .   .   .    .
                                         .   .   .    .  .
                                       .   .   .   .    .
                                     .        .     .   .
                                       .   .   .   .   .  .
                                       .  .    .   .    .  .
                                       .  .   .    .    .   .
                                        .       .     .      .
                                      .        .        .     .
                                     .     .   .    .    .
                                       .   .    .   .    .
                                   .   .    .    .   .    .
                                     .   .    .    .     .
                                  .  .    .   .    .    .
                                     .   .   .    .  .
                                          .   .   .  
                                            .   .
                                              .
                                                                                                                                            .


                                                .                                                                                                                                                                                                                                                                                                             ;)


lol that took a while                          


i dont know if u need to make a few more bombs, but i think it should look like that IMHO maby a little shorter than what i did.

thats just what it looked like to me when i saw the b-52s on CNN drop those bombs,   OOPS(im an idiot) yours is probably a diffrent kind because i know there are cluster bombs that fighters drop and much bigger ones with parachutes that bombers drop.  

thanks            
                                                           
« Last Edit: 13 Feb 2005, 21:36:46 by penguinman »

Offline Pilot

  • Contributing Member
  • **
Re:Cluster Bomb Script
« Reply #6 on: 14 Feb 2005, 03:39:50 »
Quote
lol that took a while
I can imagine! :P

About the camera script:  No, it wasn't that hard, really.  I have done some camera scripting before, and this was a walk in the park compared to what I have done before.  I actually didn't make the camera follow the bomb, although I probably could with a little bit of tweaking.  When the plane dropped the bomb, I told the camera to take 6 seconds to pan to the target marker, t1.  This gave the effect the camera was targeting the bomb.

About the mission idea:  Hey, I like that! ;D *Looks up just as bomlets start to disperse* :noo:
:beat:

About the script:  I haven't modelled this script after any specific cluster munition.  I looked at your dispersion suggestion, actually counted the dots :P, and found out there are 102 dots you put down.  Unfortunately, my script only makes 30 clusters, which severely limits the dispersion shape.  Do you think I should increase the number of clusters?  And if yes, how many should I make?  (Please don't say 100! :P)

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Cluster Bomb Script
« Reply #7 on: 14 Feb 2005, 05:37:08 »
99!  ;)  no  j/k


about 50- 70 should do it,



i can imagine how neat it would be in a mission,



using a machine gun to mow down charging enemy infantry,


then an enemy plane flys over head

u see about 100 yds away from you a wall of explosions, wiping out all the other MG nests on the defensive line,

the wall keeps getting closer and closer, slow moving  enough that you can see it aproaching, but to fast for you to get out of the way in time,

sudenly the wall is right next to you and you know your finished,

 BOOM!!!!




check this out
http://www.cursor.org/stories/steelrain.html


talks about the different types of cluster bombs


but those r for bombers and yours is for fighters. so i think about 60 or 70 is perfect.

thanks

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Cluster Bomb Script
« Reply #8 on: 14 Feb 2005, 06:07:22 »
here is the way i think it should be IMO if you wouln't mind,
if you make it so the script does it like that but close up the  gaps in between the clusters,



by the way this script is so cool, i keep finding new ways to aply it in mission,


thanks

Offline Pilot

  • Contributing Member
  • **
Re:Cluster Bomb Script
« Reply #9 on: 14 Feb 2005, 14:12:32 »
Ok, I read the info.  Footprints from 150 to 450 meters!? :o  Wow, mine is probably 50 meters at best! :P

I will probably double the number of bomblets, making the total number of bomblets to be 60.  I will probably make the footpring somewhere between 100 and 150 meters.  But don't forget, the size of the footprint depends on the height of dispersion.  Do you like the ability to choose dispersion height, or would you prefer I took it out?

One question about your test mission, do you want one bomb to disperse bomblets over that area?

Quote
here is the way i think it should be IMO if you wouln't mind
No, I don't mind!  Thank you for your suggestions!

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Cluster Bomb Script
« Reply #10 on: 15 Feb 2005, 00:36:15 »
ok,
i think, you should take out ability to chose dispersion height, set it for 75-100, and put in, an abilitty to chose the size of the footprint, or the distance the shells will spread out.

60 bomblets is perfect but change the rate at which they explode, IMO

see, when the main bomb explodes and sends out all the little ones, some of the bomblets fly up and some go down , some go right some left, and some arent propeled in any direction, so insted of,

bang, bang, bang,bang, bang, bang,bang, bang, bang,bang, bang, bang,bang, bang, bang,



it would be

bang,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,,,,bang,,,,,,,,,,,,,,,,


i hope you see what i mean, just edit it so it sounds right IMO.

i think it should be about 1/3-1/2(one third to one half) of a second between explosions, or for all of them to explode, it should take about 3-6 seconds. but it should be random, 2 could explode at one time, or 1 could explode and then 1/100th of a second later another. its just random, but on average it should take about 3 to 6 seconds for them all to explode IMHO.


so

[plane1,100,"grenade"]exec"clusterbomb.sqs"


plane 1 will drop the bomb, and the footprint will be 100 meters, and it will use grenades,   see what i mean,

thanks
« Last Edit: 15 Feb 2005, 00:37:22 by penguinman »

Offline Pilot

  • Contributing Member
  • **
Re:Cluster Bomb Script
« Reply #11 on: 15 Feb 2005, 01:17:30 »
Ok, yeah, I see what you mean.  I'm going to rework my script, it will probably
take me a day or two to finish.

Quote
and put in, an abilitty to chose the size of the footprint
As my scripting isn't that spectacular, I don't think I will be able to incorporate this,
unless you have some suggestions.
Sorry. :-\

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Cluster Bomb Script
« Reply #12 on: 15 Feb 2005, 03:34:35 »
hmm, is there a way to setvelocity the projectiles, if so then it shouldnt be to hard.

just send each one at speed 20 in a random direction.

Offline Pilot

  • Contributing Member
  • **
Re:Cluster Bomb Script
« Reply #13 on: 15 Feb 2005, 05:32:21 »
Ok, I have totally reworked the script.  Each of the clusters is given a random position around the bomb,
and is also given a random velocity.  I have also increased the number of clusters to 120. :o
The only "bug" I can find in the script is the pattern in the clusters.  While supposed to be random, it
the pattern of the shells appears to follow a loose pattern.  Also, the direction of the footprint is slightly
different than that of the plane.  Why, I don't know.

Anyway, here is the script:

EDIT
I have found a big bug with the script.  When the aircraft flies on east-west heading, the dispersion of the clusters still runs north-south.  I have removed the script until I get this sorted out.
« Last Edit: 15 Feb 2005, 05:36:02 by Student Pilot »

Offline OFPfreak

  • Members
  • *
  • Who is da operation flashpoint freak now, freak?!
    • OFP NFS mod
Re:Cluster Bomb Script
« Reply #14 on: 15 Feb 2005, 05:51:57 »
hey thats funny.... U 2 seem to be  the only 1 posting...

Penguin: if you want I'll teach ya some camera scripting

Other guy: downloading now :D!
ofp nfs REBORN! All new nitro, neon, customized cars, off-road, on-road, rally, bikes, racer models and more!
ofp nfs's homepage