From 8184497c1610bc9ac6727315d2981b83a5a32ae6 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 3 Sep 2003 22:50:40 +0000 Subject: * Jetpack handling rejigged a bit to cooperate with other move types better * All upgrades are deactivated upon death now * Bodies no longer dtf but have their model origins matched with the player --- src/game/g_client.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/game/g_client.c') diff --git a/src/game/g_client.c b/src/game/g_client.c index 1789ac4f..f56267c5 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -652,6 +652,7 @@ void SpawnCorpse( gentity_t *ent ) vec3_t origin, dest; trace_t tr; int i; + float vDiff; VectorCopy( ent->r.currentOrigin, origin ); @@ -739,9 +740,10 @@ void SpawnCorpse( gentity_t *ent ) //change body dimensions BG_FindBBoxForClass( ent->client->ps.stats[ STAT_PCLASS ], NULL, NULL, NULL, body->r.mins, body->r.maxs ); - - //drop to floor - VectorSet( dest, origin[0], origin[1], origin[2] - 4096 ); + vDiff = body->r.mins[ 2 ] - ent->r.mins[ 2 ]; + + //drop down to match the *model* origins of ent and body + VectorSet( dest, origin[ 0 ], origin[ 1 ], origin[ 2 ] - vDiff ); trap_Trace( &tr, origin, body->r.mins, body->r.maxs, dest, body->s.number, body->clipmask ); VectorCopy( tr.endpos, origin ); -- cgit