(Lua, ASMx86) Replication of Devil May Cry 4's debug functions for it's re-released version.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

player-no-hit.CEA 882B

12345678910111213141516171819202122232425262728293031323334353637
  1. [enable]
  2. alloc(newmem,33)
  3. label(returnhere)
  4. label(originalcode)
  5. label(exit)
  6. newmem:
  7. //this is a player function that is also shared by Dante boss as well.
  8. //before doing the comparison..
  9. //check whether the entity is a player or a boss
  10. push eax
  11. mov eax, [DevilMayCry4SpecialEdition.exe+f59f00]
  12. mov eax, [eax+24] //eax = player character
  13. cmp ebp, eax //compare entity with player character address
  14. pop eax //restore eax
  15. jne originalcode //entity is not the player -> get hit as usual
  16. mov al, 01
  17. originalcode:
  18. cmp al,01 //al = 0 if entity should be hit
  19. je DevilMayCry4SpecialEdition.exe+4CEB91
  20. exit:
  21. jmp returnhere
  22. "DevilMayCry4SpecialEdition.exe"+4CE8B5:
  23. jmp newmem
  24. nop
  25. nop
  26. nop
  27. returnhere:
  28. [disable]
  29. dealloc(newmem)
  30. "DevilMayCry4SpecialEdition.exe"+4CE8B5:
  31. cmp al,01 //al = 0 if entity should be hit
  32. je DevilMayCry4SpecialEdition.exe+4CEB91