Page 1 of 3 123 LastLast
Results 1 to 15 of 41
  1. #1
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired

    Post [HELP] Sleep PTC Method?

    Is there a way I can Sleep Gordon's PTC Method?
    Code:
    typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
    RunConsoleCommand_t pRunConsoleCommand = (RunConsoleCommand_t)
    Whit's v1 base is giving me a whole lot of lag and I think it's the PTC Method causing it....

  2. #2
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Sleep(int Amount);

  3. The Following User Says Thank You to freedompeace For This Useful Post:

    MEkhi2 (12-05-2010)

  4. #3
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Sleep(100); after pushing the commands

  5. The Following User Says Thank You to ac1d_buRn For This Useful Post:

    MEkhi2 (12-05-2010)

  6. #4
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired
    So put it like this?
    Code:
    if ( showfps > 0 )
    pRunConsoleCommand ("ShowFps 1");
    Sleep(100);
    }else{
    pRunConsoleCommand ("ShowFps 0");
    Sleep(100);

  7. #5
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    Code:
    if ( showfps > 0 ){
    pRunConsoleCommand ("ShowFps 1");
    }else{
    pRunConsoleCommand ("ShowFps 0");
    }
    if ( nx > 0 ){
    pRunConsoleCommand ("SkelModelStencil 1");
    }else{
    pRunConsoleCommand ("SkelModelStencil 0");
    }
    Sleep(10);
    }
    Last edited by Alessandro10; 12-05-2010 at 05:24 AM.

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

    MEkhi2 (12-05-2010)

  9. #6
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired

    Post

    Quote Originally Posted by Alessandro10 View Post
    Code:
    if ( showfps > 0 ){
    pRunConsoleCommand ("ShowFps 1");
    }else{
    pRunConsoleCommand ("ShowFps 0");
    }
    if ( nx > 0 ){
    pRunConsoleCommand ("SkelModelStencil 1");
    }else{
    pRunConsoleCommand ("SkelModelStencil 0");
    }
    Sleep(10);
    }
    This worked. Thank you and everyone who helped!

    Solved ^_^

    EDIT: I'm still getting an abnormal amount of lag :S
    It's not my computer... when my hacks aren't injected, the game runs fine

  10. #7
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    Quote Originally Posted by MEkhi2 View Post
    This worked. Thank you and everyone who helped!

    Solved ^_^
    There are several methods to remove the lag.

  11. #8
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired
    Quote Originally Posted by Alessandro10 View Post
    There are several methods to remove the lag.
    Hmm read your I sent you a PM ^_^

  12. #9
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    Another method more effective

    In Global

    Code:
    int showfps = 0;
    int showfps1 = 0;
    Code:
    if( showfps > 0 ){if( showfps1 != showfps ){
    pRunConsoleCommand ("ShowFps 1");
    showfps1 = showfps;
    }
    }else{
    if( showfps1 != showfps ){
    pRunConsoleCommand ("ShowFps 0");
    showfps1 = showfps;
    }}
    Last edited by Alessandro10; 12-05-2010 at 06:01 AM.

  13. #10
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired
    Quote Originally Posted by Alessandro10 View Post
    Another method more effective

    Code:
    int showfps = 0;
    int showfps1 = 0;
    
    if( showfps > 0 ){if( showfps1 != showfps ){
    pRunConsoleCommand ("ShowFps 1");
    showfps1 = showfps;;
    }}else{if( showfps1 != showfps ){
    pRunConsoleCommand ("ShowFps 0");
    showfps1 = showfps;
    }}
    Holy Shitwhit that's long for one PTC Command
    I understand it all but I lol'd

    I'll test it and tell you my results

  14. #11
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    Quote Originally Posted by MEkhi2 View Post
    Holy Shitwhit that's long for one PTC Command
    I understand it all but I lol'd

    I'll test it and tell you my results
    Yes, it is more laborious (hard-working), but with better results.

    Remember: if you use this method, remove the Sleep.
    Last edited by Alessandro10; 12-05-2010 at 06:05 AM.

  15. The Following User Says Thank You to Alessandro10 For This Useful Post:

    MEkhi2 (12-05-2010)

  16. #12
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired

    Post

    Quote Originally Posted by Alessandro10 View Post
    Yes, it is more laborious (hard-working), but with better results.

    Remember: if you use this method, remove the Sleep.
    Yea I took out sleep and it worked a charm!

    Thank you so much!

    Now its time to change all of my PTC Commands 1 by one

  17. #13
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    Quote Originally Posted by MEkhi2 View Post
    Yea I took out sleep and it worked a charm!

    Thank you so much!

    Now its time to change all of my PTC Commands 1 by one
    When I went to put this method, I had to do for more than 30 functions, gave laziness.
    More worth it!

  18. #14
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired
    Gah, hacks turn on but don't turn off...

  19. #15
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    Before else, you put a showfps 1
    After Else showfps 0

Page 1 of 3 123 LastLast