mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 23:42:11 +00:00
Merge branch 'robo-hood-nojump' into 'next'
Restore toggle for Robo-Hood to not jump away from nearby players. See merge request STJr/SRB2!1548
This commit is contained in:
commit
357b64129c
2 changed files with 2 additions and 1 deletions
|
@ -3589,6 +3589,7 @@ thingtypes
|
||||||
sprite = "ARCHA1";
|
sprite = "ARCHA1";
|
||||||
width = 24;
|
width = 24;
|
||||||
height = 32;
|
height = 32;
|
||||||
|
flags8text = "[8] Don't jump away";
|
||||||
}
|
}
|
||||||
118
|
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);
|
dx = (actor->target->x - actor->x), dy = (actor->target->y - actor->y), dz = (actor->target->z - actor->z);
|
||||||
dm = P_AproxDistance(dx, dy);
|
dm = P_AproxDistance(dx, dy);
|
||||||
// Target dangerously close to robohood, retreat then.
|
// 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);
|
S_StartSound(actor, actor->info->attacksound);
|
||||||
P_SetMobjState(actor, actor->info->raisestate);
|
P_SetMobjState(actor, actor->info->raisestate);
|
||||||
|
|
Loading…
Reference in a new issue