From dfa6ae440ddddaaf22e4b32dbc6d31b13e162d4d Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 8 Jan 2001 22:04:13 +0000 Subject: More wall walking fixes --- src/cgame/cg_players.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/cgame/cg_players.c') diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c index 0225c874..680f544a 100644 --- a/src/cgame/cg_players.c +++ b/src/cgame/cg_players.c @@ -1889,6 +1889,11 @@ void CG_Player( centity_t *cent ) { CG_PositionRotatedEntityOnTag( &torso, &legs, ci->legsModel, "tag_torso"); + if( cent->currentState.legsAnim & ANIM_WALLCLIMBING && + !( cent->currentState.eFlags & EF_DEAD ) && + !( cg.intermissionStarted ) ) + AnglesToAxis( cent->lerpAngles, torso.axis ); + torso.shadowPlane = shadowPlane; torso.renderfx = renderfx; @@ -1908,6 +1913,11 @@ void CG_Player( centity_t *cent ) { CG_PositionRotatedEntityOnTag( &head, &torso, ci->torsoModel, "tag_head"); + if( cent->currentState.legsAnim & ANIM_WALLCLIMBING && + !( cent->currentState.eFlags & EF_DEAD ) && + !( cg.intermissionStarted ) ) + AnglesToAxis( cent->lerpAngles, head.axis ); + head.shadowPlane = shadowPlane; head.renderfx = renderfx; -- cgit