designer1337 / csgo-cheat-base

simple csgo internal base.
MIT License
245 stars 48 forks source link

chams #116

Open Memz4u opened 3 years ago

Memz4u commented 3 years ago

can someone help me?

SoLIDHAX404 commented 3 years ago

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 commented 3 years ago

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

Memz4u commented 3 years ago

thanks