Thread: Correct FH?

Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by PepsiXHacker View Post


    so your saying

    if spacebar.pressed
    gravity
    else
    nogravity

    ?

    But thats basically what i have

    Code:
    	if(Hack.fly){
    		if(GetAsyncKeyState(VK_SPACE)) { } 
    		PTC("PlayerGravity 700");
    	}else{
    		PTC("PlayerGravity -1000");
    	}
    All it does is keeps rising until you turn it off.
    Because you're a fool - look at your code again. <<

    Quote Originally Posted by Mynameisname View Post
    lol its because you are not looping, you should put that in a loop so when you release the space bar you will start falling, if you do not put that in a loop you will have to press space again to return false and start falling...
    He is looping.

  2. #17
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by freedompeace View Post


    Because you're a fool - look at your code again. <<



    He is looping.
    Yeah, i see what is wrong, but I don't know how to fix it.

  3. #18
    Alessandro10_Backup's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    21
    My Mood
    Angry
    Code:
    	if(FLY){
    		if(GetAsyncKeyState(VK_SPACE)) 
    		PTC("PlayerGravity 800");
    	else
    		PTC("PlayerGravity -800");
    	}

  4. #19
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by Alessandro10_Backup View Post
    Code:
    	if(FLY){
    		if(GetAsyncKeyState(VK_SPACE)) 
    		PTC("PlayerGravity 800");
    	else
    		PTC("PlayerGravity -800");
    	}
    it keeps going up even if i turn it off...

  5. #20
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    127
    why would u have a statement evaluating hack.fly ? are u using a menu?

  6. #21
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by kibbles18 View Post
    why would u have a statement evaluating hack.fly ? are u using a menu?
    Yea, CB v3.

  7. #22
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    831
    Reputation
    44
    Thanks
    401
    My Mood
    Twisted
    Use my code damn -_-

    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

  8. #23
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by Ch40zz-C0d3r View Post
    Use my code damn -_-
    It DC's me...

  9. #24
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Just so you know the normal gravity value is -1099 - 1 but just keep it at -1099

    And are you sure the value is changing to back off when you turn it off ?

    Code:
    if(bFly)
        if(GetAsyncKeyState(VK_SPACE)<0)
            Push("PlayerGravity 800");
        else
            Push("PlayerGravity -1099");
    else
        Push("PlayerGravity -1099");
    (Ignore this VV)

    @Disturbed :

    Can you see who deleted my v1.1 thread and if there was a reason for the deletion ?
    Last edited by Crash; 05-07-2011 at 10:32 AM.

  10. The Following User Says Thank You to Crash For This Useful Post:

    Cryptonic (05-07-2011)

  11. #25
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by Ch40zz-C0d3r View Post
    Use my code damn -_-
    Well what do you expect if you place it in the public domain? =="

    And also, you haven't ever used other people's source?

    Quote Originally Posted by Crash View Post
    Just so you know the normal gravity value is -1099 - 1 but just keep it at -1099

    And are you sure the value is changing to back off when you turn it off ?

    Code:
    if(bFly)
        if(GetAsyncKeyState(VK_SPACE)<0)
            Push("PlayerGravity 800");
        else
            Push("PlayerGravity -1099");
    else
        Push("PlayerGravity -1099");
    (Ignore this VV)

    @Disturbed :

    Can you see who deleted my v1.1 thread and if there was a reason for the deletion ?
    Code:
    if(bFly && GetAsyncKeyState(VK_SPACE) < 0)
      Push("PlayerGravity 800");
    else
      Push("PlayerGravity -1099");
    =)

  12. #26
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by freedompeace View Post


    Well what do you expect if you place it in the public domain? =="

    And also, you haven't ever used other people's source?



    Code:
    if(bFly && GetAsyncKeyState(VK_SPACE) < 0)
      Push("PlayerGravity 800");
    else
      Push("PlayerGravity -1099");
    =)
    Lol, Crash's code worked fine. Just need the second else to be }else{

  13. #27
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    805
    Reputation
    125
    Thanks
    1,794
    My Mood
    Doh
    Actually you need to use the switch statement, Well you don't need to but switch statement is faster...

Page 2 of 2 FirstFirst 12