--
[ Picked text/plain from multipart/alternative ]
Sorry for bringing up such an old topic but I'm not sure how many people
have this working, so I'll offer up my solution.
Note this is a bit of a hack and as far as I know only works in the advanced
SDK. Also you'd probably be better off moving the "m_angEyeAngles" variable
from the CSDKPlayer class into the baseplayer class to give it baseclass
access.
anyway.
in c_baseplayer.cpp at the includes
#include "c_sdk_player.h"
then in void C_BasePlayer::CalcInEyeCamView( Vector ... )
I replaced
eyeAngles = target->EyeAngles();
with
CSDKPlayer *pSDKPlayer = ToSDKPlayer( target );
if( pSDKPlayer )
{
eyeAngles = pSDKPlayer->m_angEyeAngles;
}
else
{
eyeAngles = target->EyeAngles();
}
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders