--
[ Picked text/plain from multipart/alternative ]
r_JeepViewZHeight is the convar for controlling the height, and we have it
setup in C_PropJeep::DampenUpMotion

//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
void C_PropJeep::DampenUpMotion( Vector &vecVehicleEyePos, QAngle
&vecVehicleEyeAngles, float flFrameTime )
{
    // Get up vector.
    Vector vecUp;
    AngleVectors( vecVehicleEyeAngles, NULL, NULL, &vecUp );
    vecUp.z = clamp( vecUp.z, 0.0f, vecUp.z );
    vecVehicleEyePos.z += r_JeepViewZHeight.GetFloat() * vecUp.z;

    // NOTE: Should probably use some damped equation here.
}

which is called after DampenEyePosition. You are probably following my
tutorial on the source sdk I presume? I didn't include the jeep height
addition in that tut.

On Fri, Feb 29, 2008 at 2:44 PM, Adam Donovan <[EMAIL PROTECTED]>
wrote:

> --
> [ Picked text/plain from multipart/alternative ]
> It wasnt obvious to me where in the code..could you be a little more
> specific please?
> thanks again
> Adam
>
> _________________________________________________________________
> What are you waiting for? Join Lavalife FREE
>
> http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Flavalife9%2Eninemsn%2Ecom%2Eau%2Fclickthru%2Fclickthru%2Eact%3Fid%3Dninemsn%26context%3Dan99%26locale%3Den%5FAU%26a%3D30288&_t=764581033&_r=email_taglines_Join_free_OCT07&_m=EXT
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>


--
~Ryan
--

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

Reply via email to