Barrel Roll?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
matt_moh
Sergeant
Posts: 65
Joined: Sat Feb 08, 2003 12:04 am

Barrel Roll?

Post by matt_moh »

I have a plane in my map and I want it to do a Barrel Roll, but it only rolls about 45 degrees before rolloing the same distance in the opposite direction. I have a series of linked splinepaths, the first one with angles of 0,0,-45, the next one at 0,0,-90, and then the next one at 0,0,-180 and so forth until the paths make a full 360 degree roll. I am using a followpath command instead of bomber.scr. Is there anyway to make the plane complete the roll?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Try this

Post by tltrude »

Try making them all "0 0 -45" untill it gets past being upside down.
Tom Trude,

Image
matt_moh
Sergeant
Posts: 65
Joined: Sat Feb 08, 2003 12:04 am

Post by matt_moh »

It still doesn't work. I don't know what is preventing it from rolling all the way over. Any other ideas?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

lookahead

Post by tltrude »

The only other thing I can think of is that the plane uses "lookahead" to see which way it is going to move and make it smooth. So, you may need to move the nodes farther apart to get it to work.

self flypath level.bomberpath[local.i] 1500 2000 256

flypath( Entity array, Float speed, Float acceleration, Float look_ahead )

What would happen if you just had one node with (0 0 -180 )? Oh by the way, you have to leave a space between a negitive number and the bracket or it wont work--glitch in the code.
Tom Trude,

Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Hey pm me if you guys get that to work, I never could, many test maps made in vane..........

:idea:
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

small_sumo wrote:Hey pm me if you guys get that to work, I never could, many test maps made in vane..........

:idea:
Talk to me on msn Ill tell yoiu how to do it. It's pretty stupid. Ill try and put some imgs up of it so you guys can see. Its all in the splinepaths.
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Oh cool thanks.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Post Reply