]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Skill based bot damage? No thanks.
authorJakob MG <jakob_mg@hotmail.com>
Sun, 18 Sep 2011 19:33:51 +0000 (21:33 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Sun, 18 Sep 2011 19:33:51 +0000 (21:33 +0200)
qcsrc/server/g_damage.qc

index 40887ad933c5d61329e18301a41083b253eeae07..994ee260baefb3384a4522de33f146b2d562bcdb 100644 (file)
@@ -543,12 +543,15 @@ void Damage (entity targ, entity inflictor, entity attacker, float damage, float
        }
        else
        {
+               /*
+               skill based bot damage? gtfo. (tZork)
                if (targ.classname == "player")
                if (attacker.classname == "player")
                if (!targ.isbot)
                if (attacker.isbot)
                        damage = damage * bound(0.1, (skill + 5) * 0.1, 1);
-
+        */
+        
                // nullify damage if teamplay is on
                if(deathtype != DEATH_TELEFRAG)
                if(attacker.classname == "player")