Hextator
By: a guest | Dec 23rd, 2009 | Syntax:
None | Size: 1.59 KB | Hits: 188 | Expires: Never
//////////////////////////////
Struct map
Base pointer is the one used to reference health,
as opposed to the one used to reference things like
position and mobility status
+0x004 Float of health (1499.0 = max)
+0x03C Float of Beam Charge (0.0 = not charged; 1.0 = charged)
+0x07C Word of missiles
+0x080 Word of missile capacity
.org 0x801BC700
;This instruction reads Aran's health constantly
lfs f1, 4 (r3) ;xC0230004
;Great for checking if Corruption is active
lfs f0, -23440 (r2) ;xC002A470
1499 health as 32 bit float: 0x44BB6000
Infinite Health,
Instant Beam Charge
and Infinite Missiles:
stw r2, 4(r3)
lfs f0, 4(r3)
lis r2, 0x3F80
stw r2, 0x3C(r3)
lwz r2, 0x80(r3)
stw r2, 0x7C(r3)
lis r2, 0x44BB
ori r2, r2, 0x6000
stw r2, 4(r3)
lfs f1, 4(r3)
stfs f0, 4(r3)
lwz r2, 4(r3)
stfs f1, 4(r3)
201BC700 C0230004
C21BC700 00000007
90430004 C0030004
3C403F80 9043003C
80430080 9043007C
3C4044BB 60426000
90430004 C0230004
D0030004 80430004
D0230004 00000000
E0000000 80008000
Tested and working
(Setting charge higher than 1.0 does nothing interesting)
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//////////////////////////////
Bonus Credit related data (32 bit words) order is
Red
Blue
Gold
Green (Friend Credit)
Black (Friend Voucher)
Orange (Prime boss credits)
Purple (Echoes boss credits)
Silver (Prime and Echoes bonus credits)
Found by searching for 32 bits of # of Red
Seems to always be loaded to 0x8096A3A4, 0x8096A3F8 and 0x8117391C
(Edit the first to edit the actual credit amounts for the currently loaded file, in-game)
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\