Home   Help Search Login Register  

Author Topic: Heli shoots missiles with machine gun  (Read 1752 times)

0 Members and 2 Guests are viewing this topic.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Heli shoots missiles with machine gun
« Reply #15 on: 12 Jul 2003, 07:03:04 »
O'Neil:

Whoops! Sorry bout the addon, I opened up another mission and then deleted everything on it, so I guess it still thought that addon was needed. Anyway, just open up the mission.sqm file and delete the line under "addons" that says "lightred".
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!

O Neil

  • Guest
Re:Heli shoots missiles with machine gun
« Reply #16 on: 12 Jul 2003, 08:09:04 »
Ok, thxs man , I'll try it out.

O'Neil

O Neil

  • Guest
Re:Heli shoots missiles with machine gun
« Reply #17 on: 13 Jul 2003, 02:00:29 »
Hey

Yea, it...a lil different, but I must say, it's some good peice of work ;)

Thxs General Barron, appreciated.

O'Neil ;)

anti garble

  • Guest
Re:Heli shoots missiles with machine gun
« Reply #18 on: 14 Jul 2003, 19:13:02 »
you can create the nissiles at the same time your shooting your machine gun :). just use the missile= "laserGuidedBomb" camcreate (getPos hunted) type script. theres more to it .but i will leave that for you i am busy. :). oh yeh and make sure you execute the script when the mg is fired. im getting an headache just thinking about the maths.

O Neil

  • Guest
Re:Heli shoots missiles with machine gun
« Reply #19 on: 15 Jul 2003, 01:06:02 »
Hahaha, no probs man, I'll just...make it worst for ya ;)

Are you talking about this ?

Bomb="heat125" camcreate(getpos plane); Bomb="Shell125" camcreate(getpos plane)

I'm sure your not, but, just thought I'd put that in ;)

O'Neil

PS: Just a few things, no matter what I do, the heli moves forward shooting everything, is there a way, I can make the heli just stay there and shoot ?
I want a cut-scene, where your looking at the sky, and suddenly this helicopter rises from below, and shoots the crap outta things.

Another thing, is there a way to MAKE SURE the machine gun is being used? It only shoots them when it needs to ;)

Just wondering ;)

Peace

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Heli shoots missiles with machine gun
« Reply #20 on: 15 Jul 2003, 18:24:54 »
Well, first off, seeing how helicopters have to tilt forward to fire their rockets at the ground, and seeing how by tilting forward the helicopter then moves forward, I don't really think you can make the helo hold still and fire his rockets at the ground. Try removing the eventhandler in the chopper's init field and see how it behaves. You would have to fight against the game's AI to make the helo hold still. Perhaps if you made the helo "auto hover", then it might work? I'm not sure exactly how to do that, but I assume it would be throught the "action" command. Check this thread:
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=9376;start=0

Now what Anti Garble is talking about would look something like this:

_rocket = "HellfireLauncherCobra" camcreate getpos nearestobject[_this select 0,_this select 4]
_rocket setvelocity getvelocity nearestobject[_this select 0,_this select 4]

This would be placed in an eventhandler "fired", such as my script. I'm not sure about the _this select 4 (is that the element for the bullet that was fired?). The problem with this is that it would shoot off a rocket at the speed of the bullet, which is MUCH faster than rockets travel in OFP. If you knew how fast it was supposed to go, you could fix this pretty easily with a little math though.
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!

O Neil

  • Guest
Re:Heli shoots missiles with machine gun
« Reply #21 on: 16 Jul 2003, 02:10:28 »
Umm...hehe, yea, I'll try that, but I'm dumb ;) I'll probably come back complaining and whineing ;)

O'Neil