summaryrefslogtreecommitdiff
path: root/src/cgame/cg_players.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-01-08 22:04:13 +0000
committerTim Angus <tim@ngus.net>2001-01-08 22:04:13 +0000
commitdfa6ae440ddddaaf22e4b32dbc6d31b13e162d4d (patch)
treea48a95fba2dddfbf3617082a793a4beb03af244a /src/cgame/cg_players.c
parent948e5e6a79103df8b130da04df109b247e180cb6 (diff)
More wall walking fixes
Diffstat (limited to 'src/cgame/cg_players.c')
-rw-r--r--src/cgame/cg_players.c10
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;