From ccd6387920432c9a8263a2b9813d552642e6546a Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 1 Sep 2015 18:04:04 +0200 Subject: FancyClient has latency detection and rates motion steadyness --- strategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strategy.py') diff --git a/strategy.py b/strategy.py index 900cf8f..d0554c9 100644 --- a/strategy.py +++ b/strategy.py @@ -186,7 +186,7 @@ class Strategy: self.gui.draw_bar(((100,40),(500,24)), success_rate, thresh=.98, color=(0,0,127)) - if success_rate >= 0.98: + if success_rate >= 0.98 and self.c.movement_steadyness() < math.pi/4: self.c.send_shoot() -- cgit v1.2.3