Firing Planes

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Clackinizer
Sergeant
Posts: 72
Joined: Sun Mar 16, 2003 1:49 am
Location: USA
Contact:

Firing Planes

Post by Clackinizer »

How can i make my planes fire at the ground or at other planes?
........
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

you gotta bind mg42's to the wings, bind mg42 targets a little ahead of the mg42's, and its basically all script. like this:

Code: Select all

$mg42_left bind $plane
$mg42_right bind $plane
$mg42_left.target bind $plane
$mg42_right.target bind $plane
$mg42_left hide
$mg42_right hide
$mg42_left setaimtarget $mg42_left.target
$mg42_right setaimtarget $mg42_right.target


//do your flyby here
$plane followpath $plane_path1
$mg42_left startfiring
$mg42_right startfiring
$plane waitmove
$mg42_left stopfiring
$mg42_right stopfiring
User avatar
Clackinizer
Sergeant
Posts: 72
Joined: Sun Mar 16, 2003 1:49 am
Location: USA
Contact:

Post by Clackinizer »

ah yes! I see! Thanks :wink:
........
matt_moh
Sergeant
Posts: 65
Joined: Sat Feb 08, 2003 12:04 am

Post by matt_moh »

Ok, I'm bringing back this thread because I tried the same thing and it's real glitchy. Everything works fine when the plane and gun are stationary, but when the plane is moving, the gun flips back and forth and fires in different directions. Can anyone help?
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

Post by Gold »

why not try bdbodgers global strafe script,,,the planes have the option to use working guns:)
Gold<<mohha freak
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

actually the dafault is to have the guns on when plane is spawned and at a pitch of 30 degrees .
matt_moh
Sergeant
Posts: 65
Joined: Sat Feb 08, 2003 12:04 am

Post by matt_moh »

OK, i've pretty much given up with my own methods. The only problem I've had with using the global/strafe scrip is that it only puts two guns on the planes. I want my planes to be as realistic as possible, the p-47s for example need 8 guns, 4 on each wing to accurate. Is there any way I can modify the strafe scrip to do this?
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Look at the plane_ini thread of the global/strafe.scr That is where the guns are attached . They are bound to script origins and targets are also bound to the same script origins directly ahead of the script origin and by rotateing the script origin that they are bound to the gunangle is set .
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Finallly took a good look at the strafe script today :oops: very well done man, I like it lots and will use it exclusivly from now on.

:)
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Post Reply