there is a PLAYERSPEED definition inside wl_def.h,
i can't change macro in runtime, any suggestions?
i can't change macro in runtime, any suggestions?
A friendly Wolfenstein 3D community, about Wolfenstein 3D, the game that gave birth to first person shooters...
even if you have any hard and long way to change the playerspeed in runtime i have to know about itAlumiuN wrote:I believe that because it's a macro, the number will actually turn up multiple times in the EXE, so AFAIK there's no easy way to do it.
if(RUNSPEED>4000)
will be:
if(6000>4000)
int *ptr;
ptr = &RUNSPEED; //6000 :/ :(
int buffer[1];
buffer[0] = 20000;
SIZE_T written;
WriteProcessMemory(hProcess, ptr, (LPVOID)buffer, sizeof(buffer), &written);