PDA

View Full Version : Link viewangles[ROW] to world model.


saracen
06-09-2007, 07:07 AM
I need to be able to tilt the model left and right (and eventually back and forth) depending on the values of the viewangles.

I've tried adjusting with SetAbsAngles, but the world model still doesn't move (using thirdperson to test). Is SetAbsAngles incorrect? I'm fairly new to the Source engine.

Where would be the best place to link these values, and how? =)

Thanks in advance

Marine
06-09-2007, 07:13 AM
The way valve do it is with animations i believe...

saracen
06-09-2007, 10:45 AM
The way valve do it is with animations i believe...

I guess you mean when the pitch changes? Any idea where this code is? And really, I don't want to do it with animations. The whole model should tilt.

Marine
06-09-2007, 11:09 AM
Yeh, for example the head rotation is an animation...

I wouldn't know how to tilt the whole model apart from SetAbsAngles... Sorry.