Skip to content

Instantly share code, notes, and snippets.

//tools.h
#ifndef __TOOLS_H__
#define __TOOLS_H__
enum titleIDs {
MW2 = 0x41560817
};
class Tools {
public:
//stdafx.h
#pragma once
#include <xtl.h>
#include <xboxmath.h>
#include <stdio.h>
#include <map>
#include <math.h>
#include <xkelib.h>
#include <vector>
//render.h
#ifndef __RENDER_H__
#define __RENDER_H__
class Render {
public:
static void DrawText(char* text, float x, float y, char* fontName, float fontScale, color color);
static void DrawShader(float x, float y, float width, float height, char* materials, color color);
static void DrawShaderWithOutline(float x, float y, float w, float h, color backgroundColor, color outlineColor, float lineWidth);
static void DrawCenteredText(char* text, float x, float y, float width, char* fontName, float fontScale, color color);
//menu.h
#ifndef __MENU_H__
#define __MENU_H__
enum Submenu_s {
CLOSED,
MAIN_MENU,
AIMBOT_MENU,
VISUAL_MENU,
CLIENT_LIST,
//hooks.h
#ifndef __HOOKS_H__
#define __HOOKS_H__
class Hooks {
public:
static void SND_EndFrameHook();
static void InitializeHooks();
static void UnloadHooks();
};
//functions.h
#ifndef __FUNCTIONS_H__
#define __FUNCTIONS_H__
class Functions {
public:
static char* GetFont();
};
#endif // __FUNCTIONS_H__
//detour.h
// Made by Xx jAmes t xX
// This .h is used to edit functions to detour to your own custom one
// This class dosnt edit the '.text' section
//
#ifndef __DETOUR_H
#define __DETOUR_H
#pragma once
//definitions.h
#ifndef __DEFINITIONS_H__
#define __DEFINITIONS_H__
extern void(*R_AddCmdDrawText)(char *text, int maxChars, int font, float x, float y, float xScale, float yScale, float rotation, color& color, int style);
extern void(*R_AddCmdDrawStretchPic)(float x, float y, float w, float h, float s0, float t0, float s1, float t1, color& color, int material);
extern int(*R_TextWidth)(const char* text, int maxChars, int font);
extern int(*R_TextHeight)(int font);
extern DWORD(*DB_FindXAssetHeader)(DWORD Type, PCHAR Name, DWORD r5);
//addresses.h
#ifndef __ADDRESSES_H__
#define __ADDRESSES_H__
struct addresses_s {
DWORD R_AddCmdDrawText;
DWORD R_AddCmdDrawStretchPic;
DWORD R_TextWidth;
DWORD R_TextHeight;