Results 1 to 15 of 15
  1. #1
    J's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    East Coast
    Posts
    2,164
    Reputation
    452
    Thanks
    5,900
    My Mood
    In Love

    lawl whatsup with PlayerGravity lmao

    Code:
    if (GetAsyncKeyState(VK_SPACE) < 0)
    	*(float*)0x37967700 = 750;
    else
    	*(float*)0x37967700 = -1100;
    lmao when i release space i keep flying up. df?

  2. #2
    DisOwned's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    233
    Reputation
    109
    Thanks
    685
    Code:
    if (GetAsyncKeyState(VK_SPACE) < 0)
    {
    	*(float*)0x37967700 = 800;
    }else{
    	*(float*)0x37967700 = -1000;
    }
    try that D:

  3. #3
    Fєηix's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    Brαzil
    Posts
    1,178
    Reputation
    114
    Thanks
    6,891
    My Mood
    Sleepy
    Quote Originally Posted by J View Post
    Code:
    if (GetAsyncKeyState(VK_SPACE) < 0)
    	*(float*)0x37967700 = 750;
    else
    	*(float*)0x37967700 = -1100;
    lmao when i release space i keep flying up. df?
    Code:
    on = 800
    off = -800
    Code:
    if(FlyHack){
    			if(GetAsyncKeyState(VK_SPACE)){
    				if(bFlyhack == false){
                                             *(float*)0x37967700 = 800;
    					bFlyhack = true;}
    			}else{
    				if(bFlyhack == true){
    					 *(float*)0x37967700 = -800;
    					bFlyhack = false;
    				}
    			}
             }

  4. #4
    arun823's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Los Angeles, California
    Posts
    523
    Reputation
    151
    Thanks
    1,899
    My Mood
    Amused
    Ehrmagerd, the unorganized BR code, IT BURNS.

    Log the original float value for the address and assign it to a buffer then just set the buffer value back from the modified value when you're done. Also it's not -800, that's not a static float value, it's dynamic depending on which character you have. Hence the reason why you should always assign the default value to a buffer.
    Reversing is the only way to move forward.

  5. #5
    Fєηix's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    Brαzil
    Posts
    1,178
    Reputation
    114
    Thanks
    6,891
    My Mood
    Sleepy
    Quote Originally Posted by arun823 View Post
    Ehrmagerd, the unorganized BR code, IT BURNS.

    Log the original float value for the address and assign it to a buffer then just set the buffer value back from the modified value when you're done. Also it's not -800, that's not a static float value, it's dynamic depending on which character you have. Hence the reason why you should always assign the default value to a buffer.
    "BR Code" Just because you are American you think is better than Someone?
    As I tried to help.

  6. The Following 2 Users Say Thank You to Fєηix For This Useful Post:

    Otaviomorais (03-10-2014),pDevice (03-04-2014)

  7. #6
    J's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    East Coast
    Posts
    2,164
    Reputation
    452
    Thanks
    5,900
    My Mood
    In Love
    Quote Originally Posted by arun823 View Post
    Ehrmagerd, the unorganized BR code, IT BURNS.

    Log the original float value for the address and assign it to a buffer then just set the buffer value back from the modified value when you're done. Also it's not -800, that's not a static float value, it's dynamic depending on which character you have. Hence the reason why you should always assign the default value to a buffer.
    As gravity for the character i am using is -1100 (yes i logged it), my code should work. So your statement means nothing.

    EDIT: Also I'd like to call you out for being a dumbass by saying -800 is NOT a static float value. lmfao.
    Last edited by J; 03-04-2014 at 12:04 PM.

  8. The Following User Says Thank You to J For This Useful Post:

    SecurityKos (03-18-2014)

  9. #7
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    that's weird... there's literally nothing wrong with your syntax and it still doesn't work? haha that's the most basic syntax xD

    also @ the topic of the -800 for the default float value, that's because CA has 2 variables for gravity. The -800 is the original NOLF2 but they changed it to another variable which is the -1100

    commando: You're probably the best non-coder coder I know LOL


  10. #8
    TokolocoSK's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Comendo Peru Pato Frango Búrguer.
    Posts
    2,874
    Reputation
    65
    Thanks
    6,858
    My Mood
    Yeehaw
    Quote Originally Posted by arun823 View Post
    Ehrmagerd, the unorganized BR code, IT BURNS.

    Log the original float value for the address and assign it to a buffer then just set the buffer value back from the modified value when you're done. Also it's not -800, that's not a static float value, it's dynamic depending on which character you have. Hence the reason why you should always assign the default value to a buffer.
    Do not generalize, it is not because one is say shit, everyone say ...





    Code:
    int valor;
    
    
    if ( speed == 1)
    {
    valor =  valor +  YOU VALUE;
    }
    
    
    if( speed )
    {
    if (GetAsyncKeyState(VK_SPACE) < 0)
        *(float*)0x37967700 = 750;
    else
        *(float*)0x37967700 = -valor;
    }
    Last edited by TokolocoSK; 03-04-2014 at 05:56 AM.



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

    luccss (03-04-2014),pDevice (03-04-2014)

  12. #9
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    831
    Reputation
    44
    Thanks
    401
    My Mood
    Twisted
    Hm, you should add a directx debug overlay so you can check it @ runtime
    It should work, but you know theses guys sometimes take some hacks too seriously xD

    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
    https://www.youtube.com/watch?v=EMSB1GbBVl8

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

  13. The Following User Says Thank You to Ch40zz-C0d3r For This Useful Post:

    J (03-04-2014)

  14. #10
    XarutoUsoCrack's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    CFAL Honra & Glória Server
    Posts
    1,087
    Reputation
    51
    Thanks
    2,543
    My Mood
    Relaxed
    Code:
    if( ( GetAsyncKeyState( VK_SPACE ) < 0 ) )
     *( float *)address = 800;
    else
    ...
    wtf is wrong whit ur code ?

  15. #11
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    831
    Reputation
    44
    Thanks
    401
    My Mood
    Twisted
    BTW you should use float values e.x. 750.0f and -1100.0f
    Thats all I can see which 'could' be wrong with the code.

    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
    https://www.youtube.com/watch?v=EMSB1GbBVl8

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

  16. #12
    J's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    East Coast
    Posts
    2,164
    Reputation
    452
    Thanks
    5,900
    My Mood
    In Love
    Quote Originally Posted by Ch40zz-C0d3r View Post
    BTW you should use float values e.x. 750.0f and -1100.0f
    Thats all I can see which 'could' be wrong with the code.
    Yeah I used float values after I posted this thread. Still didn't work. But heres what I found:

    This works but the 'off' value for the gravity isn't correct, it's noticably different ingame. (obviously):
    Code:
    if (GetAsyncKeyState(VK_SPACE) < 0 && bFly)
    	*(float*)Memory->ADDRESS_GRAVITY = 750.0f;
    else
    	*(float*)Memory->ADDRESS_GRAVITY = -1000.0f;
    BUT this does NOT (LOL it's like the gravity STILL stays at 750):
    Code:
    if (GetAsyncKeyState(VK_SPACE) < 0 && bFly)
    	*(float*)Memory->ADDRESS_GRAVITY = 750.0f;
    else
    {
    	*(float*)Memory->ADDRESS_GRAVITY = -1000.0f;
    	*(float*)Memory->ADDRESS_GRAVITY -= 100.0f;
    }

  17. #13
    J's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    East Coast
    Posts
    2,164
    Reputation
    452
    Thanks
    5,900
    My Mood
    In Love
    Sigh. I guess for now I'll just set it to -1099.99f. It works and i dont even notice a difference.

  18. #14
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    831
    Reputation
    44
    Thanks
    401
    My Mood
    Twisted
    LOL Dat engine XDD
    Welcome to Lithtech

    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
    https://www.youtube.com/watch?v=EMSB1GbBVl8

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

  19. The Following User Says Thank You to Ch40zz-C0d3r For This Useful Post:

    J (03-04-2014)

  20. #15
    arun823's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Los Angeles, California
    Posts
    523
    Reputation
    151
    Thanks
    1,899
    My Mood
    Amused
    Quote Originally Posted by J View Post


    As gravity for the character i am using is -1100 (yes i logged it), my code should work. So your statement means nothing.

    EDIT: Also I'd like to call you out for being a dumbass by saying -800 is NOT a static float value. lmfao.
    lel, -800 isn't a static float value, it's an integral number type. -800.0f IS a static float value. Your statement is useless.

    EDIT: I see the confusion, earlier I meant -1100.0f, -800.0f is the modifying value. Of course it's static.
    Last edited by arun823; 03-04-2014 at 06:42 PM.
    Reversing is the only way to move forward.

  21. The Following User Says Thank You to arun823 For This Useful Post:

    J (03-04-2014)

Similar Threads

  1. LAWLS a pic of mee lmao
    By Luke420 in forum General
    Replies: 11
    Last Post: 01-11-2010, 05:54 AM
  2. Need help with GunZ
    By Mikkaav in forum Gunz General
    Replies: 9
    Last Post: 02-07-2006, 09:27 PM
  3. Hack for BlackHwakDown with TeamSabre and Argus
    By Megamann in forum General Game Hacking
    Replies: 0
    Last Post: 02-03-2006, 03:33 AM
  4. Need help with "packets"
    By Nrak9493 in forum General Game Hacking
    Replies: 3
    Last Post: 01-22-2006, 09:48 AM
  5. Need help with ammo hack
    By AthlaS in forum WarRock - International Hacks
    Replies: 4
    Last Post: 01-19-2006, 01:50 PM