
Originally Posted by
ᴺᴼᴼᴮ
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:
Code:
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));
}
origin = you, eorigin = enemy
[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?