summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index e24edc57..5d09c9b4 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1743,7 +1743,13 @@ qboolean HMGTurret_TrackEnemy( gentity_t *self )
float temp, rotAngle;
float accuracyTolerance, angularSpeed;
- if( self->dcced )
+ if( self->lev1Grabbed )
+ {
+ //can't turn fast if grabbed
+ accuracyTolerance = MGTURRET_GRAB_ACCURACYTOLERANCE;
+ angularSpeed = MGTURRET_GRAB_ANGULARSPEED;
+ }
+ else if( self->dcced )
{
accuracyTolerance = MGTURRET_DCC_ACCURACYTOLERANCE;
angularSpeed = MGTURRET_DCC_ANGULARSPEED;
@@ -2310,6 +2316,9 @@ void G_BuildableThink( gentity_t *ent, int msec )
ent->health = bHealth;
}
+ if( ent->lev1Grabbed && ent->lev1GrabTime + LEVEL1_GRAB_TIME < level.time )
+ ent->lev1Grabbed = qfalse;
+
if( ent->clientSpawnTime > 0 )
ent->clientSpawnTime -= msec;