mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-29 15:32:33 +00:00
Fixed stand-ground gladiators not attacking at certain range
This commit is contained in:
parent
f762ee6116
commit
4a9c7f897e
1 changed files with 12 additions and 6 deletions
|
@ -275,13 +275,19 @@ gladiator_attack(edict_t *self)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* a small safe zone */
|
/* a small safe zone
|
||||||
VectorSubtract(self->s.origin, self->enemy->s.origin, v);
|
but not for stand-ground ones since players can
|
||||||
range = VectorLength(v);
|
abuse it by standing still inside this range
|
||||||
|
*/
|
||||||
if (range <= (MELEE_DISTANCE + 32))
|
if (!(self->monsterinfo.aiflags & AI_STAND_GROUND))
|
||||||
{
|
{
|
||||||
return;
|
VectorSubtract(self->s.origin, self->enemy->s.origin, v);
|
||||||
|
range = VectorLength(v);
|
||||||
|
|
||||||
|
if (range <= (MELEE_DISTANCE + 32))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* charge up the railgun */
|
/* charge up the railgun */
|
||||||
|
|
Loading…
Reference in a new issue