Jump to content
Sign in to follow this  
Madin

Natural turret pitch?

Recommended Posts

I have a Flak cannon that I would like for the barrel to always be pitched up.

 

In Generals there was a setting in the 'TurretAI' section (NaturalPitchAngle), that could achieve this. Of course this is not present in C&C3 code (the 'NaturalTurretAngle' still is though).

 

Any ideas has to how I can get the desired effect?

 

The Slingshot in Kane's Wrath has barrels that are always pitched upwards at an angle, but the issue is that the end result is that the barrels do not line up correctly with a target, so whatever was done with the Slingshot is not an ideal solution.

 

Thanks for any help!

 

FlakCannon_Main_02.jpg

Edited by Madin

Share this post


Link to post

did you try experimenting with following settings in the turret section of the modelconditionstate (look at the vertigo how its turret is set up)

 

 

<xs:attribute name="TurretNameKey" type="xs:string" />
        <xs:attribute name="TurretArtAngle" type="Angle" />
        <xs:attribute name="TurretPitch" type="xs:string" />
        <xs:attribute name="TurretArtPitch" type="Angle" />
        <xs:attribute name="TurretID" type="SageInt" default="-1" />
 

this should be the best way i can think off if it works,

 

besides that

 

a dirty solution would be to link to the barrelmesh unto a seperate bone that is used to animate the turret pitch.

You would have turret Y bone that controls the actuall pitching, it basicly is in a horizontal position in idle state.

the actuall barrel mesh pointing up you link to a fake bone, in its idle state you point that up like you have in your picture.

 

Then you create a preattack transistion state where the fake bone lines up with the actuall turrety bone, after it preattack both bones should line up and the shots will look right. if you tweak the animation and its speed correctly i might work ...more or less.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×