[MPGH]Flengo (03-04-2011),Nubzgetkillz (02-19-2011)
[HIGHLIGHT=C++]bool IsPlayerNear( D3DXVECTOR3 Pos )
{
float distance = 300.0f;
DWORD dwClientFxEntry = (DWORD)GetModuleHandle( "Clientfx.fxd" );
DWORD dwClass = *(DWORD*)( dwClientFxEntry + 0x66F34 );
if( abs(Pos.x - *(float*)( dwClass + 0xC8 )) < distance
&& abs(Pos.y - *(float*)( dwClass + 0xCC ) < distance )
&& abs(Pos.z - *(float*)( dwClass + 0xD0 ) < distance ) )
return true;
else
return false;
}[/HIGHLIGHT]
Code:ᴺᴼᴼᴮ Gellin
[MPGH]Flengo (03-04-2011),Nubzgetkillz (02-19-2011)
what does this do?
float distance = 300.0f; so distance is 300 pixels
if( abs(Pos.x - *(float*)( dwClass + 0xC8 )) < distance
&& abs(Pos.y - *(float*)( dwClass + 0xCC ) < distance )
&& abs(Pos.z - *(float*)( dwClass + 0xD0 ) < distance ) )
so all that shit is less than( < ) distance!
I get it nao
Member since September 25, 2010
Current Objectives:
- Graduate college with a degree in Computer Science
- Find a decent job in the Computer Science Field
- Learn more programming languages
Looking for Elo Boosting Job - League of Legends
Looking for Bronze -> Gold Jobs
Skype: whatthedream
What Hack Is This... ?
Is A Teleporter...?
...
It makes an invisible force field vortex (covering a volume of 113,097,336 units if distance = 300) around your character. If the object you put into the function enters within your magical votex, then it will return true. Could be used to alert the hack user if an enemy is close to them or if a grenade is close to them.
That vortex can be used to create very obscure and spectacular hacks for use in Combat Arms. This Function is a similar to what I have done in this picture here:
Mine I created an invisible sphere with 10 M( My language)
If someone of the opposite team were to step into your bubble you would be prompted to attack.
Example with different method:
origin = you, eorigin = enemyCode:float FindDistance(D3DXVECTOR3 my,D3DXVECTOR3 other) { return sqrt(origin.x-eorigin.x)*(origin.x-eorigin.x) + (origin.y-eorigin.y)*origin.y-eorigin.y) + (origin.z-eorigin.z)*(origin.z-eorigin.z)); }
[highlight=c++]
if(FindDistance(origin,eorigin) < 300){
SendTextWarning("GO ATTACK THEY HAVE INFILTRATED ARE TERRITORY!");
}
[/highlight]
Would you like to give an example on how to use your IsPlayerNear function?
Last edited by Nubzgetkillz; 02-19-2011 at 03:13 PM.
Member since September 25, 2010
Current Objectives:
- Graduate college with a degree in Computer Science
- Find a decent job in the Computer Science Field
- Learn more programming languages
Looking for Elo Boosting Job - League of Legends
Looking for Bronze -> Gold Jobs
Skype: whatthedream
Do this for grenade = win
No I do not make game hacks anymore, please stop asking.
Member since September 25, 2010
Current Objectives:
- Graduate college with a degree in Computer Science
- Find a decent job in the Computer Science Field
- Learn more programming languages
Looking for Elo Boosting Job - League of Legends
Looking for Bronze -> Gold Jobs
Skype: whatthedream
I'll put up a video using this function + telekill.
Member since September 25, 2010
Current Objectives:
- Graduate college with a degree in Computer Science
- Find a decent job in the Computer Science Field
- Learn more programming languages
Looking for Elo Boosting Job - League of Legends
Looking for Bronze -> Gold Jobs
Skype: whatthedream
u must not use the position pointer
u can also use the Camera pointer or the position info pointer in the playerinfo class or in the FXClass
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
i mean
u can remove this for CameraPoition orCode:DWORD dwClientFxEntry = (DWORD)GetModuleHandle( "Clientfx.fxd" ); DWORD dwClass = *(DWORD*)( dwClientFxEntry + 0x66F34 );
PSEUDO, not C+P READY!Code:PlayerInfo *pMe = GetMyPlayer(); pMe->obj->origin
Learn C++ if u want to use it
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
[YOUTUBE]Xgqt3tdm26s[/YOUTUBE]
You can see that I only teleport to enemies who come close to me.
Last edited by NOOB; 02-19-2011 at 07:22 PM.
Member since September 25, 2010
Current Objectives:
- Graduate college with a degree in Computer Science
- Find a decent job in the Computer Science Field
- Learn more programming languages
Looking for Elo Boosting Job - League of Legends
Looking for Bronze -> Gold Jobs
Skype: whatthedream