Official site anti-cheat Ultra Core Protector

Home Download F.A.Q. Addons Monitor Forum Support Advertise English version site UCP Anti-Cheat  Russian version site UCP Anti-Cheat
Ultra Core Protector - is the client-server anti-cheat freeware, for server protection from unscrupulous players.

Abilities Supported games  
Half-Life
Condition Zero
Counter-Strike 1.6
Day of Defeat
Adrenaline Gamer
Team Fortress Classic
Counter-Strike Source
MU Online
Ragnarok Online
Half-Life 2 Deathmatch
Adrenaline Gamer 2
Team Fortress 2
CSGO: glow without glowobjectmanager

abandoned it since i cant change the thickness of it, enjoy.
if you use it, atleast give credits thanks
also its prob the ugliest code ever idk

anyway, heres the code
struct stencil_state_s {
bool enable;
stencil_operation_t fail;
stencil_operation_t zfail;
stencil_operation_t pass;
stencil_cmp_funct_t compare;
int ref;
int mask1;
int mask2;
};

class glow {
private:
stencil_state_s stencil_state;
void* context; //set this in your dme hook
void set_stencil_state(stencil_state_s& s) {
typedef void(__thiscall* dfn)(void*, stencil_state_s&);
if (context)
getvfunc(context, 127)(context, s);
}
void set_color(float r, float g, float b) {
float color[3] = { r, g, b };
render_view->set_color_modulation(color);
}
public:
bool toggle = false;
void run() {
static std::unique_ptr r_drawothermodels = std::make_unique("r_drawothermodels");
if (GetAsyncKeyState('V') & 1)
toggle = !toggle; //todo: make proper toggle
const int alpha = 1;
if (toggle) {
if (!context)
return;
if (!g_local)
return;
entity_t* entity;
stencil_state.enable = true;
stencil_state.ref = 1;
stencil_state.pass = operation_replace;
stencil_state.fail = operation_keep;
stencil_state.zfail = operation_replace;
stencil_state.compare = cmp_always;
stencil_state.mask1 = 4294967295;
stencil_state.mask2 = 4294967295;
set_stencil_state(stencil_state);
render_view->set_blend(0);
for (int i = 0; i <= globals->max_clients; ++i) {
entity = entlist->get_entity(i);
if (!entity)
continue;
if (!entity->valid_player())
continue;
entity->draw_model(1, alpha);
}
render_view->set_blend(1.f);
stencil_state.compare = cmp_notequal;
set_stencil_state(stencil_state);
r_drawothermodels->set_int(2);
for (int i = 0; i <= globals->max_clients; ++i) {
entity = entlist->get_entity(i);
if (!entity)
continue;
if (!entity->valid_player())
continue;
set_color(1.f, 0.f, 0.f);
entity->draw_model(1, alpha);
}
r_drawothermodels->set_int(1);
stencil_state.enable = false;
set_stencil_state(stencil_state);
}
}
};