diff options
author | Tim Angus <tim@ngus.net> | 2001-07-01 21:27:25 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-07-01 21:27:25 +0000 |
commit | 836ffa162ef08d6d033cd4fadc929a457dde774b (patch) | |
tree | 5347f9ba4f4b8b9b473df78e2f33119dd2544c7c /src/game/g_buildable.c | |
parent | d26c448289364db6855930bd01cbed0af394a171 (diff) |
Random tweaks
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r-- | src/game/g_buildable.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index d55e599c..e5ed7791 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -345,12 +345,12 @@ void HMCU_Think( gentity_t *self ) // "fuzzysteve" (fuzzysteve@quakefiles.com) and // Anthony "inolen" Pesch (www.inolen.com) //with modifications by me of course :) -#define HDEF1_RANGE 500 -#define HDEF1_ANGULARSPEED 15 -#define HDEF1_FIRINGSPEED 200 -#define HDEF1_ACCURACYTOLERANCE HDEF1_ANGULARSPEED - 5 -#define HDEF1_VERTICALCAP 20 -#define HDEF1_PROJSPEED 2000.0f +#define HDEF1_RANGE 500 //maximum range +#define HDEF1_ANGULARSPEED 10 //degrees/think ~= 200deg/sec +#define HDEF1_FIRINGSPEED 500 //time between projectiles +#define HDEF1_ACCURACYTOLERANCE HDEF1_ANGULARSPEED / 2 //angular difference for turret to fire +#define HDEF1_VERTICALCAP 20 //+/- maximum pitch +#define HDEF1_PROJSPEED 2000.0f //speed of projectile (used in prediction) /* ================ @@ -393,7 +393,7 @@ qboolean hdef1_trackenemy( gentity_t *self ) VectorSubtract( dirToTarget, self->s.pos.trBase, dirToTarget ); distanceToTarget = VectorLength( dirToTarget ); - distanceToTarget -= ( self->r.maxs[ 0 ] + self->enemy->r.maxs[ 0 ] ); + distanceToTarget -= self->enemy->r.maxs[ 0 ]; } VectorNormalize( dirToTarget ); |