]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Add this in the shooting code too. No way to test so I hope it works well
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 9 Sep 2010 17:01:37 +0000 (20:01 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 9 Sep 2010 17:01:37 +0000 (20:01 +0300)
data/qcsrc/server/bot/aim.qc

index e2476d039af3601e5b81e80a8064f3ee39ff7380..5b54e7d979759e05d5797585e4cd152905444ddf 100644 (file)
@@ -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)