From 3f7914b0dad5c5270986c3d9d3a9369536427cd3 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Thu, 13 Apr 2017 11:30:00 +0000 Subject: display dead battlesuit bodies displaying battlesuits over dead bodies (on stock cgames) is as simple as setting the class of the dead body to a battlesuit instead of a human class --- src/game/g_client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/g_client.c b/src/game/g_client.c index d2663bc..b6a3e0e 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -761,6 +761,8 @@ void SpawnCorpse( gentity_t *ent ) body->r.contents = CONTENTS_CORPSE; body->clipmask = MASK_DEADSOLID; body->s.clientNum = ent->client->ps.stats[ STAT_PCLASS ]; + if( body->s.clientNum == PCL_HUMAN && BG_InventoryContainsUpgrade( UP_BATTLESUIT, ent->client->ps.stats ) ) + body->s.clientNum = PCL_HUMAN_BSUIT; body->nonSegModel = ent->client->ps.persistant[ PERS_STATE ] & PS_NONSEGMODEL; if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) -- cgit