-
Автор темы
- #1
public:
void OnCreateMove()
добавить this->FullBright();
this->knifelefthand();
misc.h
config.h
добавить
bool leftknife = false;
bool Fullbright = false;
void OnCreateMove()
добавить this->FullBright();
this->knifelefthand();
misc.h
Код:
void FullBright()
{
bool bright = (!&c_config::get().Fullbright);
if (bright > 1)
g_pCvar->FindVar("mat_fullbright")->SetValue(bright);
else
g_pCvar->FindVar("mat_fullbright")->SetValue(0);
}
Код:
void knifelefthand()
{
if (!g_pEngine->IsInGame() || !g_pEngine->IsConnected())
return;
if (!Globals::LocalPlayer->IsAlive())
return;
if (c_config::get().leftknife && Globals::LocalPlayer->IsKnife())
{
ConVar* cl_righthand = g_pCvar->FindVar("cl_righthand");
*(int*)((DWORD)& cl_righthand->fnChangeCallback + 0xC) = 0; // ew
cl_righthand->SetValue(0);
}
else {
ConVar* cl_righthand = g_pCvar->FindVar("cl_righthand");
*(int*)((DWORD)& cl_righthand->fnChangeCallback + 0xC) = 0; // ew
cl_righthand->SetValue(1);
}
}
добавить
bool leftknife = false;
bool Fullbright = false;