Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visible check #103

Open
PhillipDaPaster opened this issue Oct 19, 2023 · 1 comment
Open

Visible check #103

PhillipDaPaster opened this issue Oct 19, 2023 · 1 comment

Comments

@PhillipDaPaster
Copy link

PhillipDaPaster commented Oct 19, 2023

https://github.com/TKazer/CS2_External/blob/6916384d62f2a3711e7d6ed57afd3b499f175577/CS2_External/Cheats.cpp#L339C1-L341C1
i was helping the dev of Aeonix with vis check and thought i should release

Video
https://streamable.com/o7glgt

Here the usage

Important

MenuConfig.hpp

inline bool EspVisCheck = true; 
inline ImColor VisibleColor = ImColor(255, 255, 0, 255);

Important

Cheats.cpp

Gui.MyCheckBox("VisibleCheck", &MenuConfig::EspVisCheck);
Gui.MyCheckBox("BoxESP", &MenuConfig::ShowBoxESP);
ImGui::SameLine();
ImGui::ColorEdit4("##VisColor", reinterpret_cast<float*>(&MenuConfig::VisibleColor), ImGuiColorEditFlags_NoInputs);
ImGui::SameLine();
ImGui::ColorEdit4("##BoxColor", reinterpret_cast<float*>(&MenuConfig::BoxColor), ImGuiColorEditFlags_NoInputs);
if (MenuConfig::ShowBoxESP) {
	Gui.Rectangle({ Rect.x, Rect.y }, { Rect.z, Rect.w }, { 0, 0, 0, 255 }, 3);
	if (MenuConfig::EspVisCheck) {
		if (Entity.Pawn.bSpottedByMask > 0) {
			Gui.Rectangle({ Rect.x, Rect.y }, { Rect.z, Rect.w }, MenuConfig::VisibleColor, 1.3);
		}
		else {
			Gui.Rectangle({ Rect.x, Rect.y }, { Rect.z, Rect.w }, MenuConfig::BoxColor, 1.3);
		}
	}
	else {
		Gui.Rectangle({ Rect.x, Rect.y }, { Rect.z, Rect.w }, MenuConfig::BoxColor, 1.3);
	}
}
@PhillipDaPaster
Copy link
Author

im stupid i didnt add checking if teamates spotted them

  • im stealing the one out of the changelogs cause im to lazy to convert my method
if (MenuConfig::ShowBoxESP) {
	Gui.Rectangle({ Rect.x, Rect.y }, { Rect.z, Rect.w }, { 0, 0, 0, 255 }, 3);
	if (MenuConfig::EspVisCheck) {
		if ((Entity.Pawn.bSpottedByMask & (DWORD64(1) << LocalPlayerControllerIndex)) ||
			(LocalEntity.Pawn.bSpottedByMask & (DWORD64(1) << i))) {
			Gui.Rectangle({ Rect.x, Rect.y }, { Rect.z, Rect.w }, MenuConfig::VisibleColor, 1.3);
		}
		else {
			Gui.Rectangle({ Rect.x, Rect.y }, { Rect.z, Rect.w }, MenuConfig::BoxColor, 1.3);
		}
	}
	else {
		Gui.Rectangle({ Rect.x, Rect.y }, { Rect.z, Rect.w }, MenuConfig::BoxColor, 1.3);
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant