Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598

    Exclamation IsPlayerNear Function

    [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

  2. The Following 2 Users Say Thank You to NOOB For This Useful Post:

    [MPGH]Flengo (03-04-2011),Nubzgetkillz (02-19-2011)

  3. #2
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Quote Originally Posted by ᴺᴼᴼᴮ View Post
    [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
    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

  4. #3
    S0aD's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    2,250
    Reputation
    5
    Thanks
    589
    What Hack Is This... ?
    Is A Teleporter...?
    ...

  5. #4
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Quote Originally Posted by Nubzgetkillz View Post
    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
    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.

  6. #5
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Quote Originally Posted by ᴺᴼᴼᴮ View Post


    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?
    Last edited by Nubzgetkillz; 02-19-2011 at 04: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

  7. #6
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    Quote Originally Posted by ᴺᴼᴼᴮ View Post


    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.
    Yeh, so If you want to add a string to say "Enemy is in Vortex".

    Just do

    Code:
    if (IsPlayerNear){
    DrawString(CenterX, CenterY, Red, "Times New Roman", "Enemy is in Vortex");
    }

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  8. #7
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    Do this for grenade = win
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

  9. #8
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Quote Originally Posted by CAFlames View Post


    Yeh, so If you want to add a string to say "Enemy is in Vortex".

    Just do

    Code:
    if (IsPlayerNear){
    DrawString(CenterX, CenterY, Red, "Times New Roman", "Enemy is in Vortex");
    }
    Function does not take 0 arguments.

    "bool IsPlayerNear( D3DXVECTOR3 Pos )"


    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

  10. #9
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    I'll put up a video using this function + telekill.

  11. #10
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Quote Originally Posted by ᴺᴼᴼᴮ View Post
    I'll put up a video using this function + telekill.
    NOOB may I have your msn?
    This time can you add me

    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

  12. #11
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    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?

  13. #12
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Quote Originally Posted by kotentopf View Post
    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
    [HIGHLIGHT=C++]IsPlayerNear(pPlayer->obj->origin)[/HIGHLIGHT]

  14. #13
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    Quote Originally Posted by ᴺᴼᴼᴮ View Post


    [HIGHLIGHT=C++]IsPlayerNear(pPlayer->obj->origin)[/HIGHLIGHT]
    i mean

    Code:
    DWORD dwClientFxEntry = (DWORD)GetModuleHandle( "Clientfx.fxd" );
        DWORD dwClass = *(DWORD*)( dwClientFxEntry + 0x66F34 );
    u can remove this for CameraPoition or
    Code:
    PlayerInfo *pMe = GetMyPlayer();
    pMe->obj->origin
    PSEUDO, not C+P READY!
    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?

  15. #14
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    [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 08:22 PM.

  16. #15
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Quote Originally Posted by ᴺᴼᴼᴮ View Post
    [YOUTUBE]Xgqt3tdm26s[/YOUTUBE]
    That looks very nice.
    How do you get your telekill to be so smooth? and Can I have de msn of yours?

    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

Page 1 of 2 12 LastLast