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_active.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game/g_active.c') diff --git a/src/game/g_active.c b/src/game/g_active.c index 4fd29f84..8f1971b7 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -888,7 +888,7 @@ void ClientThink_real( gentity_t *ent ) if( client->noclip ) client->ps.pm_type = PM_NOCLIP; - else if( client->ps.stats[STAT_HEALTH] <= 0 ) + else if( client->ps.stats[ STAT_HEALTH ] <= 0 ) client->ps.pm_type = PM_DEAD; else if( client->ps.stats[ STAT_STATE ] & SS_INFESTING || client->ps.stats[ STAT_STATE ] & SS_HOVELING ) @@ -896,6 +896,8 @@ void ClientThink_real( gentity_t *ent ) else if( client->ps.stats[ STAT_STATE ] & SS_BLOBLOCKED || client->ps.stats[ STAT_STATE ] & SS_GRABBED ) client->ps.pm_type = PM_GRABBED; + else if( BG_gotItem( UP_JETPACK, client->ps.stats ) && BG_activated( UP_JETPACK, client->ps.stats ) ) + client->ps.pm_type = PM_JETPACK; else client->ps.pm_type = PM_NORMAL; -- cgit