Тьомчик
-
Автор темы
- #1
code:
if (entity == g::local){
bool applied_local = false;
if (c::chams::local::enable) {
if (applied_local || !c::chams::local::hide_original_model) {
sdk::hooks::draw_model_execute::draw_model_execute_original(interfaces::model_render, 0, ctx, state, info, matrix);
}
override_material(false, c::chams::local::type, color_t(c::chams::local::color[0], c::chams::local::color[1], c::chams::local::color[2], c::chams::local::color[3]));
if (!c::chams::local::overlay.empty()) {
for (size_t i = 0; i < c::chams::local::overlay.size(); ++i) {
override_material(false, c::chams::local::overlay[i].material, color_t(c::chams::local::overlay[i].color[0], c::chams::local::overlay[i].color[1], c::chams::local::overlay[i].color[2], c::chams::local::overlay[i].color[3]));
applied_local = true;
}
}
}
}