Throwing a slight side note in here about using trainers in this game, if you fuck something up it DOES save your health that way -_-...
Pain in the ass every time I load the save I'm dead.
P.S. For those of you wondering I've accomplished inf health and just trying to get the one hit kill kinks worked out before I move onto something else,
This game has been proven to be extremely time consuming to train a single option properly I've been at it for nearly 6+ hours.
Below is an example of the hook I've coded for inf health/one hit kills I've marked off the offsets so no one tries stealing my work, want them get the shit and develop it on your own.
As soon as I have a few more options ready for it I'll be sure to release an early version I'm thinking of doing gold/mana once I get this worked out then later on I'll probably wind up making crap like no-clip, unlimited inventory, super speed, as well as weapon editing abilities via the trainer In-Game unlike save editing.
PHP Code:
VOID __declspec(naked) CheckDamage(VOID)
{
DWORD OldR11;
BYTE Player;
DWORD Ptr;
__asm{
cmplw cr6, r28, r11
ble cr6, return_abnormal
add r11, r28, r30
mr OldR11,r11
lwz r30,0x**(r1)
mr Ptr,r30
lbz r30,0x**(r30)
mr Player,r30
}
DbgPrint("Ptr: %08X\r\n",Ptr);
DbgPrint("Player: %08X\r\n",Player);
DbgPrint("Entered InfHealth/NotPlayer\r\n");
if( Player != 0x01 && OneHitKo == true )
{
DbgPrint("Entered OneHitKo/Notplayer\r\n");
__asm{
b return_abnormal
}
}
if( Player != 0x01 && InfHealth == true )
{
DbgPrint("Setting health\r\n");
__asm{
mr r11,OldR11
stw r11,0x**(r31)
}
}
DbgPrint("Returning to game normally\r\n");
__asm{
mr r11,OldR11
lis r10, 0x****
ori r10,r10,0x****
mtctr r10
bctr
return_abnormal:
//branch conditional
mr r11,OldR11
lis r10,0x****
ori r10,r10,0x****
mtctr r10
bctr
}
}
Same layout as all my other trainers...


Short vid of the inf health/one hit kills demonstration
http://www.youtube.com/watch?v=2DSul...d2AUAAAAAAAAAA