Page 1 of 1

Need to set a value to an address (modifying fstp)

Posted: Fri Oct 02, 2020 12:18 pm
by acast15
I'm new to this kind scripting with fld and fstp. I'm working on a game and trying to set a certain float value to the current weapon the character is using. When I set the value, it affects everything else in the game. Hope someone can help me. Thanks

Is this an array?

Code: Select all

fstp dword ptr [esi*8+game.exe+B14710]
Here's the generated script (no changes made yet)

Code: Select all

aobscanmodule(infAmmo,game.exe,D9 1C F5 10 47 F1 00)
alloc(newmem,$100)

label(code)
label(return)

newmem:

code:
  fstp dword ptr [esi*8+game.exe+B14710] // SET VALUE HERE
  jmp return

infAmmo:
  jmp newmem
  nop 2
return:
registersymbol(infAmmo)