Give the Robo-Hood a cute jump sound whenever it's fleeing you.

This commit is contained in:
toaster 2019-11-29 19:18:05 +00:00
parent bc00380aa4
commit 1fa87611f7
2 changed files with 2 additions and 1 deletions

View file

@ -4692,7 +4692,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
S_ROBOHOOD_STAND, // seestate
sfx_None, // seesound
TICRATE, // reactiontime
sfx_None, // attacksound
sfx_ngjump, // attacksound
S_NULL, // painstate
0, // painchance
sfx_None, // painsound

View file

@ -1731,6 +1731,7 @@ void A_HoodThink(mobj_t *actor)
// Target dangerously close to robohood, retreat then.
if ((dm < 256<<FRACBITS) && (abs(dz) < 128<<FRACBITS))
{
S_StartSound(actor, actor->info->attacksound);
P_SetMobjState(actor, actor->info->raisestate);
return;
}