]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Show a translatable message when player is killed by trigger_hurt even if they weren...
authorterencehill <piuntn@gmail.com>
Fri, 11 Oct 2024 10:49:27 +0000 (12:49 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 11 Oct 2024 16:19:46 +0000 (18:19 +0200)
qcsrc/common/notifications/all.inc
qcsrc/server/damage.qc

index 8527bdf293e53cc90632e77b74e1c07923f68965..30994ba9ec0e7ebc3ca91dc0acfb8bf9443b4d61 100644 (file)
@@ -357,7 +357,7 @@ string multiteam_info_sprintf(string input, string teamname) { return ((input !=
     MSG_INFO_NOTIF(DEATH_SELF_VH_SPID_ROCKET,               N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1 was blasted to bits by a Spiderbot rocket%s%s"), "")
     MSG_INFO_NOTIF(DEATH_SELF_VH_WAKI_DEATH,                N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1 got caught in the blast of a Racer explosion%s%s"), "")
     MSG_INFO_NOTIF(DEATH_SELF_VH_WAKI_ROCKET,               N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1 couldn't find shelter from a Racer rocket%s%s"), "")
-    MSG_INFO_NOTIF(DEATH_SELF_VOID,                         N_CONSOLE,  3, 1, "s1 s2 s3loc spree_lost", "s1",   "notify_void",            "^BG%s^K1 %s^K1%s%s", "")
+    MSG_INFO_NOTIF(DEATH_SELF_VOID,                         N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_void",          _("^BG%s^K1 ended up in the wrong place%s%s"), "")
 
     MULTITEAM_INFO(DEATH_TEAMKILL,                          N_CONSOLE,  3, 1, "s1 s2 s3loc spree_end", "s2 s1",     "notify_teamkill_%s",   _("^BG%s^K1 was betrayed by ^BG%s^K1%s%s"), "", NAME)
 
index 928f073e18d43eca41e093fb71018cef67b80c14..826e84d2b582092df98e0cded5e6b7abc4c00e9f 100644 (file)
@@ -284,7 +284,7 @@ void Obituary(entity attacker, entity inflictor, entity targ, int deathtype, .en
                                                break;
                                        }
                                        case DEATH_HURTTRIGGER:
-                                               Obituary_SpecialDeath(targ, false, deathtype, targ.netname, inflictor.message, deathlocation, CS(targ).killcount, 0, 0);
+                                               Obituary_SpecialDeath(targ, false, deathtype, targ.netname, deathlocation, "", CS(targ).killcount, 0, 0);
                                                break;
                                        default:
                                        {
@@ -436,8 +436,8 @@ void Obituary(entity attacker, entity inflictor, entity targ, int deathtype, .en
                        {
                                Obituary_SpecialDeath(targ, false, deathtype,
                                        targ.netname,
-                                       inflictor.message,
                                        deathlocation,
+                                       "",
                                        CS(targ).killcount,
                                        0,
                                        0);