Page 1 of 1
turrets on vehicles
Posted: Tue Oct 20, 2009 2:43 am
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.
Posted: Tue Oct 20, 2009 9:46 am
by zaroba
in the weapon script, change the Fire perimeter to BasicAim
Posted: Tue Oct 20, 2009 11:57 am
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.
Posted: Tue Oct 20, 2009 12:44 pm
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?

Posted: Tue Oct 20, 2009 8:55 pm
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...
Posted: Wed Oct 21, 2009 9:09 am
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