]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_damage.qc
Hack: do not use players as goals
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_damage.qc
index 5975adf8a8dbfa04c9f5ce0237fa5a7ee18f4c9a..d6020bd349a8b7bf6955b838d5f094da1b80d7db 100644 (file)
@@ -124,6 +124,8 @@ void GiveFrags (entity attacker, entity targ, float f, float deathtype)
        {
                // regular frag
                PlayerScore_Add(attacker, SP_KILLS, 1);
+               if(targ.playerid)
+                       PlayerStats_Event(attacker, sprintf("kills-%d", targ.playerid), 1);
        }
 
        PlayerScore_Add(targ, SP_DEATHS, 1);