diff --git a/mods/bots/maps/mp/bots/_bot_internal.gsc b/mods/bots/maps/mp/bots/_bot_internal.gsc index bce0c59..2d88560 100644 --- a/mods/bots/maps/mp/bots/_bot_internal.gsc +++ b/mods/bots/maps/mp/bots/_bot_internal.gsc @@ -1269,8 +1269,6 @@ aim() { if(no_trace_time > no_trace_ads_time && !usingRemote) { - self ads(false); - if(isplay) { //better room to nade? cook time function with dist? @@ -1315,19 +1313,18 @@ aim() if(false && isplay && conedot > 0.9 && dist < level.bots_maxKnifeDistance && trace_time > reaction_time) { - self ads(false); - self knife(); + self knife(target); continue; } if(!self canFire(curweap) || !self isInRange(dist, curweap)) { - self ads(false); continue; } canADS = self canAds(dist, curweap); - self ads(canADS); + if (canADS) + self thread pressAds(); if((!canADS || self botAdsAmount() == 1.0) && (conedot > 0.95 || dist < level.bots_maxKnifeDistance) && trace_time > reaction_time) { @@ -1338,8 +1335,6 @@ aim() } } - self ads(false); - if (!isDefined(self.bot.script_aimpos)) { if (!usingRemote) @@ -1788,6 +1783,13 @@ getRandomLargestStafe(dist) return toptraces[randomInt(toptraces.size)]["position"]; } +/* + Bot will knife. +*/ +knife(ent) +{ +} + /* Bot will reload. */ @@ -1800,13 +1802,6 @@ reload() // the script should reload for us. } -/* - Bot will knife. -*/ -knife() -{ -} - botThrowGrenade(grenName) { self endon("death");