Advertisement
Guest User

Hextator

a guest
Dec 23rd, 2009
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. //////////////////////////////
  2. Struct map
  3. Base pointer is the one used to reference health,
  4. as opposed to the one used to reference things like
  5. position and mobility status
  6.  
  7. +0x004 Float of health (1499.0 = max)
  8. +0x03C Float of Beam Charge (0.0 = not charged; 1.0 = charged)
  9. +0x07C Word of missiles
  10. +0x080 Word of missile capacity
  11.  
  12. .org 0x801BC700
  13. ;This instruction reads Aran's health constantly
  14. lfs f1, 4 (r3) ;xC0230004
  15. ;Great for checking if Corruption is active
  16. lfs f0, -23440 (r2) ;xC002A470
  17.  
  18. 1499 health as 32 bit float: 0x44BB6000
  19.  
  20. Infinite Health,
  21. Instant Beam Charge
  22. and Infinite Missiles:
  23.  
  24. stw r2, 4(r3)
  25. lfs f0, 4(r3)
  26. lis r2, 0x3F80
  27. stw r2, 0x3C(r3)
  28. lwz r2, 0x80(r3)
  29. stw r2, 0x7C(r3)
  30. lis r2, 0x44BB
  31. ori r2, r2, 0x6000
  32. stw r2, 4(r3)
  33. lfs f1, 4(r3)
  34. stfs f0, 4(r3)
  35. lwz r2, 4(r3)
  36. stfs f1, 4(r3)
  37.  
  38. 201BC700 C0230004
  39. C21BC700 00000007
  40. 90430004 C0030004
  41. 3C403F80 9043003C
  42. 80430080 9043007C
  43. 3C4044BB 60426000
  44. 90430004 C0230004
  45. D0030004 80430004
  46. D0230004 00000000
  47. E0000000 80008000
  48.  
  49. Tested and working
  50. (Setting charge higher than 1.0 does nothing interesting)
  51. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  52.  
  53. //////////////////////////////
  54. Bonus Credit related data (32 bit words) order is
  55. Red
  56. Blue
  57. Gold
  58. Green (Friend Credit)
  59. Black (Friend Voucher)
  60. Orange (Prime boss credits)
  61. Purple (Echoes boss credits)
  62. Silver (Prime and Echoes bonus credits)
  63.  
  64. Found by searching for 32 bits of # of Red
  65.  
  66. Seems to always be loaded to 0x8096A3A4, 0x8096A3F8 and 0x8117391C
  67. (Edit the first to edit the actual credit amounts for the currently loaded file, in-game)
  68. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement