Adding Hacks in Present!

Posts 17 of 7 · Page 1 of 1
Adding Hacks in Present!
From reading D3D Menu sources, many of the hacks are written in RenderFrame. However my question is, wouldn't this lag your computer as you are constantly enabling the hack? Is there another way to activate the hack only once?
Quote Originally Posted by mo3ad001 View Post
Look at this if u mean console commands
http://www.mpgh.net/forum/334-coding...ml#post4920565
how about nopping addies?

Also i don't get the function of the flags.

could you explain your code please.

Code:
bool Flags[2];

void fun_Commands()
{
	int i = 0; // no need to count , while we can make it auto
	PatchCommand( Menu Item Val , "ShowFPS 1",	"ShowFPS 0", Flags[i++]);// here u see how it's auto count and ++
	PatchCommand( Menu Item Val , "SkelModelStencil 1",	"SkelModelStencil 0", Flags[i++]);
}
Quote Originally Posted by Braco22 View Post
how about nopping addies?

Also i don't get the function of the flags.

could you explain your code please.

Code:
bool Flags[2];

void fun_Commands()
{
	int i = 0; // no need to count , while we can make it auto
	PatchCommand( Menu Item Val , "ShowFPS 1",	"ShowFPS 0", Flags[i++]);// here u see how it's auto count and ++
	PatchCommand( Menu Item Val , "SkelModelStencil 1",	"SkelModelStencil 0", Flags[i++]);
}
don't do that. it won't work. commands sometimes switch back randomly if u only change them once. no fog resets every 30 seconds. some commands changed in lobby won't stick in game (satellite chams). you can use mmbob's popfromconsole function or use getconsoleint to check the value of a specific console command. and for noping addies, check the byes of the address and compare it to what you want to change it to, if they already are the same, then dont patch it.
Quote Originally Posted by [POWER] View Post
don't do that. it won't work. commands sometimes switch back randomly if u only change them once. no fog resets every 30 seconds. some commands changed in lobby won't stick in game (satellite chams). you can use mmbob's popfromconsole function or use getconsoleint to check the value of a specific console command. and for noping addies, check the byes of the address and compare it to what you want to change it to, if they already are the same, then dont patch it.
k got it. thanks
Just use simple Boolean logic. If you know even C++ syntax, and have the logic of a 10 year old, this should be a simple task.
Quote Originally Posted by Braco22 View Post
From reading D3D Menu sources, many of the hacks are written in RenderFrame. However my question is, wouldn't this lag your computer as you are constantly enabling the hack? Is there another way to activate the hack only once?
renderframe enables the hack at the same speed as sleep(fps), or a rough estimate at sleep(40)
many non-D3D hackers have their hacks at sleep(1), much faster then renderframe.
if you mean the hacks being activated once, they are probably being initilized once and checked in renderframe.
Posts 17 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?