turrets on vehicles

Forum Archive - from http://theuniversal.net
Locked
onionguy92
Posts: 107
Joined: Sat Dec 02, 2006 10:47 pm
Location: The Northern State of the Continental US

turrets on vehicles

Post by onionguy92 »

Okay, I feel like I should know this. On my developing star wars-esque world, it has come to my attention that AT-AT Walkers (model nearly finished, working on texturing at the moment, will try to tackle animation later) should be able to turn their heads to shoot. I believe this can be done through some clever use of turrets on the vehicle. However, I have not for the life of me been able to get the turret working like I want it to. I get in my makeshift vehicle with turret, lock the mouse so I can change view direction, and start firing. And the vehicle only fires forward, not the direction the player is looking. How do I get the vehicle's turret to fire in the direction the player looks? The turret is moving correctly, it just isn't firing correctly.
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

in the weapon script, change the Fire perimeter to BasicAim
onionguy92
Posts: 107
Joined: Sat Dec 02, 2006 10:47 pm
Location: The Northern State of the Continental US

Post by onionguy92 »

Yeah, that's what I thought, but maybe that doesn't work with Dual Aim? Because I have my fire param set to DualAim and that's not working, so perhaps a little something for Mit to touch up in the next version? I'll see what happens when I switch to single-shot.
User avatar
Mishka
Posts: 1894
Joined: Fri Dec 29, 2006 6:19 pm
Location: Treasure Planet. Pirate Headquarters.

Post by Mishka »

There is certainly something you're doing wrong, since the turret should rotate as you turn the mouse.

But I'm sorry to say that turrents are utterly broken, discovered it myself, here's the bug report:

http://theuniversal.net/forum/viewtopic.php?t=8369

Unfortunately this was never reviewed.....


Why am I always giving you bad news? :?
onionguy92
Posts: 107
Joined: Sat Dec 02, 2006 10:47 pm
Location: The Northern State of the Continental US

Post by onionguy92 »

Well, the turret turns with the mouse just fine, it's just the firing that's problematic. And what Mishka says has been confirmed; BasicAim doesn't work either. By the by, anyone have ideas as to how one might animate an AT-AT Walker vehicle? I'm thinking the entire model itself would have to move backward to appear as if it stays in place while the legs move...
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

onionguy92 wrote: By the by, anyone have ideas as to how one might animate an AT-AT Walker vehicle? I'm thinking the entire model itself would have to move backward to appear as if it stays in place while the legs move...
Er... not really. Well, kinda. But not really :]

You need to animate it in your 3d program. How depends which program you use, but the basic idea would be to separate the legs from the body and animate the legs walking on the spot. Then export the whole thing as a number of keyframes ("stages of movement") that can then be reassembled into an .atm file in the model converter. Your finished .atm file would be an AT-AT apparently walking on the spot. Making it look good in-game is all about the speed of the animation and the speed of the vehicle model... it takes a bit of practice/experimentation to get it right.

DualAim is the same as BasicAim, btw, except you get 2 bullets. Sounds like it's all still a bit broken.
f
Locked