Line 334 in c_sdk_player.cpp should be:

CODE
m_PlayerAnimState->Update( EyeAngles()[YAW], EyeAngles()[PITCH] );


Or at least that's what I did and it works. There may be a better way
to fix it.

http://forums.thewavelength.net/index.php?showtopic=11219&hl=pitch


On Tue, 18 Jan 2005 15:14:24 -0800, Adrian Finol
<[EMAIL PROTECTED]> wrote:
> Random number? Where is that number coming from? We need more info to
> help you fix this problem.
>
> What happens if you do this:
>
>      int pitch = GetOuter()->LookupPoseParameter( "aim_pitch" );
>
>      if ( pitch < 0 )
>             return;
>
>      SetOuterPoseParameter( pitch, -90 );
>
> Does your player model pitch change at all?
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jose Luis
> Gonzalez
> Sent: Tuesday, January 18, 2005 3:05 PM
> To: [email protected]
> Subject: [hlcoders] RE: HL2DM SDK in January or February? Matt, i
> discovered something
>
> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ] One note, Matt.
>
> First:
>
> I fixed the physics bugs with the code in  <http://www.sourcewiki.org/>
> www.sourcewiki.org
>
> Well, when I walk in a room and touch a physics object (a chair or a
> table),
>
> the pitch parameter turns, but only one time.
>
> I used cl_showanimstate to see it.
>
> The aim_pitch turns from 0.0 to random number and the HL2DM model
>
> change the pose animation
>
> Why this change??
>
> Sorry for my English.
>
> >I change the pose parameter in this function in
> >base_playeranimstate.cpp,
>
> >Using HL2DM animations.
>
> >void CBasePlayerAnimState::ComputePoseParam_BodyPitch()
>
> >{
>
> >      // Get pitch from v_angle
>
> >      float flPitch = m_flEyePitch;
>
> >      if ( flPitch > 180.0f )
>
> >      {
>
> >            flPitch -= 360.0f;
>
> >      }
>
> >      flPitch = clamp( flPitch, -90, 90 );
>
> >
>
> >      // See if we have a blender for pitch
>
> >      int pitch = GetOuter()->LookupPoseParameter( "aim_pitch" );
>
> >      if ( pitch < 0 )
>
> >            return;
>
> >      SetOuterPoseParameter( pitch, flPitch );
>
> >      g_flLastBodyPitch = flPitch;
>
> >}
>
> >
>
> >I changed LookupPoseParameter("body_pitch")
>
> >with LookupPoseParameter( "aim_pitch"). But don't work.
>
> >
>
> >Can this be a pitch bug in SDK??
>
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>


--
- Ben Davison
- http://www.shadow-phoenix.com

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

Reply via email to