From: Jakob MG Date: Sun, 18 Sep 2011 19:33:51 +0000 (+0200) Subject: Skill based bot damage? No thanks. X-Git-Tag: xonotic-v0.6.0~40^2~129 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b7a4f88773aa062a2e84d7eba1323e6369e030d4;p=xonotic%2Fxonotic-data.pk3dir.git Skill based bot damage? No thanks. --- diff --git a/qcsrc/server/g_damage.qc b/qcsrc/server/g_damage.qc index 40887ad93..994ee260b 100644 --- a/qcsrc/server/g_damage.qc +++ b/qcsrc/server/g_damage.qc @@ -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")