uhh, you are returning before your code can be used?
On Sat, Jan 30, 2010 at 11:06 PM, Harry Pidcock <[email protected]> wrote:
> BOOL CBasePlayer::IsOnLadder( void )
> {
> //code i added
> if (m_pActiveItem)
> m_pActiveItem->Holster( );
>
> return ( pev->movetype == MOVETYPE_FLY );
> }
>
> That might work
>
> --------------------------------------------------
> From: "kevin bowen" <[email protected]>
> Sent: Sunday, January 31, 2010 5:03 PM
> To: "Discussion of Half-Life Programming" <[email protected]
> >
> Subject: [hlcoders] HL1, holstering active weapon
>
> > Ahhh, can anyone tell me why this doesn't work? :(
> >
> >
> > (player.cpp)
> >
> > // TRUE if the player is attached to a ladder
> > BOOL CBasePlayer::IsOnLadder( void )
> > {
> > return ( pev->movetype == MOVETYPE_FLY );
> >
> > //code i added
> > if (m_pActiveItem)
> > m_pActiveItem->Holster( );
> > }
> > _______________________________________________
> > 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
>
>
--
~Ryan ( skidz )
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders