Thread: Delay on bhop

Results 1 to 9 of 9
  1. #1
    xln1's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0

    Angry Delay on bhop

    Hi. I'm internal and I'm trying to add some delay / random delay to bhop and I have absolutely no idea how to. Basically here is my code for my autohop
    Code:
    void CMiscHacks::AutoJump(CUserCmd *pCmd)
    {
    	
    	
    	if (pCmd->buttons & IN_JUMP && GUI.GetKeyState(VK_SPACE))
    	{
    		int iFlags = hackManager.pLocal()->GetFlags();
    		if (!(iFlags & FL_ONGROUND))
    			pCmd->buttons &= ~IN_JUMP;
    	
    		
    	}
    }
    Obviously since I'm internal I can't just use sleep or wait( think I can't use wait not sure)

    Basically just asking for spoonfeed


    angry emote

  2. #2
    WasserEsser's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    735
    Reputation
    174
    Thanks
    677
    My Mood
    Busy
    Use a timer and a condition instead of sleep.

  3. #3
    Threadstarter
    New Member
    xln1's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by WasserEsser View Post
    Use a timer and a condition instead of sleep.
    Please ignore that it is blatantly copy pasted

    Code:
    	static clock_t start_t = clock();
    	double timeSoFar = (double)(clock() - start_t) / CLOCKS_PER_SEC;
    	if (timeSoFar < 0.25)
    		return;
    
    
    	start_t = clock();
    Is this something similar to what you mean? Sorry if I offend you with my lack of c++ knowledge but what I tried to do is
    Code:
    	static clock_t start_t = clock();
    	double timeSoFar = (double)(clock() - start_t) / CLOCKS_PER_SEC;
    	if (timeSoFar < 0.25)
    		return;
    
    	if (pCmd->buttons & IN_JUMP && GUI.GetKeyState(VK_SPACE))
    	{
    		int iFlags = hackManager.pLocal()->GetFlags();
    		if (!(iFlags & FL_ONGROUND))
    			pCmd->buttons &= ~IN_JUMP;
    	
    		start_t = clock();
    Should I do
    Code:
    if (pCmd->buttons & IN_JUMP && GUI.GetKeyState(VK_SPACE) && timeSoFar > 0.25))
    ?
    Or just stick to what I did above.
    Should I implement it with
    Code:
    			pCmd->buttons &= ~IN_JUMP;
    ?

  4. #4
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Quote Originally Posted by xln1 View Post
    Please ignore that it is blatantly copy pasted

    Code:
    	static clock_t start_t = clock();
    	double timeSoFar = (double)(clock() - start_t) / CLOCKS_PER_SEC;
    	if (timeSoFar < 0.25)
    		return;
    
    
    	start_t = clock();
    Is this something similar to what you mean? Sorry if I offend you with my lack of c++ knowledge but what I tried to do is
    Code:
    	static clock_t start_t = clock();
    	double timeSoFar = (double)(clock() - start_t) / CLOCKS_PER_SEC;
    	if (timeSoFar < 0.25)
    		return;
    
    	if (pCmd->buttons & IN_JUMP && GUI.GetKeyState(VK_SPACE))
    	{
    		int iFlags = hackManager.pLocal()->GetFlags();
    		if (!(iFlags & FL_ONGROUND))
    			pCmd->buttons &= ~IN_JUMP;
    	
    		start_t = clock();
    Should I do
    Code:
    if (pCmd->buttons & IN_JUMP && GUI.GetKeyState(VK_SPACE) && timeSoFar > 0.25))
    ?
    Or just stick to what I did above.
    Should I implement it with
    Code:
    			pCmd->buttons &= ~IN_JUMP;
    ?
    Lol, don't accuse @WasserEsser of copy paste... He is one of the best c++ programmers on this site...


     

    Steam-TriggeredFemenazi
    CS:GO Rank-MG (but I'm a dirty cheater so who cares)
    Discord-ImWhacky#6260

    P.M. me if you have any questions.


  5. #5
    gtaplayer2's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Dancing with my kawaii friend
    Posts
    588
    Reputation
    22
    Thanks
    1,984
    Quote Originally Posted by ImWhacky View Post
    Lol, don't accuse @WasserEsser of copy paste... He is one of the best c++ programmers on this site...
    Lol, don't accuse @xln1 of accusing @WasserEsser for copy pasting, when he never did accuse him of anything.

  6. #6
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Quote Originally Posted by gtaplayer2 View Post
    Lol, don't accuse @xln1 of accusing @WasserEsser for copy pasting, when he never did accuse him of anything.
    Is he not accusing him at the first line in his post?
    Quote Originally Posted by xln1 View Post
    Please ignore that it is blatantly copy pasted


     

    Steam-TriggeredFemenazi
    CS:GO Rank-MG (but I'm a dirty cheater so who cares)
    Discord-ImWhacky#6260

    P.M. me if you have any questions.


  7. #7
    gtaplayer2's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Dancing with my kawaii friend
    Posts
    588
    Reputation
    22
    Thanks
    1,984
    Quote Originally Posted by ImWhacky View Post
    Is he not accusing him at the first line in his post?
    He is pointing out that his code is copy pasted from elsewhere, not that wasseresser is copy pasting??

  8. #8
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Quote Originally Posted by gtaplayer2 View Post
    He is pointing out that his code is copy pasted from elsewhere, not that wasseresser is copy pasting??
    Ok i interpreted it wrong, that's my bad


     

    Steam-TriggeredFemenazi
    CS:GO Rank-MG (but I'm a dirty cheater so who cares)
    Discord-ImWhacky#6260

    P.M. me if you have any questions.


  9. #9
    Smoke's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    11,899
    Reputation
    2661
    Thanks
    4,610
    My Mood
    Amazed
    Been over a week since last update/bump after answers, assuming solved.

    /Closed.


    CLICK TO BUY NOW!!


    Quote Originally Posted by Liz View Post
    This is my first vouch, ever. Rapidgator account worked perfectly. Would buy in the future.

Similar Threads

  1. [Help] Using Variables for BHOP Delay in AHK
    By godlvl in forum Counter-Strike 2 Scripts
    Replies: 7
    Last Post: 07-27-2016, 06:27 AM
  2. [Outdated] PolyLegit | Bhop | Triggerbot | Custom Triggerbot Delay | Undetected | Open-Source
    By godlvl in forum Counter-Strike 2 Hacks
    Replies: 22
    Last Post: 05-20-2016, 06:15 AM
  3. [Release...kinda]Delay Godmode
    By tzie13 in forum Combat Arms Hacks & Cheats
    Replies: 44
    Last Post: 08-21-2008, 11:19 AM
  4. Delayed GunZ Post
    By NotSorry in forum Gunz General
    Replies: 0
    Last Post: 01-21-2008, 03:07 PM
  5. Hacks Delayed
    By Dave84311 in forum Hack/Release News
    Replies: 31
    Last Post: 04-25-2007, 04:25 PM