Look at this if u mean console commands
https://www.mpgh.net/forum/334-coding...ml#post4920565
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?
Look at this if u mean console commands
https://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++]); }
Last edited by Braco22; 08-30-2011 at 12:55 PM.
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.
matypatty (08-30-2011)
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.