From 337487a4eb4ee61f81d8109867d2c5367e8fb824 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 1 Apr 2023 17:18:56 +0200 Subject: [PATCH] init time values before calling fn who use them --- hack.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hack.py b/hack.py index 98ccfb4..a04dea3 100644 --- a/hack.py +++ b/hack.py @@ -9,6 +9,10 @@ class Hack(): """Base class for playing with CSGO memory""" def __init__(self, offline: bool = False) -> None: + # Time values + self.wait_time = 0.01 + self.timeout = self.wait_time * 50 + # Loading offsets self.offsets = self._find_offsets(offline) @@ -18,9 +22,6 @@ class Hack(): # Load process self.pm = self._find_process(True) - self.wait_time = 0.01 - self.timeout = self.wait_time * 50 - def _find_offsets(self, offline: bool) -> dict[str, int]: """Load CSGO offset from online repository or local file""" if offline: