PostSleep PTC Method?

Posts 115 of 41 · Page 1 of 3
[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....
Sleep(100); after pushing the commands
So put it like this?
Code:
if ( showfps > 0 )
pRunConsoleCommand ("ShowFps 1");
Sleep(100);
}else{
pRunConsoleCommand ("ShowFps 0");
Sleep(100);
Code:
if ( showfps > 0 ){
pRunConsoleCommand ("ShowFps 1");
}else{
pRunConsoleCommand ("ShowFps 0");
}
if ( nx > 0 ){
pRunConsoleCommand ("SkelModelStencil 1");
}else{
pRunConsoleCommand ("SkelModelStencil 0");
}
Sleep(10);
}
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
Quote Originally Posted by MEkhi2 View Post
This worked. Thank you and everyone who helped!

Solved ^_^
There are several methods to remove the lag.
Quote Originally Posted by Alessandro10 View Post
There are several methods to remove the lag.
Hmm read your I sent you a PM ^_^
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;
}}
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
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.
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
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!
Gah, hacks turn on but don't turn off...
Before else, you put a showfps 1
After Else showfps 0
Posts 115 of 41 · Page 1 of 3

Post a Reply

Tags for this Thread

None

Need help?