From: terencehill Date: Sun, 21 Aug 2022 17:07:32 +0000 (+0200) Subject: Remove unused bot_canfire field X-Git-Tag: xonotic-v0.8.6~322^2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8c479623d2b9d966f16f801ebff78c31cc8989ee;p=xonotic%2Fxonotic-data.pk3dir.git Remove unused bot_canfire field --- diff --git a/qcsrc/server/bot/default/aim.qc b/qcsrc/server/bot/default/aim.qc index 31dc5af13..c7e23765c 100644 --- a/qcsrc/server/bot/default/aim.qc +++ b/qcsrc/server/bot/default/aim.qc @@ -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 diff --git a/qcsrc/server/bot/default/bot.qh b/qcsrc/server/bot/default/bot.qh index 74f7e0fa9..95744035a 100644 --- a/qcsrc/server/bot/default/bot.qh +++ b/qcsrc/server/bot/default/bot.qh @@ -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;