From fcc155446721dc0b9fc01d9a104ba83c88d68db5 Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Sun, 24 Sep 2017 13:43:36 -0400 Subject: [PATCH] Play bubble breathe sound for bots --- src/p_inter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p_inter.c b/src/p_inter.c index bc5a31881..6dae204ed 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -1581,6 +1581,8 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck) if (!player->climbing) { + if (player->bot && toucher->state-states != S_PLAY_GASP) + S_StartSound(toucher, special->info->deathsound); // Force it to play a sound for bots P_SetPlayerMobjState(toucher, S_PLAY_GASP); P_ResetPlayer(player); }