From 890dbb17d889958230f19767401efca9a13db81a Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 16 Nov 2002 01:42:02 +0000 Subject: * Tidy ups and bug fixes in preparation for an alpha --- src/cgame/cg_players.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/cgame/cg_players.c') diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c index b553fbc2..b8ca0d26 100644 --- a/src/cgame/cg_players.c +++ b/src/cgame/cg_players.c @@ -1956,6 +1956,7 @@ void CG_Corpse( centity_t *cent ) qboolean shadow; float shadowPlane; vec3_t origin, liveZ, deadZ; + float scale; corpseNum = CG_GetCorpseNum( cent->currentState.clientNum ); @@ -2022,6 +2023,18 @@ void CG_Corpse( centity_t *cent ) legs.renderfx = renderfx; VectorCopy( legs.origin, legs.oldorigin ); // don't positionally lerp at all + //rescale the model + scale = BG_FindModelScaleForClass( cent->currentState.clientNum ); + + if( scale != 1.0f ) + { + VectorScale( legs.axis[ 0 ], scale, legs.axis[ 0 ] ); + VectorScale( legs.axis[ 1 ], scale, legs.axis[ 1 ] ); + VectorScale( legs.axis[ 2 ], scale, legs.axis[ 2 ] ); + + legs.nonNormalizedAxes = qtrue; + } + //CG_AddRefEntityWithPowerups( &legs, cent->currentState.powerups, ci->team ); trap_R_AddRefEntityToScene( &legs ); -- cgit