b1g clean screenshots
This commit is contained in:
parent
f77cad05b3
commit
bac1aa3640
@ -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;
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ public:
|
||||
CatVar* bShowAntiAim;
|
||||
CatVar* bThirdperson;
|
||||
CatVar* bNoVisuals;
|
||||
CatVar* bCleanScreenshots;
|
||||
Vector last_angles;
|
||||
bool bInvalid;
|
||||
};
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user