From db6ce81423da05b0f6790127f44b8524885b0067 Mon Sep 17 00:00:00 2001 From: INeedBots Date: Tue, 20 Oct 2020 15:43:46 -0600 Subject: [PATCH] Fix spam --- userraw/maps/mp/bots/_bot_internal.gsc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/userraw/maps/mp/bots/_bot_internal.gsc b/userraw/maps/mp/bots/_bot_internal.gsc index 0651a9c..b32abca 100644 --- a/userraw/maps/mp/bots/_bot_internal.gsc +++ b/userraw/maps/mp/bots/_bot_internal.gsc @@ -625,6 +625,9 @@ stanceHack() if (self.bot.isfrozen) continue; + + if (self GetStance() == self.bot.stance) + continue; self SetStance(self.bot.stance); } @@ -1033,6 +1036,7 @@ fireHack() self endon("spawned_player"); self FreezeControls(true); + lastParam = true; for (;;) { wait 0.05; @@ -1066,6 +1070,11 @@ fireHack() shouldFire = false; self.bot.is_frozen_internal = !shouldFire; + + //if (lastParam == !shouldFire) + // continue; + + lastParam = !shouldFire; self FreezeControls(!shouldFire); } } @@ -1080,6 +1089,7 @@ adsHack() self endon("spawned_player"); self setSpreadOverride(self.bot.ads_tightness); + lastParam = self.bot.ads_tightness; for (;;) { wait 0.05; @@ -1119,6 +1129,11 @@ adsHack() if (self.bot.ads_tightness > self.bot.ads_lowest) self.bot.ads_tightness = self.bot.ads_lowest; + if (lastParam == self.bot.ads_tightness) + continue; + + lastParam = self.bot.ads_tightness; + if (self.bot.ads_tightness >= self.bot.ads_lowest) self ResetSpreadOverride(); else