-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeatures.hpp
More file actions
33 lines (31 loc) · 2.21 KB
/
features.hpp
File metadata and controls
33 lines (31 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include <Windows.h>
namespace features
{
// assault cube offsets
//credits to: https://github.com/Silme94/Assault-Cube-1.3.0.2-Offsets
//since I was too lazy to find offsets myself
namespace offsets
{
const uintptr_t localPlayer = 0x0017E0A8; // pointer to local player struct
const uintptr_t yaw = 0x34; // pointer to entity->yaw in player struct, can be used to set view angles for aimbot
const uintptr_t pitch = 0x38; // pointer to entity->pitch in player struct, can be used to set view angles for aimbot
const uintptr_t entityList = 0x0058AC04; // (static addy, not relative to module base) pointer to entity list
const uintptr_t numplayers = 0x0058AC0C; // (NOT relative to module base, static address) num players in the game, can be used to loop through entity list
const uintptr_t health = 0xEC; // offset for health in player struct
const uintptr_t recoil = 0x004C2EC3; // offset for part of a function that handles recoil, we will nop it
const uintptr_t rifle_ammo = 0x140; // offset for rifle ammo in player struct
const uintptr_t machinegun_ammo = 0x138; // offset for machinegun ammo in player struct
const uintptr_t sniper_ammo = 0x13C; // offset for sniper ammo in player struct
const uintptr_t shotgun_ammo = 0x134; // offset for shotgun in player struct
const uintptr_t pistol_ammo = 0x12C; // offset for pistol ammo in player struct
const uintptr_t grenade_count = 0x144; // offset for grenade count in player struct
const uintptr_t rapidfire = 0xC73EA; // offset for part of a function that handles firing rate, we will nop it
const uintptr_t num_players = 0x191FD4; // offset for num of players in the game (localplayer not included in this count)
const uintptr_t game_mode = 0x58ABF8; // offset for player list (localplayer not included in this list, starts with entity 1)
const uintptr_t silent_aim_hook_location = 0xC735F; // offset for the instruction that we will hook to implement silent aim
const uintptr_t map_name = 0x17F148; // offset for pointer to current map name
}
//main func to call in the loop to execute features
void execute();
}