csgo-cheat-base icon indicating copy to clipboard operation
csgo-cheat-base copied to clipboard

chams

Open Memz4u opened this issue 3 years ago • 3 comments

can someone help me?

Memz4u avatar Nov 03 '21 17:11 Memz4u

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); }

SoLIDHAX404 avatar Nov 04 '21 16:11 SoLIDHAX404

thats the hook i think with a bit of research you can do the actual chams! Good Luck.

SoLIDHAX404 avatar Nov 04 '21 16:11 SoLIDHAX404

thanks

Memz4u avatar Nov 06 '21 02:11 Memz4u