init time values before calling fn who use them
This commit is contained in:
parent
3a03d017b4
commit
337487a4eb
1 changed files with 4 additions and 3 deletions
7
hack.py
7
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:
|
||||
|
|
Reference in a new issue