Multi-part Turret
Post Reply
Quote
Re: Multi-part Turret
Posted by Sam37 on Thu Feb 9th at 10:05pm 2006


Hi there, ive started mapping (or at least trying ) for hl2 again after a long break.

At the minute im having problems with a controllable turret.

The main section of the turret is working fine, however there is another section of the turret (i'll call it the "base") which the main section attaches to. While the main part rotates in every direction, the base should only rotate left to right, without pitching up or down. (It rotates in-synch with the main gun part).

At first i tried making the main a parent of the "base", and having the base as a func_tanktrain. (The main part is a func_tank of course). I also flagged the base as "No Pitch (X-rot)". However when i did this, the base still pitches up and down despite the flag. I think this is because the main is the parent of the base, so it simply follows the pitch anyway, while the flag only applies to specific movement of the tanktrain. (correct me if im wrong on that )

Failing this, I tried making the base a func_tank and made it theoretically a turret of its own. (but with a fire rate of 0, with 0 ammo). To stop it pitching, I set the pitch rate to 0. The control volume is the same as the main's. Sadly this did'nt work either because the game wont allow me to control both func_tanks's at once. Both sections work great, but not at the same time. I even made the base a control volume of its own, occupying the same space as the other control volume, but this made no difference.

So the question is, does anyone have any idea how to solve this?

Thanks in advance.





Quote
Re: Multi-part Turret
Posted by Sam37 on Mon Feb 13th at 11:46pm 2006


Ok, I'll ask a specific question.

Is it possible to control two func_tank's at the same time and if so, how do I do this?

I only seem to be able to control one at a time and the one i get control of seems to be random (between the two possible).






Post Reply