My mod is far deviated from the standard sources and I don't have those
lying around, but in my sources the third person camera code is in:

void CSDKInput::CAM_ThirdPersonThink()

In your code it may be in CInput and you'd have to override it. The file
you're looking at should be c_sdk_input.cpp/h In that think function is
where you can put special rules to place the camera where you want it to be
depending on the position and orientation of the player. Also you can force
the player into third person all the time by issuing a CAM_ToThirdPerson()
command somewhere, or perhaps by putting "thirdperson" in a config file
somewhere.

I take it you modified OverrideView(), and you're right, that's not the best
place to do it. In general you should try to only modify SDK-specific files
and classes, and OverrideView() isn't quite for what you're trying to do
with it. You don't set the third person camera information there, however
you should save off the results of CAM_ThirdPersonThink and pass them into
OverrideView if the player is in third person.

Sorry if this is vague, I'm doing it all from memory! I hope it helps.

-- 
Jorge "Vino" Rodriguez
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to