Jesewe / cs2-triggerbot

CS2 TriggerBot is an automated tool designed for Counter-Strike 2 that assists with precise aiming by automatically triggering a mouse click when an enemy is detected in the player's crosshairs.
https://github.com/Jesewe/cs2-triggerbot
MIT License
21 stars 2 forks source link

FACEIT #2

Closed Straiko closed 3 months ago

Straiko commented 3 months ago

Is it possible to set up a trigger to work on the FACEIT?

Jesewe commented 3 months ago

We don't have the option to move the project for Faceit, as there are no options for testing the “software” due to anti-cheat.

eliano-dev commented 3 months ago

how to add mouse button 5 to trigger key?

Straiko commented 3 months ago

I'll send you the code with the side button in 10 hours

Straiko commented 3 months ago

I'll send you the code with the side button in 10 hours

Maybe a little earlier

eliano-dev commented 3 months ago

if you can explain how you added the side buttons that would be perfect! Thank you.

Jesewe commented 3 months ago

how to add mouse button 5 to trigger key?

Unfortunately I tried to assign the trigger bot to the mouse side keys but the program doesn't recognize them, in upcoming updates I will try to fix this.

Jesewe commented 3 months ago

And yes, I want to ask, how would you like the TRIGGER_KEY variable to change, with the config.ini file, or your guesses?

eliano-dev commented 3 months ago

whichever way u find easier to manipulate...

Jesewe commented 3 months ago

whichever way u find easier to manipulate...

Soon enough.

    def load_config():
        """Loads configuration settings from a config.ini file."""
        config = configparser.ConfigParser()
        if not os.path.exists(Utility.CONFIG_FILE):
            config['Settings'] = {
                'trigger_key': 'MOUSE5'  # Default trigger key
            }
            with open(Utility.CONFIG_FILE, 'w') as configfile:
                config.write(configfile)
        else:
            config.read(Utility.CONFIG_FILE)
        return config
eliano-dev commented 3 months ago

if i test the mouse button 5 with pynput listener it returns that the name of the side mouse buttons are called Button.x1 and Button.x2. I hope this would save some time debugging errors?

Jesewe commented 3 months ago

if i test the mouse button 5 with pynput listener it returns that the name of the side mouse buttons are called Button.x1 and Button.x2. I hope this would save some time debugging errors?

The script code has been written for a long time, the only thing left is to test it in the game, as well as modify README.md. But thank you so much.

ScreenCode ScreenCode2

eliano-dev commented 3 months ago

when would it be published?

Jesewe commented 3 months ago

when would it be published?

The project has been updated to version: v1.0.9

Full Changelog: https://github.com/Jesewe/cs2-triggerbot/compare/v1.0.8...v1.0.9

eliano-dev commented 3 months ago

You're awesome man! God bless you

eliano-dev commented 3 months ago

one last question, if i want the second side button to be the trigger where can i change that?(MOUSE BUTTON 4)

Jesewe commented 3 months ago

one last question, if i want the second side button to be the trigger where can i change that?(MOUSE BUTTON 4)

The config.ini file is located in the %LOCALAPPDATA%\Requests\ItsJesewe\ directory.

TriggerKey = x2 (MOUSE 5) TriggerKey = x1 (MOUSE 4)

eliano-dev commented 1 month ago

Hello, hope you're doing well. Today i experienced this error: Unexpected error: Could not read memory at: 5208, length: 4 - GetLastError: 299

Jesewe commented 1 month ago

Hello, hope you're doing well. Today i experienced this error: Unexpected error: Could not read memory at: 5208, length: 4 - GetLastError: 299

Hello, everything's fine. The offsets were updated a few hours ago. Open a new "issue" next time.