csgo-cheat-base
csgo-cheat-base copied to clipboard
chams
can someone help me?
hooks.cpp:
hooks::drawmodel_execute::fn draw_model_execute_original = nullptr;
const auto drawmodelexecute_target = reinterpret_cast<void*>(get_virtual(interfaces::model_render, 21));
if(MH_CreateHook(drawmodelexecute_target, &drawmodel_execute::hook, reinterpret_cast<void**>(&draw_model_execute_original)) != MH_OK) throw std::runtime_error("failed to initialize drawmodel_execute. (outdated index?)");
void __fastcall hooks::drawmodel_execute::hook(void* ecx, void* edx, i_mat_render_ctx* context, const draw_model_state_t& state, const model_render_info_t& render_info, matrix3x4_t* matrix) { interfaces::model_render->override_material(nullptr); draw_model_execute_original(ecx, context, state, render_info, matrix); }
hooks.hpp:
namespace drawmodel_execute { using fn = void(__thiscall*)(void*, i_mat_render_ctx*, const draw_model_state_t&, const model_render_info_t&, matrix3x4_t*); void __fastcall hook(void* ecx, void* edx, i_mat_render_ctx* context, const draw_model_state_t& state, const model_render_info_t& render_info, matrix3x4_t* matrix); }
thats the hook i think with a bit of research you can do the actual chams! Good Luck.
thanks