To change visibility of an entity to different players, check out
CBasePlayer::ShouldTransmit
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Heritage
Sent: Tuesday, April 05, 2005 6:36 PM
To: hlcoders@list.valvesoftware.com
Subject: [hlcoders] spectator
Ok thanks Mr. Boone!
I also have been looking into the eye mode stuff
looks like at least one problem is in c_baseplayer.cpp line 1171
eyeAngles = target-EyeAngles();
The call the EyeAngles always returns 0,0,0 because there is no
MoveParent.. whatever that is inside const QAngle
Subject: Re: [hlcoders] spectator eye mode problem AddToFullPack (not
related)
Ok thanks Mr. Boone!
I also have been looking into the eye mode stuff looks like at least one
problem is in c_baseplayer.cpp line 1171 eyeAngles =
target-EyeAngles();
The call the EyeAngles always returns 0,0,0 because
I am using the multiplayer sdk. It looks like m_angEyeAngles, like
v_angle is also zero
Here was my new code in EyeAngles(
if ( !pMoveParent )
{
#ifdef CLIENT_DLL
C_HL2MP_Player *pPlayer = dynamic_cast C_HL2MP_Player* ( this );
if(pPlayer-IsObserver()) // UNDONE: check for eye mode too
4 matches
Mail list logo