Hello, im gonna show how you can make so the speed while crouching is slower than standing.
First make a public funtion in Camera.h This function looks like this:
void Camera::SetSpeed( float fLinearSpeed )
m_fLinearSpeed = fLinearSpeed;
Now, in Player.cpp
you add SetSpeed( 2.0f );
at the top of case PS_CROUCH
and SetSpeed( 5.0f );
at the top of case PS_GETUP
. Of course you can use whatever speed you like.