From ee25f4aadf87fa2852bb345062eeecea9e86d1dc Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Wed, 8 Apr 2015 21:45:16 +0200 Subject: Revert human physics to vq3. --- src/game/g_buildable.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/game/g_buildable.c') diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 62aa7c7..d0ba6dc 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2830,8 +2830,7 @@ void HMedistat_Think( gentity_t *self ) if( player->client && player->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS ) { - if( ( player->health < player->client->ps.stats[ STAT_MAX_HEALTH ] || - player->client->ps.stats[ STAT_STAMINA ] < STAMINA_MAX ) && + if( player->health < player->client->ps.stats[ STAT_MAX_HEALTH ] && PM_Live( player->client->ps.pm_type ) ) { self->enemy = player; @@ -2861,12 +2860,6 @@ void HMedistat_Think( gentity_t *self ) } else if( self->enemy && self->enemy->client ) //heal! { - if( self->enemy->client->ps.stats[ STAT_STAMINA ] < STAMINA_MAX ) - self->enemy->client->ps.stats[ STAT_STAMINA ] += STAMINA_MEDISTAT_RESTORE; - - if( self->enemy->client->ps.stats[ STAT_STAMINA ] > STAMINA_MAX ) - self->enemy->client->ps.stats[ STAT_STAMINA ] = STAMINA_MAX; - self->enemy->health++; //if they're completely healed, give them a medkit -- cgit