]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bring back custom void death messages (proper fix seems unlikely, given the need...
authorMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 11:19:03 +0000 (21:19 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 11:19:03 +0000 (21:19 +1000)
qcsrc/common/notifications.inc
qcsrc/server/g_damage.qc

index 1f553c7962dcd6c795403b9e06ae3549a4d847a6..715ea03d8d788dac6cc960a22bb0fd4119e5c386 100644 (file)
     MSG_INFO_NOTIF(1, INFO_DEATH_SELF_VH_SPID_ROCKET,      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(1, INFO_DEATH_SELF_VH_WAKI_DEATH,       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(1, INFO_DEATH_SELF_VH_WAKI_ROCKET,      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(1, INFO_DEATH_SELF_VOID,                2, 1, "s1 s2loc spree_lost", "s1",       "notify_void",          _("^BG%s^K1 was in the wrong place%s%s"), "")
+    MSG_INFO_NOTIF(1, INFO_DEATH_SELF_VOID,                3, 1, "s1 s2 s2loc spree_lost", "s1",    "notify_void",            "^BG%s^K1 %s^K1%s%s", "")
     MULTITEAM_INFO(1, INFO_DEATH_TEAMKILL_, 4,             3, 1, "s1 s2 s3loc spree_end", "s2 s1",  "notify_teamkill_%s",   _("^BG%s^K1 was betrayed by ^BG%s^K1%s%s"), "")
     MSG_INFO_NOTIF(1, INFO_DOMINATION_CAPTURE_TIME,        2, 2, "s1 s2 f1 f2", "",                 "",                     _("^BG%s^BG%s^BG (%s points every %s seconds)"), "")
     MSG_INFO_NOTIF(1, INFO_FREEZETAG_FREEZE,               2, 0, "s1 s2", "",                       "",                     _("^BG%s^K1 was frozen by ^BG%s"), "")
index 39ad85c6dbabf69e93ab8b97b645effbaea93e8b..2ef47bec1eb6f49e890aa283a350e3f4ab2e8452 100644 (file)
@@ -498,13 +498,17 @@ void Obituary(entity attacker, entity inflictor, entity targ, int deathtype)
                        // For now, we're just forcing HURTTRIGGER to behave as "DEATH_VOID" and giving it no special options...
                        // Later on you will only be able to make custom messages using DEATH_CUSTOM,
                        // and there will be a REAL DEATH_VOID implementation which mappers will use.
-                       /*case DEATH_HURTTRIGGER:
+                       case DEATH_HURTTRIGGER:
                        {
-                               s1 = targ.netname;
-                               s2 = inflictor.message;
-                               if(strstrofs(s2, "%", 0) < 0) { s2 = strcat("%s ", s2); }
+                               Obituary_SpecialDeath(targ, false, deathtype,
+                                       targ.netname,
+                                       inflictor.message,
+                                       deathlocation,
+                                       targ.killcount,
+                                       0,
+                                       0);
                                break;
-                       }*/
+                       }
 
                        case DEATH_CUSTOM:
                        {