This repository contains a cheat engine for the game AssaultCube, implemented in Python using the pymem
library. The code allows manipulation of various in-game values such as health, armor, and ammunition.
- Health Pointer: Modify the player's health value.
- Default Gun Pointer: Adjust the default gun's attributes.
- Armor Pointer: Change the armor value.
- Grenades Pointer: Control the number of grenades.
- Pistol Pointer: Tweak the pistol's attributes.
- Dual Pistols Pointer: Modify the dual pistols' properties.
- Python 3.x
pymem
library
Install pymem
using pip:
pip install pymem
- Download and install AssaultCube from the following link: AssaultCube v1.2.0.2
- Ensure the game is running.
- Run the script:
python final.py
The script initializes pymem
and the game module, then fetches various pointers related to in-game values. It provides functions to get pointer addresses, continuously write values, and toggle writing on and off.
get_ptr_addr(base, offsets)
: Retrieves the pointer address based on base and offsets.get_ptrs()
: Fetches and returns a tuple of pointers and their descriptions.infinite_write(hack_ptrs)
: Continuously writes values to the pointers.toggle_writing()
: Toggles the infinite writing on and off based on user input.
- Start the game.
- Run the script using Python.
- Press Enter to toggle infinite writing on and off.
- Ensure the game is running before starting the script.
- The script will continuously write values to the pointers until stopped.
This project was created as the final assignment for my CSCI 110 class.
Feel free to contribute and improve the code!