Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <CheatTable CheatEngineTableVersion="24">
- <CheatEntries>
- <CheatEntry>
- <ID>0</ID>
- <Description>"Fix Stomp Physics"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>[Enable]
- // hook to 0x13C1C3D
- 01254D4C:
- jmp 0x13C1C3D
- nop
- nop
- // add Sonic's current velocity vector with
- // that of the base stomp velocity
- 0x13C1C3D:
- movaps xmm1, [edi+0x290] // xmm1 = pSonic->Velocity
- addps xmm0, xmm1 // xmm0 += xmm1
- movaps [edi+0x290], xmm0 // pSonic->Velocity = xmm0
- // return to original code
- jmp 0x01254D53
- [Disable]
- // remove the hook
- 01254D4C:
- movaps [edi+0x290], xmm0 // pSonic->Velocity = xmm0
- </AssemblerScript>
- </CheatEntry>
- </CheatEntries>
- <UserdefinedSymbols/>
- </CheatTable>
Advertisement
Add Comment
Please, Sign In to add comment