]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Improve a comment
authorterencehill <piuntn@gmail.com>
Sat, 27 May 2023 14:30:33 +0000 (16:30 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 27 May 2023 14:30:33 +0000 (16:30 +0200)
qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc

index 3bb78272fd0e01a5a2729e7b38423f6cff5c0b90..f1e6b1ce2ec0f5b7fb3f361f9674806459d525e6 100644 (file)
@@ -365,7 +365,8 @@ MUTATOR_HOOKFUNCTION(ft, PlayerDies)
 
        if(ITEM_DAMAGE_NEEDKILL(frag_deathtype))
        {
-               // soft-kill: setting health to something >= 1 after death, ammo won't be reset
+               // by restoring some health right after player death (soft-kill)
+               // weapons and ammo won't be reset
                SetResourceExplicit(frag_target, RES_HEALTH, 1);
                // restore armor as it was removed in PlayerDamage
                SetResourceExplicit(frag_target, RES_ARMOR, frag_target.freezetag_frozen_armor);