diff options
author | Tim Angus <tim@ngus.net> | 2001-01-08 22:04:13 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-01-08 22:04:13 +0000 |
commit | dfa6ae440ddddaaf22e4b32dbc6d31b13e162d4d (patch) | |
tree | a48a95fba2dddfbf3617082a793a4beb03af244a /src/cgame | |
parent | 948e5e6a79103df8b130da04df109b247e180cb6 (diff) |
More wall walking fixes
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_players.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; |