summaryrefslogtreecommitdiff
path: root/src/game/g_client.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-09-03 22:50:40 +0000
committerTim Angus <tim@ngus.net>2003-09-03 22:50:40 +0000
commit8184497c1610bc9ac6727315d2981b83a5a32ae6 (patch)
tree18cc558560980ae5777848acc3fa99659e780c6a /src/game/g_client.c
parentadbcbeb9156141e02d182d00d91330f3f523664a (diff)
* 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
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r--src/game/g_client.c8
1 files changed, 5 insertions, 3 deletions
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 );