Guest User

Untitled

a guest
Sep 5th, 2017
1,174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CheatTable CheatEngineTableVersion="24">
  3.   <CheatEntries>
  4.     <CheatEntry>
  5.       <ID>0</ID>
  6.       <Description>"Fix Stomp Physics"</Description>
  7.       <LastState/>
  8.       <VariableType>Auto Assembler Script</VariableType>
  9.       <AssemblerScript>[Enable]
  10. // hook to 0x13C1C3D
  11. 01254D4C:
  12. jmp 0x13C1C3D
  13. nop
  14. nop
  15.  
  16. // add Sonic's current velocity vector with
  17. // that of the base stomp velocity
  18. 0x13C1C3D:
  19. movaps xmm1, [edi+0x290] // xmm1 = pSonic-&gt;Velocity
  20. addps xmm0, xmm1         // xmm0 += xmm1
  21. movaps [edi+0x290], xmm0 // pSonic-&gt;Velocity = xmm0
  22.  
  23. // return to original code
  24. jmp 0x01254D53
  25.  
  26. [Disable]
  27. // remove the hook
  28. 01254D4C:
  29. movaps [edi+0x290], xmm0 // pSonic-&gt;Velocity = xmm0
  30. </AssemblerScript>
  31.     </CheatEntry>
  32.   </CheatEntries>
  33.   <UserdefinedSymbols/>
  34. </CheatTable>
Advertisement
Add Comment
Please, Sign In to add comment