]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove unused bot_canfire field
authorterencehill <piuntn@gmail.com>
Sun, 21 Aug 2022 17:07:32 +0000 (19:07 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 21 Aug 2022 17:07:32 +0000 (19:07 +0200)
qcsrc/server/bot/default/aim.qc
qcsrc/server/bot/default/bot.qh

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
index 74f7e0fa944e67d3ef270b0709b2db7548993463..95744035abebca2514da2256254f9edddb5d1719 100644 (file)
@@ -65,7 +65,6 @@ entity bot_list;
 .float bot_pickup;
 .float bot_pickupbasevalue;
 .bool bot_pickup_respawning;
-.float bot_canfire;
 .float bot_strategytime;
 .float bot_jump_time;