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 › Other Semi-Popular First Person Shooter Hacks › Crysis 2 Hacks / Cheats › ESP hitbox source code

ESP hitbox source code

Posts 1–4 of 4 · Page 1 of 1
Maui_Hawaii_USA
Maui_Hawaii_USA
ESP hitbox source code
Here you go guys ESP hitbox source code if you've seen hacking videos you'll boxes around the players. I don't know how to compile it says "Build failed" so here you go post on here when you compiled it and don't ask where i got it.

001  
002
003 #include "esp.h"
004
005 cEsp gEsp;
006
007 DWORD cEsp::GetTeamColor(CBaseEntity* pBaseEnt)
008 {
009 int iTeam = gEnt.m_iTeamNum(pBaseEnt);
010 if ( gHelp.Visible(gEnt.EyePosition(pBaseEnt), pBaseEnt ) )
011 {
012 if( iTeam == 2 ) return CHEAT_ONE;
013 else if( iTeam == 3 ) return CHEAT_ONE;
014 else return CHEAT_WHITE;
015 }
016 else
017 {
018 if( iTeam == 2 ) return CHEAT_TWO;
019 else if( iTeam == 3 ) return CHEAT_ONE2;
020 else return CHEAT_WHITE;
021 }
022 }
023
024 DWORD cEsp::GetTeamColorInVis(int iTeam)
025 {
026 if( iTeam == 2 ) return CHEAT_RED;
027 else if( iTeam == 3 ) return CHEAT_BLUE;
028 else return CHEAT_WHITE;
029 }
030
031 void cEsp::CalcEsp(Vector vPlayerHead, Vector vPlayerOrigin)
032 {
033 xOffset = (vPlayerOrigin.y - vPlayerHead.y) / 4;
034 leftX = vPlayerHead.x - xOffset;
035 rightX = vPlayerHead.x + xOffset;
036 HalfUpDown = (vPlayerOrigin.y-vPlayerHead.y)/2;
037 HalfRightLeft = (rightX-leftX)/2;
038 height = vPlayerOrigin.y - vPlayerHead.y;
039 width = rightX - leftX;
040 }
041
042 void cEsp::SpotEsp()
043 {
044 if(gVars.Esp_Box)
045 gHelp.DrawBox(leftX, vPlayerHead.y, width, height, Color);
046 }
047
048 void cEsp::NameEsp(char* pcName)
049 {
050 if(gVars.Esp_Name)
051 gHelp.DrawString(gHelp.font_ESP,rightX+3,vPlayerHe ad.y+HalfUpDown-22,Color,pcName);
052 }
053
054 void cEsp::HlthEsp(int iHealth, int iArmor)
055 {
056 if(gVars.Esp_Health == 1)
057 gHelp.DrawString(gHelp.font_ESP,rightX+3,vPlayerHe ad.y+HalfUpDown-12,Color,"HP:%i",iHealth);
058 }
059
060 void cEsp::WeapEsp(char* pcWeapon)
061 {
062 if(gVars.Esp_Weapon)
063 gHelp.DrawString(gHelp.font_ESP,rightX+3,vPlayerHe ad.y+HalfUpDown-2,Color,pcWeapon);
064 }
065
066 void cEsp::BoneEsp(int iIndex)
067 {
068
069 }
070
071 void cEsp::BombEsp()
072 {
073
074 }
075
076 void cEsp::BombEsp(CBaseEntity* pBaseEnt)
077 {
078
079 }
080
081 void cEsp::BombEsp(int iIndex)
082 {
083
084 }
085
086 bool cEsp::CloseEsp(int index)
087 {
088 if(index == gEngine->GetLocalPlayer())
089 return false;
090 IClientEntity* ClientEntity = gEntList->GetClientEntity( index );
091 if(ClientEntity == NULL || ClientEntity->IsDormant())
092 return false;
093 CBaseEntity* pBaseEnt = ClientEntity->GetBaseEntity();
094 if(pBaseEnt == NULL || pBaseEnt->IsDormant())
095 return false;
096 if(gEnt.m_iTeamNum(pBaseEnt) != 2 && gEnt.m_iTeamNum(pBaseEnt) != 3)
097 return false;
098 if(gEnt.m_lifeState(pBaseEnt) != LIFE_ALIVE)
099 return false;
100 int iHealth = gEnt.m_iHealth(pBaseEnt);
101 if(iHealth < 1 || iHealth > 1000)
102 return false;
103 if(!gEngine->GetPlayerInfo(index,&pInfo) || !pInfo.name[0])
104 return false;
105 if(gVars.Esp_EnemyOnly && gEnt.m_iTeamNum(pBaseEnt) == gEnt.m_iTeamNum(gMe.BaseEnt()))
106 return false;
107 if(!gHelp.WorldToScreen( gEnt.EyePosition(pBaseEnt), vPlayerHead )
108 || !gHelp.WorldToScreen( pBaseEnt->GetAbsOrigin(), vPlayerOrigin))
109 return false;
110
111 Color = GetTeamColor(pBaseEnt);
112 CalcEsp(vPlayerHead,vPlayerOrigin);
113 SpotEsp();
114 NameEsp(pInfo.name);
115 HlthEsp(iHealth,gEnt.m_ArmorValue(pBaseEnt));
116 WeapEsp(gHelp.GetWeaponChar(pBaseEnt));
117 return true;
118 }
119
120 void cEsp::FarEsp(int index)
121 {
122 /*if(!gRadar[index].iIndex)
123 return;
124 if(gRadar[index].iHealth <= 0 || gRadar[index].iHealth > 1000)
125 return;
126 if(gRadar[index].vOrigin == Vector(0,0,0))
127 return;
128 if(gVars.Esp_EnemyOnly && gRadar[index].iTeam == gEnt.m_iTeamNum(gMe.BaseEnt()))
129 return;
130 if(!gHelp.WorldToScreen( Vector(gRadar[index].vOrigin.x,gRadar[index].vOrigin.y,gRadar[index].vOrigin.z+64), vPlayerHead )
131 || !gHelp.WorldToScreen( gRadar[index].vOrigin, vPlayerOrigin))
132 return;*/
133
134 Color = GetTeamColorInVis(gRadar[index].iTeam);
135 CalcEsp(vPlayerHead,vPlayerOrigin);
136 SpotEsp();
137 NameEsp(gRadar[index].sName);
138 HlthEsp(gRadar[index].iHealth,0);
139 }
140
141 void cEsp:raw()
142 {
143 if(gEngine->IsInGame() && gMe.BaseEnt())
144 {
145 //BombEsp();
146 for( int index = 1; index <= 64; ++index )
147 {
148 if(!CloseEsp(index) && gVars.Esp_Far)
149 FarEsp(index-1);
150 }
151 }
152 }
153
154 &nbsp;
#1 · 14y ago
Insane
Insane
This is a source code, for all noobs out there, don't ask how to use it!
#2 · 14y ago
(((R6)))
(((R6)))
Quote Originally Posted by Maui_Hawaii_USA View Post
Here you go guys ESP hitbox source code if you've seen hacking videos you'll boxes around the players. I don't know how to compile it says "Build failed" so here you go post on here when you compiled it and don't ask where i got it.

001 *
002
003 #include "esp.h"
004
005 cEsp gEsp;
006
007 DWORD cEsp::GetTeamColor(CBaseEntity* pBaseEnt)
008 {
009 int iTeam = gEnt.m_iTeamNum(pBaseEnt);
010 if ( gHelp.Visible(gEnt.EyePosition(pBaseEnt), pBaseEnt ) )
011 {
012 if( iTeam == 2 ) return CHEAT_ONE;
013 else if( iTeam == 3 ) return CHEAT_ONE;
014 else return CHEAT_WHITE;
015 }
016 else
017 {
018 if( iTeam == 2 ) return CHEAT_TWO;
019 else if( iTeam == 3 ) return CHEAT_ONE2;
020 else return CHEAT_WHITE;
021 }
022 }
023
024 DWORD cEsp::GetTeamColorInVis(int iTeam)
025 {
026 if( iTeam == 2 ) return CHEAT_RED;
027 else if( iTeam == 3 ) return CHEAT_BLUE;
028 else return CHEAT_WHITE;
029 }
030
031 void cEsp::CalcEsp(Vector vPlayerHead, Vector vPlayerOrigin)
032 {
033 xOffset = (vPlayerOrigin.y - vPlayerHead.y) / 4;
034 leftX = vPlayerHead.x - xOffset;
035 rightX = vPlayerHead.x + xOffset;
036 HalfUpDown = (vPlayerOrigin.y-vPlayerHead.y)/2;
037 HalfRightLeft = (rightX-leftX)/2;
038 height = vPlayerOrigin.y - vPlayerHead.y;
039 width = rightX - leftX;
040 }
041
042 void cEsp::SpotEsp()
043 {
044 if(gVars.Esp_Box)
045 gHelp.DrawBox(leftX, vPlayerHead.y, width, height, Color);
046 }
047
048 void cEsp::NameEsp(char* pcName)
049 {
050 if(gVars.Esp_Name)
051 gHelp.DrawString(gHelp.font_ESP,rightX+3,vPlayerHe ad.y+HalfUpDown-22,Color,pcName);
052 }
053
054 void cEsp::HlthEsp(int iHealth, int iArmor)
055 {
056 if(gVars.Esp_Health == 1)
057 gHelp.DrawString(gHelp.font_ESP,rightX+3,vPlayerHe ad.y+HalfUpDown-12,Color,"HP:%i",iHealth);
058 }
059
060 void cEsp::WeapEsp(char* pcWeapon)
061 {
062 if(gVars.Esp_Weapon)
063 gHelp.DrawString(gHelp.font_ESP,rightX+3,vPlayerHe ad.y+HalfUpDown-2,Color,pcWeapon);
064 }
065
066 void cEsp::BoneEsp(int iIndex)
067 {
068
069 }
070
071 void cEsp::BombEsp()
072 {
073
074 }
075
076 void cEsp::BombEsp(CBaseEntity* pBaseEnt)
077 {
078
079 }
080
081 void cEsp::BombEsp(int iIndex)
082 {
083
084 }
085
086 bool cEsp::CloseEsp(int index)
087 {
088 if(index == gEngine->GetLocalPlayer())
089 return false;
090 IClientEntity* ClientEntity = gEntList->GetClientEntity( index );
091 if(ClientEntity == NULL || ClientEntity->IsDormant())
092 return false;
093 CBaseEntity* pBaseEnt = ClientEntity->GetBaseEntity();
094 if(pBaseEnt == NULL || pBaseEnt->IsDormant())
095 return false;
096 if(gEnt.m_iTeamNum(pBaseEnt) != 2 && gEnt.m_iTeamNum(pBaseEnt) != 3)
097 return false;
098 if(gEnt.m_lifeState(pBaseEnt) != LIFE_ALIVE)
099 return false;
100 int iHealth = gEnt.m_iHealth(pBaseEnt);
101 if(iHealth < 1 || iHealth > 1000)
102 return false;
103 if(!gEngine->GetPlayerInfo(index,&pInfo) || !pInfo.name[0])
104 return false;
105 if(gVars.Esp_EnemyOnly && gEnt.m_iTeamNum(pBaseEnt) == gEnt.m_iTeamNum(gMe.BaseEnt()))
106 return false;
107 if(!gHelp.WorldToScreen( gEnt.EyePosition(pBaseEnt), vPlayerHead )
108 || !gHelp.WorldToScreen( pBaseEnt->GetAbsOrigin(), vPlayerOrigin))
109 return false;
110
111 Color = GetTeamColor(pBaseEnt);
112 CalcEsp(vPlayerHead,vPlayerOrigin);
113 SpotEsp();
114 NameEsp(pInfo.name);
115 HlthEsp(iHealth,gEnt.m_ArmorValue(pBaseEnt));
116 WeapEsp(gHelp.GetWeaponChar(pBaseEnt));
117 return true;
118 }
119
120 void cEsp::FarEsp(int index)
121 {
122 /*if(!gRadar[index].iIndex)
123 return;
124 if(gRadar[index].iHealth <= 0 || gRadar[index].iHealth > 1000)
125 return;
126 if(gRadar[index].vOrigin == Vector(0,0,0))
127 return;
128 if(gVars.Esp_EnemyOnly && gRadar[index].iTeam == gEnt.m_iTeamNum(gMe.BaseEnt()))
129 return;
130 if(!gHelp.WorldToScreen( Vector(gRadar[index].vOrigin.x,gRadar[index].vOrigin.y,gRadar[index].vOrigin.z+64), vPlayerHead )
131 || !gHelp.WorldToScreen( gRadar[index].vOrigin, vPlayerOrigin))
132 return;*/
133
134 Color = GetTeamColorInVis(gRadar[index].iTeam);
135 CalcEsp(vPlayerHead,vPlayerOrigin);
136 SpotEsp();
137 NameEsp(gRadar[index].sName);
138 HlthEsp(gRadar[index].iHealth,0);
139 }
140
141 void cEsp:raw()
142 {
143 if(gEngine->IsInGame() && gMe.BaseEnt())
144 {
145 //BombEsp();
146 for( int index = 1; index <= 64; ++index )
147 {
148 if(!CloseEsp(index) && gVars.Esp_Far)
149 FarEsp(index-1);
150 }
151 }
152 }
153
154 *
ha, wow einstein einstein you.
BY THE WAY THAT YOU UNDERSTAND YOUR ONLY.
NO?.
has.
#3 · 14y ago
SA
Sannes
esp.h missing
#4 · 14y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • [SOLVED] External Esp source code editing questionBy Demented420 in Call of Duty Modern Warfare 2 Help
    6Last post 16y ago
  • Everyone created their own private esp from old source code?By Birdshit in Call of Duty Modern Warfare 3 Discussions
    1Last post 14y ago
  • CF 2D Boxes ESP Source Code ;)By -iFaDy..* in CrossFire Hack Coding / Programming / Source Code
    11Last post 14y ago
  • HALO 2 (XBOX) Source CodeBy mirelesmichael in General Game Hacking
    12Last post 20y ago

Tags for this Thread

None