Hello guys.
I just have some problems with getting an ladder information.
So the problem is that I can't get some kind of ladder angles
orientation, gotten value was return as 0 0 0.
So I'm using for that not workable stuff the next piece of code.

// Is in a client side of CBasePlayer::CalcView

C_BaseHLPlayer *pPlayer = (C_BaseHLPlayer
*)C_BasePlayer::GetLocalPlayer();
if ( pPlayer )
{

        C_FuncLadder *pLadder = static_cast<C_FuncLadder*>(
static_cast<C_BaseEntity *>( pPlayer->m_HL2Local.m_hLadder.Get() ) );
        if ( pLadder )
        {
                QAngle clamp_angle = pLadder->GetAbsAngles();
                // Do a test
                DevWarning(1, "ladder angles is %f %f %f\n",
clamp_angle.x, clamp_angle.y, clamp_angle.z );
               }
}

Also I'm seeking for normal algorithm for clamp player eye angles while
player climbing on ladder for -/+ 25 degrees by PITCH/YAW axis like in
Dark Messiah.

Thanks.

--
Vitaly Protasov.

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

Reply via email to