Home   Help Search Login Register  

Author Topic: High-drag bomb script request  (Read 1081 times)

0 Members and 1 Guest are viewing this topic.

Skaircro

  • Guest
High-drag bomb script request
« on: 01 Oct 2002, 18:15:32 »


[attachment deleted by admin]

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:High-drag bomb script request
« Reply #1 on: 01 Oct 2002, 19:24:42 »
Commonly known as "Retared Bombs".  It depends what kind of thing you really want to do.

For a start are you using Resistance?  In resistance there is a command that you can use to give objects actual velocity.  In the original 1985 however the only way to acctually make somthing move is to use a SetPos script eequation to move the object in the "flight path" you want.

The second one is easier, but you get a fairly jumpy path as it moves the bomb from one location to the other.  The first one uses tyhe "Drop" command, which is notoriously difficult to get the right effect.  However you will get a proper flight path with that.

Skaircro

  • Guest
Re:High-drag bomb script request
« Reply #2 on: 05 Oct 2002, 15:49:58 »
No I'm not using Resistance yet.

All I'm really wanting to do at this stage is have it so that when these bombs are released from the plane, they immeditely reduce their forward speed. I'm not worried about having them hitting a specific point or anything like that.

For example when you currently drop a free fall bomb (in ordinary ofp), they pretty much keep up with the plane, and slowly decrease in altitude until they impact.

I'm wondering if you can have it so that when you release the bomb they almost instantly slow to approx half the speed the plane is going.

I'm not sure, but it may even be possible to do something like this with the weapon config file.
I havent had much to do with editing of config files so I might have to look into this and do some experimenting.


captain caffeine

  • Guest
Re:High-drag bomb script request
« Reply #3 on: 06 Oct 2002, 05:57:00 »
Try Dpbo'ing a bomber or the plane you want to be the bomber and look at the Cfg Weapons portion of the file, should be a line in there for initSpeed , now before you change anything make sure you've got a file backup  now in the line for initSpeed start changing the numbersusing a - minus  before the number : example    initSpeed=-15;

  That should be all you need to do, stuff your pbo with the changed cpp files and give it a try , I changed Moore's c130v1a into a bomber just looks kinda goofy as far as the 130 goes cause the bombs are actually falling through the top of the plane.

  But anyways give this a try it should work quite splendidly.

Skaircro

  • Guest
Re:High-drag bomb script request
« Reply #4 on: 07 Oct 2002, 16:02:07 »
I found it!  :D

I tried some different configs with the maxspeed command but it didnt seem to do anything.

I found this line in the ITA Tornado pbo, "sideAirFriction".
They do use it with their high drag bombs, but they dont have it set very high.

I tweaked it up pretty high and it works absolutely perfect for what I was after.
Just have to be carefull you arent flying too eratically (like I do) or you can hit the bombs as they fly backwards!  ;D

No need for a script.
Now I just have to finish my plane! ::)