b1g clean screenshots

This commit is contained in:
nullifiedcat 2017-01-21 21:10:42 +03:00
parent f77cad05b3
commit bac1aa3640
3 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,7 @@ void GlobalSettings::Init() {
this->bShowAntiAim = CREATE_CV(CV_SWITCH, "thirdperson_angles", "1", "Real angles in thirdperson");
this->bThirdperson = CREATE_CV(CV_SWITCH, "thirdperson", "0", "Thirdperson");
this->bNoVisuals = CREATE_CV(CV_SWITCH, "novisuals", "0", "Disable visuals");
this->bCleanScreenshots = CREATE_CV(CV_SWITCH, "clean_screenshot", "1", "Clean screenshots");
this->bThirdperson->m_pConVar->InstallChangeCallback(ThirdpersonCallback);
bInvalid = true;
}

View File

@ -32,6 +32,7 @@ public:
CatVar* bShowAntiAim;
CatVar* bThirdperson;
CatVar* bNoVisuals;
CatVar* bCleanScreenshots;
Vector last_angles;
bool bInvalid;
};

View File

@ -62,6 +62,7 @@ void PaintTraverse_hook(void* p, unsigned int vp, bool fr, bool ar) {
if (g_Settings.bNoVisuals->GetBool()) {
return;
}
if (g_Settings.bCleanScreenshots->GetBool() && interfaces::engineClient->IsTakingScreenshot()) return;
if (!draw::width || !draw::height) {
interfaces::engineClient->GetScreenSize(draw::width, draw::height);