From 7d2046f9f9992bd317550caab954fbba82d25868 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Sun, 31 Mar 2024 00:07:32 -0700 Subject: [PATCH] Display "Last Chance!" when death-save combo rules activate Future conveyance work here would rule, but at the very least, let's name it so we can talk about it --- src/p_inter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p_inter.c b/src/p_inter.c index e4f527a0b..76be4372e 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -46,6 +46,7 @@ #include "k_powerup.h" #include "k_collide.h" #include "m_easing.h" +#include "k_hud.h" // K_AddMessage // CTF player names @@ -3315,6 +3316,7 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da // Death save! On your last hit, no matter what, demote to weakest damage type for one last escape chance. if (player->mo->health == 2 && damage && gametyperules & GTR_BUMPERS) { + K_AddMessageForPlayer(player, "\x8DLast Chance!", false, false); S_StartSound(target, sfx_gshc7); player->flashing = TICRATE; type = DMG_STUMBLE;