Jump to content

Re-Enable Turnleft And Turnright Animations


McJobless
 Share

Recommended Posts

NOTE: These animations only work when the vehicle goes from idle and starts moving; as soon as it's already moving, the vehicle will not use the animation.

Please note that it will take some of your own effort to figure out how long the animation needs to go for, and then add this value to the .ae, otherwise you'll get a bug where the vehicle stands in place, performs the animation and then jumps to where it should have turned to. Also note that this tutorial is on the SmallTruck; you will need to do your own bit of research to make this work on other vehicles.

  1. Open the VehiclesSmallTruck folder.
  2. (Please note that it may not be necessary to perform the following steps) Open the following files in notepad:

    -> ST_Lturn.lws
    -> ST_Rturn.lws
    -> ST_drive.lws

  3. Scroll to the bottom. You should find the following line:

    SaveAnimationName animationtruckLTdrive.avi
    Change this to:
    SaveAnimationName animationtruckSTdrive.avi
  4. Save all these files.
  5. Open SmallTruck.ae.
  6. Find the two chunks of code called "TurnLeft" and "TurnRight", near the bottom.
  7. Delete the semi-colons/comment marks.
  8. Add to each of these blocks "LOOPING FALSE"
  9. Scroll up to the Activities section.
  10. Paste the following code at the bottom of this section:
    
    			   	 Activity_TurnRight					TurnRight			
    
    			   	 Activity_TurnLeft					TurnLeft
    
    			



  11. Save this file.

To make a smooth looking animation, remember to animate it exactly for 45 degree turns (since this is the minimum turn a player can make in the game).

Link to comment
Share on other sites

Where did you get the 45 rule?

Personal research into how the model turns; namely recording with FRAPS and then looking at the footage frame-by-frame.

Link to comment
Share on other sites

I thought there was something like this, though I never would have gone to this much work. Great find.

Is there a getting in and out anim too? Just asking because of a certain sound file...

Link to comment
Share on other sites

I thought there was something like this, though I never would have gone to this much work. Great find.

Is there a getting in and out anim too? Just asking because of a certain sound file...

When you'll look at my new blog entry, you'll see why I can't answer that.

All I can remember was Route (moving), on, off, various hits, left and right turn and idle.

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.