Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

Reply
 
Thread Tools Display Modes
Old 03-02-2012, 08:06 AM   #1
PrimerElite
 
Join Date: Aug 2009
Reputation: 0
Posts: 31
Question Vehicle enter animation

To anyone who has worked with vehicles, I can't figure out where and how the enter animation camera control functionality is. For example, in the vehicle crane entity, when you enter the vehicle it takes control of the camera, moves it up, forward, left , and THEN attaches the viewpoint to the attachment. I'm curious as to how this sequence is written and where it's executed. I did find a function call in the think function

Code:
//play enter animation
StudioFrameAdvance();
Which has something to do with it ( the FIRST helpful comment thus far) , but i don't see any animation sequences set or anything controlling the camera. I'm currently making my way through CBaseAnimating to find where a sequence might be set or called, but if someone has already been through this, it would be very helpful if you could explain.
PrimerElite is offline  
Reply With Quote
Old 03-05-2012, 04:41 PM   #2
PrimerElite
 
Join Date: Aug 2009
Reputation: 0
Posts: 31
Talking

wow i couldn't find where the animation was taking place, because it was extremely obvious and i was looking at code instead of at the models themselves. I was looking through model viewer, just kinda scanning through the various vehicle animations, and despite it looking like nothing was animated during the enter animation on the crane, i ticked attachments at one point, and was suddenly enlightened to my silly-ness :P . You don't control the camera for a bit and then attach it to the eye attachment, you just make an animation of that model where you animate the eye bones movement and rotation, not animating the visible model, just the bone attachment. I feel really silly :\ .
PrimerElite is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 05:10 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2014, All Rights Reserved.