Rate of fire, Is there a better way to change this code?

Need Help With an Existing Feature in Memory Hacking Software? Ask Here

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Rate of fire, Is there a better way to change this code?

Postby LesbianLover » Fri Sep 12, 2008 11:36 pm

Alloc( MyCode, 2048 ) ; Allocate 2,048 bytes and store the allocated address into MyCode, which we use as the location where our new code goes.
Label( OverwrittenCode ) ; The code that was overwritten by the JMP to MyCode will go here.
Label( Exit ) ; JMP here to exit our custom code and go back to the original code.
Label( Return ) ; The location of the next instruction of the original code.

FullAccess( game.exe+0x005077F1, 2048 )
game.exe+0x005077F1 :
jmp MyCode
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Return :






MyCode : ; The allocated address. Put your code after this.
mov dword ptr [esi+1A8],3F000000





OverwrittenCode : ; The overwritten code (code that was overwritten by the JMP to MyCode).
fmul dword ptr [esi+1A8]
fistp qword ptr [ebp-14]
mov ecx, dword ptr [ebp-14]
mov dword ptr [ebp-10], ecx







Exit : ; Automatic JMP back to the original code, or you can JMP Return directly to avoid coming here.
jmp Return

This is the code im changeing for rate of fire

Code: Select all
[color=blue]fmul    dword ptr [esi+1A8][/color]

change that code too [code]mov dword ptr [esi+1A8],3F000000[/code]

.5 dec rate of fire in hex is 3F000000. Is there a diffrent way maby to do this a lil better. When i inject the change [code]mov dword ptr [esi+1A8],3F000000[/code] It works fine but it starts laging up my game for some reason. Im thinking maby if i do it a diff way, it might run smoother.

LesbianLover
I Have A Few Questions
 
Posts: 3
Joined: Tue Apr 29, 2008 10:51 am

Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests