McJobless Posted March 18, 2012 Share Posted March 18, 2012 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. Open the VehiclesSmallTruck folder. (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 Scroll to the bottom. You should find the following line: SaveAnimationName animationtruckLTdrive.avi Change this to: SaveAnimationName animationtruckSTdrive.avi Save all these files. Open SmallTruck.ae. Find the two chunks of code called "TurnLeft" and "TurnRight", near the bottom. Delete the semi-colons/comment marks. Add to each of these blocks "LOOPING FALSE" Scroll up to the Activities section. Paste the following code at the bottom of this section: Activity_TurnRight TurnRight Activity_TurnLeft TurnLeft 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 More sharing options...
Tracker Posted March 18, 2012 Share Posted March 18, 2012 Where did you get the 45 rule? Link to comment Share on other sites More sharing options...
s0d3rb3rg Posted March 18, 2012 Share Posted March 18, 2012 Awesome find! Link to comment Share on other sites More sharing options...
McJobless Posted March 18, 2012 Author Share Posted March 18, 2012 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 More sharing options...
Lair Posted March 18, 2012 Share Posted March 18, 2012 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 More sharing options...
McJobless Posted March 18, 2012 Author Share Posted March 18, 2012 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 More sharing options...
Recommended Posts