Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Steam Games Hacks & Cheats › Counter-Strike 2 Hacks › Counter-Strike 2 Help › Visibility Check for Aimbot

PostVisibility Check for Aimbot

Posts 1–4 of 4 · Page 1 of 1
SM
smookynew
Visibility Check for Aimbot
sorry for English
I got an aimbot, but its aiming through walls.
When I hold the button, it locks, through the walls
In disconnected mode with the bot running normally, it does not pass through the wall.
Does anyone know how I fix it?


Code:
for each (Player player in EntiesLists->MaxPlayers)
				{
					if (player.GetPlayerIndex() == EntiesLists->pLocal.GetPlayerIndex() && EntiesLists->pLocal.IsInGame())
						continue;

					if (!player.IsAlive())
						continue;

					if (player.GetDormant())
						continue;

					if (player.getTeam() == EntiesLists->pLocal.getTeam())
						continue;
					
					if (!player.GetSpottedbyMask())
							continue;

					if (player.SetAntiSpawnProt())
						continue;
					
					Vector headPosition = player.GetBonePosition(settings->AimbotBone);

					if (headPosition.IsEmpty())
						return;

					Vector aimAngle;
					JustMath::CalcAngle(EntiesLists->pLocal.GetEyePosition(), headPosition, aimAngle);

					aimAngle.x -= AimPunch.x;
					aimAngle.y -= AimPunch.y;

					float Fov = JustMath::GetFov(EntiesLists->pLocal.GetViewAngles(), aimAngle);

					if (Fov < CustomFov) {
						AimAngle = aimAngle;
						CustomFov = Fov;
					}
				}
EntityBase.cpp
Code:

int EntityBase::getTeam()
{
	return Mem->ReadNow<int>(BaseAddres + Offset::TeamNum);
}

int EntityBase::GetPlayerIndex()
{
	return Mem->ReadNow<int>(BaseAddres + Offset::Index);
}

Vector EntityBase::GetPlayerPosition()
{
	if (CrossPosition.IsEmpty())
		CrossPosition = Mem->ReadNow<Vector>(BaseAddres + Offset::VecOrigin);
	return CrossPosition;
}

bool EntityBase::GetDormant()
{
	return Mem->ReadNow<char>(BaseAddres + Offset::Dormant)==1;
}

bool EntityBase::SetAntiSpawnProt()
{
	return Mem->ReadNow<bool>(BaseAddres + Offset::GunGameImmunity);
}

void EntityBase::SetSpotted(bool value)
{
	Mem->WriteNow<bool>(BaseAddres + Offset::bSpotted, value);
}

byte EntityBase::GetSpottedbyMask()
{
	return Mem->ReadNow<byte>(BaseAddres + Offset::SpottedByMask);
}
#1 · edited 7y ago · 7y ago
gogogokitty
gogogokitty
use some form of tracing, i see your using GetSpottedbyMask, that will work but is very very slow and has issues when the range is pretty far.
#2 · 7y ago
SM
smookynew
Quote Originally Posted by gogogokitty View Post
use some form of tracing, i see your using GetSpottedbyMask, that will work but is very very slow and has issues when the range is pretty far.

I need a source code
#3 · 7y ago
gogogokitty
gogogokitty
Quote Originally Posted by smookynew View Post
I need a source code
no you dont. it looks like you already have the function to do it the crappy but working way, this is why past projects suck and people dont learn anything
#4 · 7y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • Visibility check for aimbot (CS:GO)By eZwork in Counter-Strike 2 Help
    14Last post 9y ago
  • Visible Check for AimBotBy arooly in CrossFire Hack Coding / Programming / Source Code
    16Last post 8y ago
  • how to add visibility check for poly hackBy qwenzynnan1 in Counter-Strike 2 Coding & Resources
    1Last post 9y ago
  • ViKiNGHook: Public Edition [Silent Aimbot][Fov 120.0F][Visibility Check][ESP & Team]By viking911 in Counter-Strike 2 Hacks
    37Last post 10y ago
  • Please i'm not asking for aimbot but if you do make aimbot plz add visible only plz?By supersonic98319 in Combat Arms Hack Requests
    5Last post 14y ago

Tags for this Thread

None