Re: [hlcoders] RE: HL2DM SDK in January or February? Matt, i discovered something

2005-01-18 Thread Ben Davison
Can you please stop changing the posting titles because it starts a
new conversation "thread" on most clients.


On Wed, 19 Jan 2005 00:05:14 +0100, Jose Luis Gonzalez <[EMAIL PROTECTED]> 
wrote:
> 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  
> 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
>
>


--
- 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



RE: [hlcoders] RE: HL2DM SDK in January or February? Matt, i discovered something

2005-01-18 Thread Adrian Finol
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: hlcoders@list.valvesoftware.com
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  
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



Re: [hlcoders] RE: HL2DM SDK in January or February? Matt, i discovered something

2005-01-18 Thread Ben Davison
 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: hlcoders@list.valvesoftware.com
> 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  
> 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



Re: [hlcoders] RE: HL2DM SDK in January or February? Matt, i discovered something

2005-01-18 Thread Tim Nagel
I think this specific topic deserves a new thread, dont you? (It isnt
really related to the SDK release? ;))

Ben Davison wrote:
Can you please stop changing the posting titles because it starts a
new conversation "thread" on most clients.
On Wed, 19 Jan 2005 00:05:14 +0100, Jose Luis Gonzalez <[EMAIL PROTECTED]> 
wrote:

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  
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



--
- 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


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


Re: [hlcoders] RE: HL2DM SDK in January or February? Matt, i discovered something

2005-01-18 Thread Ben Davison
True, but there are 5 variations of the original topic now :P


On Wed, 19 Jan 2005 11:03:12 +1100, Tim Nagel <[EMAIL PROTECTED]> wrote:
> I think this specific topic deserves a new thread, dont you? (It isnt
> really related to the SDK release? ;))
>
>
> Ben Davison wrote:
>
> >Can you please stop changing the posting titles because it starts a
> >new conversation "thread" on most clients.
> >
> >
> >On Wed, 19 Jan 2005 00:05:14 +0100, Jose Luis Gonzalez <[EMAIL PROTECTED]> 
> >wrote:
> >
> >
> >>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  
> >>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
> >>
> >>
> >>
> >>
> >
> >
> >--
> >- 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
> >
> >
> >
> >
> >
>
> ___
> 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