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 *