]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
sometimes the clientside headshot detection code detects sprees as headshots or somet...
authorFruitieX <fruitiex@gmail.com>
Wed, 10 Nov 2010 18:45:51 +0000 (20:45 +0200)
committerFruitieX <fruitiex@gmail.com>
Wed, 10 Nov 2010 18:45:51 +0000 (20:45 +0200)
qcsrc/client/hud.qc
qcsrc/server/w_minstanex.qc

index 9a203c72b54ac738d58346a4ffc2f38861985eae..7aedac32f3971659d7eb23a1809f4f27f74809f7 100644 (file)
@@ -2643,14 +2643,13 @@ void HUD_KillNotify(string s1, string s2, string s3, float type, float msg) // s
        } else if(msg == MSG_KILL) {
                w = DEATH_WEAPONOF(type);
                if(WEP_VALID(w)) {
-                       if(type & HITTYPE_HEADSHOT)
+                       if((w == WEP_CAMPINGRIFLE || w == WEP_MINSTANEX) && type & HITTYPE_HEADSHOT) // all headshot weapons go here
                                HUD_KillNotify_Push(s1, s2, 1, DEATH_HEADSHOT);
                        else
-                       {
                                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
-                       }
+
+                       if (alsoprint)
+                               print("^1", sprintf(Weapon_KillMessage(type), strcat(s2, "^1"), strcat(s1, "^1")), "\n"); // default order: victim, killer
                }
                else if(type == KILL_TEAM_RED || type == KILL_TEAM_BLUE || type == KILL_TEAM_SPREE) {
                        HUD_KillNotify_Push(s1, s2, 1, type);
index 352aa2b25c6edfee928e7b3541eb51f9b9a58ad5..d337bbd33fe80a4cb699bbe3de35a6af623fd9e1 100644 (file)
@@ -28,7 +28,6 @@ void W_MinstaNex_Attack (void)
                if(headshot)
                {
                        AnnounceTo(self, "headshot");
-                       print("h\n");
                }
                if(damage_goodhits && self.minstanex_lasthit)
                {