From cab6cb5c4a989b11e6f45b74f87d84a961235984 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 15 Sep 2001 03:42:41 +0000 Subject: Trapper buildable. Other fixes/tweaks --- src/game/g_active.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/game/g_active.c') diff --git a/src/game/g_active.c b/src/game/g_active.c index 2a9e27fb..95b638b3 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -814,14 +814,20 @@ void ClientThink_real( gentity_t *ent ) { client->ps.pm_type = PM_DEAD; else if( client->ps.stats[ STAT_STATE ] & SS_INFESTING ) client->ps.pm_type = PM_FREEZE; - else if( client->ps.stats[ STAT_STATE ] & SS_GRABBED ) + else if( client->ps.stats[ STAT_STATE ] & SS_BLOBLOCKED || + client->ps.stats[ STAT_STATE ] & SS_GRABBED ) client->ps.pm_type = PM_GRABBED; else client->ps.pm_type = PM_NORMAL; - if( client->ps.stats[ STAT_STATE ] & SS_GRABBED && client->lastGrabTime + 500 < level.time ) + if( client->ps.stats[ STAT_STATE ] & SS_GRABBED && + client->lastGrabTime + 500 < level.time ) client->ps.stats[ STAT_STATE ] &= ~SS_GRABBED; + if( client->ps.stats[ STAT_STATE ] & SS_BLOBLOCKED && + client->lastLockTime + 5000 < level.time ) + client->ps.stats[ STAT_STATE ] &= ~SS_BLOBLOCKED; + client->ps.gravity = g_gravity.value; // set speed -- cgit