]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/gamemodes/gamemode/race/sv_race.qc
Add a return value to the PlayerDamaged mutator hook to forbid logging damage
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / race / sv_race.qc
index 2709a3cc9311e5f604c8055ca8fe8963919993f6..0ffda17a96407171e9e1cbada4d045894a80ba3b 100644 (file)
@@ -289,7 +289,7 @@ MUTATOR_HOOKFUNCTION(rc, PlayerDamaged)
 {
        int frag_deathtype = M_ARGV(5, int);
        if (frag_deathtype == DEATH_KILL.m_id)
-               M_ARGV(0, bool) = true; // forbid_damage_logging
+               return true; // forbid logging damage
 }
 
 MUTATOR_HOOKFUNCTION(rc, PlayerDies)