mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 04:21:23 +00:00
Restore toggle for Robo-Hood to not jump away from nearby players.
This commit is contained in:
parent
d90b6949d7
commit
df5c9933ec
2 changed files with 2 additions and 1 deletions
|
@ -3589,6 +3589,7 @@ thingtypes
|
|||
sprite = "ARCHA1";
|
||||
width = 24;
|
||||
height = 32;
|
||||
flags8text = "[8] Don't jump away";
|
||||
}
|
||||
118
|
||||
{
|
||||
|
|
|
@ -1709,7 +1709,7 @@ void A_HoodThink(mobj_t *actor)
|
|||
dx = (actor->target->x - actor->x), dy = (actor->target->y - actor->y), dz = (actor->target->z - actor->z);
|
||||
dm = P_AproxDistance(dx, dy);
|
||||
// Target dangerously close to robohood, retreat then.
|
||||
if ((dm < 256<<FRACBITS) && (abs(dz) < 128<<FRACBITS))
|
||||
if ((dm < 256<<FRACBITS) && (abs(dz) < 128<<FRACBITS) && !(actor->flags2 & MF2_AMBUSH))
|
||||
{
|
||||
S_StartSound(actor, actor->info->attacksound);
|
||||
P_SetMobjState(actor, actor->info->raisestate);
|
||||
|
|
Loading…
Reference in a new issue