Advertisement
ChaosHacks

inf health 1 hit kill Mafia 2

Dec 20th, 2019
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. [ENABLE]
  2. assert(mafia2.exe+590BD6,D9 9D D0 00 00 00 8B 16)
  3. aobscanmodule(InfHealth2,mafia2.exe,D9 9D D0 00 00 00 8B 16)
  4. alloc(newmem,$100)
  5. alloc(Onehit,8)
  6.  
  7.  
  8. label(code)
  9. label(return)
  10. label(OHK_value)
  11. label(giveInfHealth)
  12. label(KillAI)
  13. label(OHK)
  14.  
  15.  
  16. registersymbol(Onehit)
  17. registersymbol(OHK_value)
  18.  
  19. Onehit:
  20. OHK_value:
  21. dd 0
  22.  
  23. newmem:
  24.  
  25. pushfd
  26. cmp [ebp+118],#1 //comparing me and enemies....
  27. je giveInfHealth
  28. jne OHK
  29.  
  30. giveInfHealth:
  31.  
  32. mov [ebp+000000D0],(float)719.999939
  33. popfd
  34. jmp return
  35.  
  36. OHK:
  37.  
  38. cmp [OHK_value],1
  39. je KillAI
  40. jne code
  41.  
  42. KillAI:
  43. mov [ebp+000000D0],(float)0
  44.  
  45. popfd
  46. jmp return
  47.  
  48. code:
  49.  
  50. fstp dword ptr [ebp+000000D0]
  51. popfd
  52. jmp return
  53.  
  54. InfHealth2:
  55. jmp newmem
  56. nop
  57. return:
  58. registersymbol(InfHealth2)
  59.  
  60. [DISABLE]
  61.  
  62. InfHealth2:
  63. db D9 9D D0 00 00 00
  64.  
  65. unregistersymbol(InfHealth2)
  66. unregistersymbol(Onehit)
  67. unregistersymbol(OHK_value)
  68. dealloc(newmem)
  69. dealloc(Onehit)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement