Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
/ cs2-bhop Public archive

This is a BunnyHop script for Counter-Strike 2 that automates jumping while holding the space bar, providing a smoother and more consistent bunny hopping experience.

License

Notifications You must be signed in to change notification settings

Jesewe/cs2-bhop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

CS2 Bhop Script

This is a Bunny Hop (Bhop) script for Counter-Strike 2 (CS2) that automates jumping while holding the space bar, providing a smoother and more consistent bunny hopping experience.

Features

  • Automatically jumps when the space bar is held down
  • Simple and lightweight script
  • Real-time process and memory manipulation using the pymem library
  • Fetches the latest game offsets from an online repository

Requirements

  • Python 3.x
  • pymem library
  • requests library

Installation

  1. Clone the repository:

    git clone https://github.com/Jesewe/cs2-bhop.git
    cd cs2-bhop
  2. Install the required Python libraries:

    pip install pymem requests

Usage

  1. Ensure that Counter-Strike 2 (cs2.exe) is running.

  2. Run the script:

    python main.py
  3. Hold down the space bar to activate the bunny hop.

Script Explanation

The script works by:

  • Searching for the cs2.exe process.
  • Fetching the memory offsets required for jumping from an online repository.
  • Writing to the memory address responsible for the jump action when the space bar is pressed.

Code Overview

  • fetch_offsets(): Fetches the latest game offsets from an online repository.
  • get_cs2_process(): Retrieves the cs2.exe process.
  • get_client_module(pm): Gets the client.dll module from the process.
  • bhop(): Main function that handles the bunny hopping logic.

Error Handling

The script includes error handling for various exceptions, including process not found, module not found, memory read/write errors, and more.

Logging

The script uses the logging module to log important information and errors, making it easier to debug and monitor the script's execution.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Disclaimer

This script is for educational purposes only. Use it at your own risk. The author is not responsible for any consequences resulting from the use of this script, including but not limited to game bans or other punitive actions by game administrators.

About

This is a BunnyHop script for Counter-Strike 2 that automates jumping while holding the space bar, providing a smoother and more consistent bunny hopping experience.

Topics

Resources

License

Stars

Watchers

Forks

Languages