Reaper will repeat chain sound + 1 small targetting bugfix

This commit is contained in:
Latapostrophe 2018-10-24 22:28:44 +02:00
parent 553013ddbf
commit 0874e6bb8e

View file

@ -8674,6 +8674,10 @@ void A_ReaperThinker(mobj_t *actor)
if (!(leveltime%5)) if (!(leveltime%5))
actor->extravalue2 = (actor->extravalue2 < 9) ? (actor->extravalue2+1) : (0); // Ghetto animation, but hey it works for what it's worth actor->extravalue2 = (actor->extravalue2 < 9) ? (actor->extravalue2+1) : (0); // Ghetto animation, but hey it works for what it's worth
// Chain sfx
if (!S_SoundPlaying(actor, sfx_chain))
S_StartSound(actor, sfx_chain);
actor->frame = actor->extravalue2; // yes i'm that bad at maths don't @ me. actor->frame = actor->extravalue2; // yes i'm that bad at maths don't @ me.
if (!actor->target) if (!actor->target)
@ -8720,7 +8724,7 @@ void A_ReaperThinker(mobj_t *actor)
if (!playeringame[i]) if (!playeringame[i])
continue; continue;
player = &players[actor->lastlook]; player = &players[i];
if (player && player->mo && player->kartstuff[k_bumper] && player->score >= maxscore) if (player && player->mo && player->kartstuff[k_bumper] && player->score >= maxscore)
{ {
targetplayermo = player->mo; targetplayermo = player->mo;