]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix ordering of kill messages, add kill messages for melee wpns ;)
authorFruitieX <rasse@rasse-lappy.localdomain>
Sat, 24 Jul 2010 15:53:05 +0000 (18:53 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Sat, 24 Jul 2010 15:53:05 +0000 (18:53 +0300)
qcsrc/client/hud.qc
qcsrc/server/g_damage.qc
qcsrc/server/w_laser.qc
qcsrc/server/w_shotgun.qc

index 10cf86f0994dbccea0437141da02e9358686981b..1a6c962cac863577850fea22f8648c263c98b988 100644 (file)
@@ -2437,7 +2437,7 @@ void HUD_KillNotify(string s1, string s2, string s3, float type, float msg)
        } else if(msg == MSG_KILL) {
                w = DEATH_WEAPONOF(type);
                if(WEP_VALID(w)) {
-                       HUD_KillNotify_Push(s2, s1, 1, type);
+                       HUD_KillNotify_Push(s1, s2, 1, type);
                        if (alsoprint)
                                print("^1", sprintf(Weapon_KillMessage(type), strcat(s2, "^1"), strcat(s1, "^1")), "\n"); // default order: victim, killer
                }
index 7c3dc9a361da520e27a6e61e5225d818aa60cacb..45962bee7b3e69cb94513c8b57eccb36ba225446 100644 (file)
@@ -370,7 +370,7 @@ void Obituary (entity attacker, entity inflictor, entity targ, float deathtype)
                                        msg = ftos(strstrofs(inflictor.message2, "#", 0));
                                }
 
-                               Send_KillNotification(s, a, msg, deathtype, MSG_KILL);
+                               Send_KillNotification(a, s, msg, deathtype, MSG_KILL);
 
                                if(g_ctf && targ.flagcarried)
                                {
index 81a5527ac57f8c557e7aa7efc30463f6a4b8800a..280e42cf33f0abb11b3f788b9fe04f9ba709ee58 100644 (file)
@@ -280,7 +280,10 @@ float w_laser(float req)
                w_deathtypestring = "%s lasered themself to hell";
        else if (req == WR_KILLMESSAGE)
        {
-               w_deathtypestring = "%s was lasered to death by %s"; // unchecked: SPLASH
+               if(w_deathtype & HITTYPE_SECONDARY)
+                       w_deathtypestring = "%s was cut in half by %s's gauntlet"; // unchecked: SPLASH
+               else
+                       w_deathtypestring = "%s was lasered to death by %s"; // unchecked: SPLASH
        }
        return TRUE;
 }
index 6528f22f3c1ce052d0b8519bd3e6ddaf8cda3f39..1f714d1c7c682859a7516e6cc681fb43370e935c 100644 (file)
@@ -162,7 +162,10 @@ float w_shotgun(float req)
                w_deathtypestring = "%s did the impossible";
        else if (req == WR_KILLMESSAGE)
        {
-               w_deathtypestring = "%s was gunned by %s"; // unchecked: SECONDARY
+               if(w_deathtype & HITTYPE_SECONDARY)
+                       w_deathtypestring = "%2$s ^7slapped %1$s ^7around a bit with a large ^2shotgun";
+               else
+                       w_deathtypestring = "%s was gunned by %s";
        }
        return TRUE;
 }