Results 1 to 9 of 9
  1. #1
    Boomdocks's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    JAJAJ
    Posts
    195
    Reputation
    15
    Thanks
    35
    My Mood
    Aggressive

    Wink Moving C.A player's aiming position

    Hey, am testing some Sh out today..
    --
    Mpgh is only place i could find some help from my friends that i dont know/\
    --
    any ways.. i want to move the combat arms cross hair to a pos (x,y)
    --
    i have tried some few things but fail.. kinda hard kore.. but fair..
    --
    so can u help meh out..
    Ty
    Last edited by Boomdocks; 06-03-2011 at 10:34 PM.
    " The Ground Is Above, This Noobs Have Mastered Gravity " - Aeir/Boomdocks
    Started Hacking in 2009, don't be too quick to say your a pro... ok theirs many of us who retired.. call us legends, if it was not for them... most of hacks & d3d designs won't be around ok.. #RespectOldNiggas

  2. #2
    pashak's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    350
    Reputation
    29
    Thanks
    42
    o.o
    in CodeDemon's sticky there is a way to move the menu to your mouse
    just do it with the crosshair coordinates...

  3. #3
    wolffang0000's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    597
    Reputation
    1
    Thanks
    165
    My Mood
    Relaxed
    Code:
    int MoveXHair;
    
    if(GetAsyncKeyState(VK_NUMPAD1)) MoveXHair = (!MoveXHair);
    
    if( MoveXHair ) {
       POINT myCursor; 
       GetCursorPos(&myCursor); // get cursor pos
       if(GetAsyncKeyState(VK_LBUTTON)) {
          xhair.x = myCursor.x; // set x of xhair to x of mouse
          xhair.y = myCursor.y; // set y of xhair to y of mouse
       }
    }
    Last edited by wolffang0000; 06-04-2011 at 10:03 AM.

  4. #4
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    All that's required is a bit of common sense .

  5. #5
    Boomdocks's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    JAJAJ
    Posts
    195
    Reputation
    15
    Thanks
    35
    My Mood
    Aggressive
    Am sorry let me make my self clear... What i mean is like how make player's aiming position change to x,y pos
    " The Ground Is Above, This Noobs Have Mastered Gravity " - Aeir/Boomdocks
    Started Hacking in 2009, don't be too quick to say your a pro... ok theirs many of us who retired.. call us legends, if it was not for them... most of hacks & d3d designs won't be around ok.. #RespectOldNiggas

  6. #6
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    Quote Originally Posted by Boomdocks View Post
    Am sorry let me make my self clear... What i mean is like how make player's aiming position change to x,y pos
    Do you mean the camera look at position ?

  7. #7
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    He wanna make an aimbot. U need to use yaw and pitch of the player. convert the pos of ur enemys to the ya and pitch and ur done :P

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    http://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    http://www.youtube.com/watch?v=Na2kUdu4d_k

  8. #8
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    Quote Originally Posted by Ch40zz-C0d3r View Post
    He wanna make an aimbot. U need to use yaw and pitch of the player. convert the pos of ur enemys to the ya and pitch and ur done :P
    and waste all your ammunition on walls x)

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

    NOOBJr (06-04-2011),swatfx (06-04-2011)

  10. #9
    wolffang0000's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    597
    Reputation
    1
    Thanks
    165
    My Mood
    Relaxed
    Quote Originally Posted by freedompeace View Post


    and waste all your ammunition on walls x)
    IsPlayerVisible ftw


    Quote Originally Posted by Ch40zz-C0d3r View Post
    He wanna make an aimbot. U need to use yaw and pitch of the player. convert the pos of ur enemys to the ya and pitch and ur done :P
    maybe he wants to have it aim at a certain point on the map?

    but he's right, use pitch and yaw of ur player and then use variables to assign them to the desired X and Y
    Last edited by wolffang0000; 06-04-2011 at 10:10 AM.