From: MirceaKitsune Date: Thu, 9 Sep 2010 17:01:37 +0000 (+0300) Subject: Add this in the shooting code too. No way to test so I hope it works well X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=902def070e2f6d69e3b0e79b322747c46c4ce6e8;p=voretournament%2Fvoretournament.git Add this in the shooting code too. No way to test so I hope it works well --- diff --git a/data/qcsrc/server/bot/aim.qc b/data/qcsrc/server/bot/aim.qc index e2476d03..5b54e7d9 100644 --- a/data/qcsrc/server/bot/aim.qc +++ b/data/qcsrc/server/bot/aim.qc @@ -100,6 +100,9 @@ float lag_additem(float t, float f1, float f2, entity e1, vector v1, vector v2, float bot_shouldattack(entity e) { + if(g_rpg && cvar("g_rpg_botattack") < 2) + return FALSE; + if (e.team == self.team) { if (e == self)