Merge pull request #406 from thinkingmaster/master
Some internal changes + xoverlay fix
This commit is contained in:
commit
b8fda88017
@ -38,7 +38,8 @@ target_sources(cathook PRIVATE
|
|||||||
"${CMAKE_CURRENT_LIST_DIR}/trace.hpp"
|
"${CMAKE_CURRENT_LIST_DIR}/trace.hpp"
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/velocity.hpp"
|
"${CMAKE_CURRENT_LIST_DIR}/velocity.hpp"
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/votelogger.hpp"
|
"${CMAKE_CURRENT_LIST_DIR}/votelogger.hpp"
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/MiscTemporary.hpp")
|
"${CMAKE_CURRENT_LIST_DIR}/MiscTemporary.hpp"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/Options.hpp")
|
||||||
|
|
||||||
target_include_directories(cathook PRIVATE "${CMAKE_CURRENT_LIST_DIR}")
|
target_include_directories(cathook PRIVATE "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
|
|
||||||
|
13
include/Options.hpp
Normal file
13
include/Options.hpp
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
Created by Jenny White on 29.04.18.
|
||||||
|
Copyright (c) 2018 nullworks. All rights reserved.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace options
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -13,11 +13,7 @@
|
|||||||
class ConVar;
|
class ConVar;
|
||||||
class IClientEntity;
|
class IClientEntity;
|
||||||
|
|
||||||
namespace hacks
|
namespace hacks::shared::aimbot
|
||||||
{
|
|
||||||
namespace shared
|
|
||||||
{
|
|
||||||
namespace aimbot
|
|
||||||
{
|
{
|
||||||
|
|
||||||
// Used to store aimbot data to prevent calculating it again
|
// Used to store aimbot data to prevent calculating it again
|
||||||
@ -61,5 +57,3 @@ void DoSlowAim(Vector &inputAngle);
|
|||||||
bool UpdateAimkey();
|
bool UpdateAimkey();
|
||||||
float EffectiveTargetingRange();
|
float EffectiveTargetingRange();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -9,16 +9,10 @@
|
|||||||
|
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
|
||||||
namespace hacks
|
namespace hacks::shared::announcer
|
||||||
{
|
|
||||||
namespace shared
|
|
||||||
{
|
|
||||||
namespace announcer
|
|
||||||
{
|
{
|
||||||
|
|
||||||
void playsound(const std::string &);
|
void playsound(const std::string &);
|
||||||
void init();
|
void init();
|
||||||
void shutdown();
|
void shutdown();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -10,11 +10,7 @@
|
|||||||
class CatVar;
|
class CatVar;
|
||||||
class CUserCmd;
|
class CUserCmd;
|
||||||
|
|
||||||
namespace hacks
|
namespace hacks::shared::antiaim
|
||||||
{
|
|
||||||
namespace shared
|
|
||||||
{
|
|
||||||
namespace antiaim
|
|
||||||
{
|
{
|
||||||
|
|
||||||
// TODO paste AA from AimTux
|
// TODO paste AA from AimTux
|
||||||
@ -35,6 +31,4 @@ extern int safe_space;
|
|||||||
void SetSafeSpace(int safespace);
|
void SetSafeSpace(int safespace);
|
||||||
bool ShouldAA(CUserCmd *cmd);
|
bool ShouldAA(CUserCmd *cmd);
|
||||||
void ProcessUserCmd(CUserCmd *cmd);
|
void ProcessUserCmd(CUserCmd *cmd);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
@ -7,15 +7,12 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace hacks
|
namespace hacks::tf2::antibackstab
|
||||||
{
|
|
||||||
namespace tf2
|
|
||||||
{
|
|
||||||
namespace antibackstab
|
|
||||||
{
|
{
|
||||||
|
|
||||||
extern bool noaa;
|
extern bool noaa;
|
||||||
|
|
||||||
void CreateMove();
|
void CreateMove();
|
||||||
|
|
||||||
void PaintTraverse();
|
void PaintTraverse();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -13,11 +13,7 @@
|
|||||||
#include "ac/antiaim.hpp"
|
#include "ac/antiaim.hpp"
|
||||||
#include "ac/bhop.hpp"
|
#include "ac/bhop.hpp"
|
||||||
|
|
||||||
namespace hacks
|
namespace hacks::shared::anticheat
|
||||||
{
|
|
||||||
namespace shared
|
|
||||||
{
|
|
||||||
namespace anticheat
|
|
||||||
{
|
{
|
||||||
|
|
||||||
void Accuse(int eid, const std::string &hack, const std::string &details);
|
void Accuse(int eid, const std::string &hack, const std::string &details);
|
||||||
@ -27,6 +23,4 @@ void CreateMove();
|
|||||||
|
|
||||||
void ResetPlayer(int index);
|
void ResetPlayer(int index);
|
||||||
void ResetEverything();
|
void ResetEverything();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
@ -9,16 +9,10 @@
|
|||||||
|
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
|
||||||
namespace hacks
|
namespace hacks::tf2::antidisguise
|
||||||
{
|
|
||||||
namespace tf2
|
|
||||||
{
|
|
||||||
namespace antidisguise
|
|
||||||
{
|
{
|
||||||
|
|
||||||
extern CatVar enabled;
|
extern CatVar enabled;
|
||||||
|
|
||||||
void Draw();
|
void Draw();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -7,15 +7,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace hacks
|
namespace hacks::tf2::autobackstab
|
||||||
{
|
|
||||||
namespace tf2
|
|
||||||
{
|
|
||||||
namespace autobackstab
|
|
||||||
{
|
{
|
||||||
|
|
||||||
void CreateMove();
|
void CreateMove();
|
||||||
const Vector GetWorldSpaceCenter(CachedEntity *ent);
|
const Vector GetWorldSpaceCenter(CachedEntity *ent);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -6,13 +6,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
namespace hacks
|
namespace hacks::shared::deadringer
|
||||||
{
|
|
||||||
namespace shared
|
|
||||||
{
|
|
||||||
namespace deadringer
|
|
||||||
{
|
{
|
||||||
|
|
||||||
void CreateMove();
|
void CreateMove();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -9,13 +9,8 @@
|
|||||||
|
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
|
||||||
namespace hacks
|
namespace hacks::tf::autodetonator
|
||||||
{
|
|
||||||
namespace tf
|
|
||||||
{
|
|
||||||
namespace autodetonator
|
|
||||||
{
|
{
|
||||||
|
|
||||||
void CreateMove();
|
void CreateMove();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -31,7 +31,8 @@ target_sources(cathook PRIVATE
|
|||||||
"${CMAKE_CURRENT_LIST_DIR}/ucccccp_cmds.cpp"
|
"${CMAKE_CURRENT_LIST_DIR}/ucccccp_cmds.cpp"
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/velocity.cpp"
|
"${CMAKE_CURRENT_LIST_DIR}/velocity.cpp"
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/votelogger.cpp"
|
"${CMAKE_CURRENT_LIST_DIR}/votelogger.cpp"
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/MiscTemporary.cpp")
|
"${CMAKE_CURRENT_LIST_DIR}/MiscTemporary.cpp"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/Options.cpp")
|
||||||
|
|
||||||
add_subdirectory(core)
|
add_subdirectory(core)
|
||||||
add_subdirectory(classinfo)
|
add_subdirectory(classinfo)
|
||||||
|
8
src/Options.cpp
Normal file
8
src/Options.cpp
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/*
|
||||||
|
Created by Jenny White on 29.04.18.
|
||||||
|
Copyright (c) 2018 nullworks. All rights reserved.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "Options.hpp"
|
||||||
|
#include "core/cvwrapper.hpp"
|
||||||
|
|
@ -49,7 +49,9 @@ DEFINE_HOOKED_METHOD(SDL_GL_SwapWindow, void, SDL_Window *window)
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
PROF_SECTION(SWAPWINDOW_tf2);
|
PROF_SECTION(SWAPWINDOW_tf2);
|
||||||
//SDL_GL_MakeCurrent(window, tf2_sdl);
|
#if EXTERNAL_DRAWING
|
||||||
|
SDL_GL_MakeCurrent(window, tf2_sdl);
|
||||||
|
#endif
|
||||||
original::SDL_GL_SwapWindow(window);
|
original::SDL_GL_SwapWindow(window);
|
||||||
// glXMakeContextCurrent(wminfo.info.x11.display,
|
// glXMakeContextCurrent(wminfo.info.x11.display,
|
||||||
// wminfo.info.x11.window,
|
// wminfo.info.x11.window,
|
||||||
|
@ -77,8 +77,8 @@ void initialize()
|
|||||||
logging::Info("Xoverlay initialized");
|
logging::Info("Xoverlay initialized");
|
||||||
}
|
}
|
||||||
xoverlay_show();
|
xoverlay_show();
|
||||||
|
context = SDL_GL_CreateContext(sdl_hooks::window);
|
||||||
#else
|
#else
|
||||||
//context = SDL_GL_CreateContext(sdl_hooks::window);
|
|
||||||
glClearColor(1.0, 0.0, 0.0, 0.5);
|
glClearColor(1.0, 0.0, 0.0, 0.5);
|
||||||
glewExperimental = GL_TRUE;
|
glewExperimental = GL_TRUE;
|
||||||
glewInit();
|
glewInit();
|
||||||
@ -159,10 +159,9 @@ void draw_begin()
|
|||||||
PROF_SECTION(DRAWEX_draw_begin);
|
PROF_SECTION(DRAWEX_draw_begin);
|
||||||
#if EXTERNAL_DRAWING
|
#if EXTERNAL_DRAWING
|
||||||
xoverlay_draw_begin();
|
xoverlay_draw_begin();
|
||||||
#else
|
|
||||||
{
|
{
|
||||||
PROF_SECTION(draw_begin__SDL_GL_MakeCurrent);
|
PROF_SECTION(draw_begin__SDL_GL_MakeCurrent);
|
||||||
//SDL_GL_MakeCurrent(sdl_hooks::window, context);
|
// SDL_GL_MakeCurrent(sdl_hooks::window, context);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@ -179,12 +178,12 @@ void draw_end()
|
|||||||
PROF_SECTION(draw_end__glez_end);
|
PROF_SECTION(draw_end__glez_end);
|
||||||
glez_end();
|
glez_end();
|
||||||
}
|
}
|
||||||
{
|
|
||||||
PROF_SECTION(draw_end__SDL_GL_MakeCurrent);
|
|
||||||
//SDL_GL_MakeCurrent(sdl_hooks::window, nullptr);
|
|
||||||
}
|
|
||||||
#if EXTERNAL_DRAWING
|
#if EXTERNAL_DRAWING
|
||||||
xoverlay_draw_end();
|
xoverlay_draw_end();
|
||||||
|
{
|
||||||
|
PROF_SECTION(draw_end__SDL_GL_MakeCurrent);
|
||||||
|
SDL_GL_MakeCurrent(sdl_hooks::window, nullptr);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user