summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame')
-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;