Skip to content
This repository was archived by the owner on Jul 5, 2021. It is now read-only.

Commit be7f984

Browse files
Update v2.0.1
1 parent 27f0a1a commit be7f984

File tree

2 files changed

+48
-51
lines changed

2 files changed

+48
-51
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# R3nzTheCodeGOD Valorant External Cheat
2-
**[UNDEDECTED] When you take your crosshair to the man, it shoots at the enemy in 5ms.**
2+
- **Status:** `UNDEDECTED`
3+
- **When you take your crosshair to the man, it shoots at the enemy in 5ms.**
34

45
## Download and Using
56

@@ -11,7 +12,7 @@
1112

1213
### second method / easy but I don't recommend
1314
- download the latest version [here](https://github.com/R3nzTheCodeGOD/Valorant-External-Cheat/releases)
14-
- run `r3nzthecodegod.exe`
15+
- run `R3nzVal.exe`
1516

1617
## Game Settings and Note
1718
- **You have to play the game in `purple colorblind mode`**
@@ -25,6 +26,9 @@
2526
- `ctrl + down` to decrease `ctrl + up` to increase the trigger area
2627

2728
## Changelog
29+
### Version v2.0.1
30+
- Keyboard input lag issue fixed
31+
- New sha256 hash system
2832
### Version v2.0.0
2933
- Increased performance, faster reaction time.
3034
- Higher Security

main.py

Lines changed: 42 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -22,118 +22,111 @@
2222
SOFTWARE.
2323
"""
2424

25+
from winsound import Beep
26+
from colorama import Fore, Style, init
27+
from mss import mss
28+
from PIL import ImageGrab, Image
29+
from ctypes import windll
30+
from time import perf_counter, sleep
31+
from os import system
32+
from keyboard import is_pressed
33+
from hashlib import sha256
34+
from random import random
35+
36+
2537
__author__: str = 'R3nzTheCodeGOD'
26-
__version__: str = 'v2.0.0'
38+
__version__: str = 'v2.0.1'
2739

28-
from keyboard import is_pressed
29-
from os import system
30-
from time import perf_counter, sleep
31-
from ctypes import windll
32-
from PIL import ImageGrab, Image
33-
from winsound import Beep
34-
from mss import mss
35-
from colorama import Fore, Style, init
3640

37-
S_HEIGHT, S_WIDTH = (ImageGrab.grab().size)
41+
S_HEIGHT, S_WIDTH = ImageGrab.grab().size
3842
GRABZONE: int = 5
3943
TRIGGER_KEY: str = 'shift'
4044
SWITCH_KEY: str = 'ctrl + tab'
4145
GRABZONE_KEY_UP: str = 'ctrl + up'
4246
GRABZONE_KEY_DOWN: str = 'ctrl + down'
4347
mods: tuple = ('0.3s Delay', '0.2s Delay', '0.1s Delay', 'No Delay Full-Auto')
44-
48+
49+
4550
class FoundEnemy(Exception):
4651
pass
47-
52+
53+
4854
class TriggerBot:
4955
def __init__(self) -> None:
5056
self._mode: int = 2
5157
self._last_reac: int = 0
52-
58+
5359
def switch(self):
5460
if self._mode != 3: self._mode += 1
5561
else: self._mode = 0
56-
5762
if self._mode == 0: Beep(200, 100)
5863
elif self._mode == 1: Beep(200, 100), Beep(200, 100)
5964
elif self._mode == 2: Beep(200, 100), Beep(200, 100), Beep(200, 100)
6065
elif self._mode == 3: Beep(200, 100), Beep(200, 100), Beep(200, 100), Beep(200, 100)
61-
62-
def color_check(self, red: int, green: int, blue: int) -> bool:
63-
if green >= 190:
64-
return False
65-
66-
if green >= 140:
67-
return abs(red - blue) <= 8 and red - green >= 50 and blue - green >= 50 and red >= 105 and blue >= 105
6866

67+
def color_check(self, red: int, green: int, blue: int) -> bool:
68+
if green >= 190: return False
69+
if green >= 140: return abs(red - blue) <= 8 and red - green >= 50 and blue - green >= 50 and red >= 105 and blue >= 105
6970
return abs(red - blue) <= 13 and red - green >= 60 and blue - green >= 60 and red >= 110 and blue >= 100
7071

7172
def grab(self) -> Image:
7273
with mss() as sct:
7374
bbox: tuple = (int(S_HEIGHT / 2 - GRABZONE), int(S_WIDTH / 2 - GRABZONE), int(S_HEIGHT / 2 + GRABZONE), int(S_WIDTH / 2 + GRABZONE))
7475
sct_img = sct.grab(bbox)
7576
return Image.frombytes('RGB', sct_img.size, sct_img.bgra, 'raw', 'BGRX')
76-
77+
7778
def scan(self) -> None:
7879
start_time: float = perf_counter()
7980
pmap: Image = self.grab()
80-
81+
8182
try:
82-
for x in range(0, GRABZONE*2):
83-
for y in range(0, GRABZONE*2):
84-
r, g, b = pmap.getpixel((x,y))
83+
for x in range(0, GRABZONE * 2):
84+
for y in range(0, GRABZONE * 2):
85+
r, g, b = pmap.getpixel((x, y))
8586
if self.color_check(r, g, b): raise FoundEnemy
86-
87+
8788
except FoundEnemy:
88-
self._last_reac = int((perf_counter() - start_time)*1000)
89-
90-
windll.user32.mouse_event(2, 0, 0, 0, 0)
91-
windll.user32.mouse_event(4, 0, 0, 0, 0)
89+
self._last_reac = int((perf_counter() - start_time) * 1000)
90+
windll.user32.mouse_event(2, 0, 0, 0, 0), windll.user32.mouse_event(4, 0, 0, 0, 0)
9291

9392
if self._mode == 0: sleep(0.3)
9493
elif self._mode == 1: sleep(0.2)
9594
elif self._mode == 2: sleep(0.1)
9695
elif self._mode == 3: pass
9796

97+
9898
def print_banner(bot: TriggerBot) -> None:
9999
system('cls')
100100
print(Style.BRIGHT + Fore.CYAN + f'{__author__} Valorant External Cheat {__version__}' + Style.RESET_ALL)
101101
print('====== Controls ======')
102102
print('Trigger Key :', Fore.YELLOW + TRIGGER_KEY + Style.RESET_ALL)
103-
print('Mode Chage Key :', Fore.YELLOW + SWITCH_KEY + Style.RESET_ALL)
103+
print('Mode Change Key :', Fore.YELLOW + SWITCH_KEY + Style.RESET_ALL)
104104
print('Grab Zone Change Key :', Fore.YELLOW + GRABZONE_KEY_UP + '/' + GRABZONE_KEY_DOWN + Style.RESET_ALL)
105105
print('===== Information ====')
106106
print('Mode :', Fore.CYAN + mods[bot._mode] + Style.RESET_ALL)
107107
print('Grab Zone :', Fore.CYAN + str(GRABZONE) + 'x' + str(GRABZONE) + Style.RESET_ALL)
108108
print('Trigger Status :', Fore.GREEN + f'Hold down the "{TRIGGER_KEY}" key' + Style.RESET_ALL)
109-
print('Last React Time :', Fore.CYAN + str(bot._last_reac) + Style.RESET_ALL + ' ms (' + str((bot._last_reac)/(GRABZONE*GRABZONE)) + 'ms/pix)')
109+
print('Last React Time :', Fore.CYAN + str(bot._last_reac) + Style.RESET_ALL + ' ms (' + str((bot._last_reac)/(GRABZONE * GRABZONE)) + 'ms/pix)')
110+
110111

111112
if __name__ == "__main__":
112-
print('e340d4e42d032023127fcd4a42ea34349fc0b00b982047ad614d405fc2cd1168')
113-
init()
114-
system('@echo off')
115-
system('cls')
113+
_hash: str = sha256(f'{random()}'.encode('utf-8')).hexdigest()
114+
print(_hash), system(f'title {_hash}'), sleep(0.5), init(), system('@echo off'), system('cls')
116115
bot = TriggerBot()
117116
print_banner(bot)
118117

119118
while True:
120-
if is_pressed(SWITCH_KEY):
121-
bot.switch()
122-
print_banner(bot)
119+
if is_pressed(SWITCH_KEY): bot.switch(), print_banner(bot)
123120

124121
if is_pressed(GRABZONE_KEY_UP):
125122
GRABZONE += 1
126-
print_banner(bot)
127-
Beep(400, 100)
123+
print_banner(bot), Beep(400, 100)
128124

129125
if is_pressed(GRABZONE_KEY_DOWN):
130126
if GRABZONE != 1: GRABZONE -= 1
131-
print_banner(bot)
132-
Beep(300, 100)
127+
print_banner(bot), Beep(300, 100)
133128

134129
if is_pressed(TRIGGER_KEY):
135-
bot.scan()
136-
print_banner(bot)
137-
sleep(0.001) # loop with keyboard.is_pressed causing input lag
138-
"""Keyboard kütüphanesi çok fazla threding işlemi ve for döngüsü yapıyor.
139-
Hızlı bilgisayarlarda fazla girilen while döngüsü problem oluşturuyor."""
130+
bot.scan(), print_banner(bot)
131+
132+
sleep(0.001) # [Fix input lag] Contributing: https://github.com/atakanhr

0 commit comments

Comments
 (0)