]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/aim.qc
Remove unused bot_canfire field
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / aim.qc
index 31dc5af13cc723ea16c2e6dda97350bc508f8b04..c7e23765c6722d33bbd50fb9c08d3953fa0055ed 100644 (file)
@@ -156,14 +156,6 @@ void bot_lagfunc(entity this, float t, float f1, float f2, entity e1, vector v1,
        //this.bot_aimvelocity = v2;
        this.bot_aimtargorigin = v3;
        this.bot_aimtargvelocity = v4;
-       if(skill <= 0)
-               this.bot_canfire = (random() < 0.8);
-       else if(skill <= 1)
-               this.bot_canfire = (random() < 0.9);
-       else if(skill <= 2)
-               this.bot_canfire = (random() < 0.95);
-       else
-               this.bot_canfire = 1;
 }
 
 // this function should be called after bot_aim so the aim is reset the next frame