[Question]Counter-Strike

04/20/2009 12:41 kalhacker9000#1
hey guys,
i'm from the kal-online section. but a friend ask me to code a cs 1.6 esp hack.
okay i know what esp is. but i don't know how to program it.
i know, too , that a esp programm is based on the sounds which other players make. so the server send a packet (or something other) to the cs client and the client play a sound. now it's my part:
i have to make a program which set a marker to the place where the player makes a sound...
but how to do it?
04/21/2009 16:29 BONU$PUNKT#2
This is ESP[mean the life and others from other player like: Ammo,Armor,Life,Money and others.]:
[IMG]http://www.*****************/img/wallhackmodels.jpg[/IMG]
With ESP you can make wallhacks and others.I use this hacks: [Only registered and activated users can see links. Click Here To Register...]
04/21/2009 16:38 Adroxxx#3
Yep. ESP (extrasensory perception), means that you can see various things. Like Nick ESP = you see the nicknames of the other players trough walls etc. Or other esp hacks are that you see the life, which weapon the enemy has equipted and so on.
04/21/2009 17:29 __wadim#4
you need the player position and have to find out where the models on your screen. now you can draw the informations eg. draw(health, headx, heady) :P

Code:
void Esp::DrawEsp( void )
{
	if ( !HalFLife2.m_pMyPlayer->BaseEnt() )
		return;

	player_info_t pInfo;	//Get Shit info About players
	Vector vScreen;			//see my name
	Vector vWorldPosition;	//see my name
	Vector vPlayerHead;		//see my name

	for ( int index = 0; index < HalFLife2.m_pEntList->GetHighestEntityIndex(); index++  )
	{
		if ( index == HalFLife2.m_pEngine->GetLocalPlayer() )
			continue;

		IClientEntity* ClientEntity = HalFLife2.m_pEntList->GetClientEntity( index );

		if (	ClientEntity == NULL
			||	ClientEntity->IsDormant() )
			continue;

		CBaseEntity* pBaseEntity = ClientEntity->GetBaseEntity();

		if (	pBaseEntity == NULL 
			||	pBaseEntity->IsDormant() )
			continue;

		int *iTeamIndex = (int*) ((DWORD)pBaseEntity +(DWORD)0x90 );

		DWORD dwGetTeamColor = CHEAT_WHITE;

		if ( HalFLife2.m_pAimbot->GetVisible( HalFLife2.m_pMyPlayer->BaseEnt()->EyePosition(), pBaseEntity->EyePosition(), pBaseEntity ) )//visible
		{
			if( *iTeamIndex == 2 ) //Terrorist
				dwGetTeamColor = CHEAT_RED;

			if( *iTeamIndex == 3 )// Counter-Terrorist
				dwGetTeamColor = CHEAT_BLUE;

			if ( HalFLife2.m_pAimbot->iGetTarget() == index )//Aimed Guy
				dwGetTeamColor = CHEAT_PURPLE;
		}
		else//invisible (hidden guy)
		{
			if( *iTeamIndex == 2 ) //Terrorist
				dwGetTeamColor = CHEAT_ORANGE;

			if( *iTeamIndex == 3 )// Counter-Terrorist
				dwGetTeamColor = CHEAT_GREEN;

			if ( HalFLife2.m_pAimbot->iGetTarget() == index )//Aimed Guy
				dwGetTeamColor = CHEAT_BLACK;
		}


		//get position
		HalFLife2.m_pNeeded->GetWorldSpaceCenter( pBaseEntity , vWorldPosition );
		
		//set position of player on screen
		if ( HalFLife2.m_pNeeded->WorldToScreen( vWorldPosition, vScreen ) )
		{
			//get player info
			if ( HalFLife2.m_pEngine->GetPlayerInfo( index, &pInfo ) )
			{
				//Get Life State
				int *lifestate = (int*) ( ( DWORD )pBaseEntity + ( DWORD )0x87 );
				
				//Get Health
				int *pdwHealth = (int*) ( (DWORD)pBaseEntity + (DWORD)0xDA4 );
				
				//Draw if Alive
				if( *lifestate  == LIFE_ALIVE )
				{
					if ( HalFLife2.m_pNeeded->WorldToScreen( pBaseEntity->EyePosition(), vPlayerHead ) )
					{
						//Set Bounding Box color
						HalFLife2.m_pMatSurface->DrawSetColor( RGBA(dwGetTeamColor) );

						//Draw Bounding Box
						HalFLife2.m_pMatSurface->DrawOutlinedRect( vPlayerHead.x - 20, vPlayerHead.y - 20, vPlayerHead.x + 20, vPlayerHead.y + 60 );
					}
					//Draw ESP Name
					HalFLife2.m_pNeeded->DrawString( vScreen.x, vScreen.y, dwGetTeamColor, "%s", pInfo.name );
					
					//Draw ESP Health
					HalFLife2.m_pNeeded->DrawString( vScreen.x, vScreen.y + 16 , dwGetTeamColor, "%i", *pdwHealth );
				}
			}
		}
	}
}
gamedeception.net
04/21/2009 18:22 kalhacker9000#5
okay i know what esp means....you don't have to explain it to me :D but thx :P
thx wadim....i look later on it...but thank you very much