diff options
author | Tim Angus <tim@ngus.net> | 2002-11-16 01:42:02 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2002-11-16 01:42:02 +0000 |
commit | 890dbb17d889958230f19767401efca9a13db81a (patch) | |
tree | ef0fd089035c7f2ebd30b412ff4f67228f9ca7a3 /src/cgame | |
parent | 30fc7eda2b4b3ef706523d35fdb90e5a5f47f03c (diff) |
* Tidy ups and bug fixes in preparation for an alpha
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_players.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 ); |