Merge branch 'global-taunts' into 'master'

Play horns at full volume for targeted players (resolves #654, lazily)

Closes #654

See merge request KartKrew/Kart!1520
This commit is contained in:
Oni 2023-09-23 03:05:52 +00:00
commit 1173adc950

View file

@ -773,7 +773,8 @@ void K_FollowerHornTaunt(player_t *taunter, player_t *victim)
honk->fuse = TICRATE/2;
honk->renderflags |= RF_DONTDRAW;
S_StartSound(taunter->follower, fl->hornsound);
if (P_IsDisplayPlayer(victim) || P_IsDisplayPlayer(taunter))
S_StartSound(NULL, fl->hornsound);
honk->flags2 |= MF2_AMBUSH;
}