mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Fixed stand-ground gladiators not attacking within a certain range
This commit is contained in:
parent
22617d8812
commit
2582a23103
1 changed files with 12 additions and 6 deletions
|
@ -325,7 +325,12 @@ gladiator_attack(edict_t *self)
|
|||
return;
|
||||
}
|
||||
|
||||
/* a small safe zone */
|
||||
/* a small safe zone
|
||||
but not for stand-ground ones since players can
|
||||
abuse it by standing still inside this range
|
||||
*/
|
||||
if (!(self->monsterinfo.aiflags & AI_STAND_GROUND))
|
||||
{
|
||||
VectorSubtract(self->s.origin, self->enemy->s.origin, v);
|
||||
range = VectorLength(v);
|
||||
|
||||
|
@ -333,6 +338,7 @@ gladiator_attack(edict_t *self)
|
|||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* charge up the railgun */
|
||||
gi.sound(self, CHAN_WEAPON, sound_gun, 1, ATTN_NORM, 0);
|
||||
|
|
Loading…
Reference in a new issue