mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
Fix spam
This commit is contained in:
parent
fa38d44a6f
commit
db6ce81423
@ -625,6 +625,9 @@ stanceHack()
|
|||||||
|
|
||||||
if (self.bot.isfrozen)
|
if (self.bot.isfrozen)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (self GetStance() == self.bot.stance)
|
||||||
|
continue;
|
||||||
|
|
||||||
self SetStance(self.bot.stance);
|
self SetStance(self.bot.stance);
|
||||||
}
|
}
|
||||||
@ -1033,6 +1036,7 @@ fireHack()
|
|||||||
self endon("spawned_player");
|
self endon("spawned_player");
|
||||||
|
|
||||||
self FreezeControls(true);
|
self FreezeControls(true);
|
||||||
|
lastParam = true;
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
wait 0.05;
|
wait 0.05;
|
||||||
@ -1066,6 +1070,11 @@ fireHack()
|
|||||||
shouldFire = false;
|
shouldFire = false;
|
||||||
|
|
||||||
self.bot.is_frozen_internal = !shouldFire;
|
self.bot.is_frozen_internal = !shouldFire;
|
||||||
|
|
||||||
|
//if (lastParam == !shouldFire)
|
||||||
|
// continue;
|
||||||
|
|
||||||
|
lastParam = !shouldFire;
|
||||||
self FreezeControls(!shouldFire);
|
self FreezeControls(!shouldFire);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1080,6 +1089,7 @@ adsHack()
|
|||||||
self endon("spawned_player");
|
self endon("spawned_player");
|
||||||
|
|
||||||
self setSpreadOverride(self.bot.ads_tightness);
|
self setSpreadOverride(self.bot.ads_tightness);
|
||||||
|
lastParam = self.bot.ads_tightness;
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
wait 0.05;
|
wait 0.05;
|
||||||
@ -1119,6 +1129,11 @@ adsHack()
|
|||||||
if (self.bot.ads_tightness > self.bot.ads_lowest)
|
if (self.bot.ads_tightness > self.bot.ads_lowest)
|
||||||
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)
|
if (self.bot.ads_tightness >= self.bot.ads_lowest)
|
||||||
self ResetSpreadOverride();
|
self ResetSpreadOverride();
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user