--------------------------------------------------------
Resistance 2
--------------------------------------------------------

--------------------------------------------------------
INSTRUCTIONS | Codes by bungholio from CMP
--------------------------------------------------------

It's been a while, but I found these 2 in about an hour this morning. Testing has given me very good signs so far, because I haven't ran out of grenades, nor has any enemy managed to kill me even with instant death things, and I've managed to kill any enemy I've encountered so far, even the ones that the previous codes I found for infinite health gave infinite health to. I only went back because I was hoping to change a code that gave everything infinite health to tell me which function jumped to it to maybe lead me to the 1 function for the player on a DEX unit with ProDG. Turns out, DEX and ProDG are still worthless because not once did it give me a correct result. Not only did it do that, the results weren't even jumps. I didn't make a mistake in that either, the linking register addresses it was supposed to give me weren't even branches. Another moment of ProDG being worthless and reminding me of how much I disliked pissing away $50 on a router for it to randomly crash every game within 2 minutes of connecting for no apparent reason. Junk. At least it made me think to go back and then I found what I was looking for without its help.

Unlimited Health
000FC2A8 3D807F80
00FC2AC 918300E0
000FC2B0 38600000
OGP=2F880000 419E001C 48477A0D
CGP=3D807F80 918300E0 38600000
There's a bit of a special note about the 3rd line I haven't tested yet. The function it normally goes to might have a special use for some people:

000FC2B0: 48477A0D bl 0x573cbc

I found the function it goes to a long time ago but never bothered checking the many other functions that go to it. It checks how much health something currently has, and if it is equal to 0 or something it sets register r3 to 1, otherwise r3 is set to 0. If set to 1, the thing it is checking for dies. I was lazy back then, my extreme whiskey times before I learned of AutoHotKey so I thought it had a thousand different referrers and lost patience. Turns out it has 25 referrers. The 2nd referrer out of all 25 is the referrer for the player, and I don't know individually the remaining 24. When I canceled that function by changing the first line to BLR with 4E800020, I always instantly started the game dead. If you delete that 3rd line of code, you might still die from instant death things. It wouldn't matter, things that instantly kill you remove your weapons and enemies ignore you so it might be more useful to die that way. Otherwise, you could probably cancel that function while that 3rd line is still 38600000 and everything except you throughout the game might instantly die the instant it spawns. I haven't tested that, and don't really care to, and I wouldn't recommend it for more than just how boring it could make the game, it could most likely break the game since it has scripted moments that need you to wait for enemies to do certain things. I've already been going through the game with rapid fire and pummeling enemies the instant I see them, and that has caused the game to not progress further in certain areas because I broke scripts and I was forced to restart checkpoints. Just throwing that info out there. You could probably keep the 3rd line and rewrite the function it goes to to load 4 bytes from offset 00DC of register r3 and compare it to 0, and if it isn't then store the value 0 at that offset to maybe create a 1 hit kill code. With all the codes so far now though, the game is being an effortless thing to walk through on hardest.


Infinite Grenades
000FE050 38600006
OGP=40990008 987F0009
CGP=38600006 987F0009
I feel dumb. I looked at my old code for Resistance 1 and how I found it. It was like this:

0008 ble cr?, skip the next line
0009 stb r?, 9(r?)

It was very close after where the health code I found was. So I searched for the codes that were like that. What are the odds the first instance of that combo stored to offset 0009? I tried it, and there it was. Found it in less than 2 minutes. It was that easy. A moment where I facepalm in response to my earlier stupidity a little over a year ago.

I'm hoping to possibly find the code to jump really high too like the first game, but not sure about that yet. Who knows, I might just find it.




EDIT: I can't quite find a code to allow me to jump very high like I did the first game. I just beat the game today with these 2 new codes on the hardest difficulty. Nothing could kill me, and there was nothing I couldn't kill. All grenades never decreased. Some levels where I normally started off with no grenades actually gave me all grenades. The codes work. You are no longer stuck with the bad health codes that make some or all enemies have unlimited health, or breakable doors have unlimited health or other bad side effects. Have fun!

Found high jump, and accidentally found running faster. 6 codes in 2 days.

Can Jump A Lot Farther
00116584 C17E8048
00116590 ED6B5832
OGP=60000000 819F0014 C0FE8040 C17E8048
CGP=C17E8048 819F0014 C0FE8040 ED6B5832
Don't mix with "High Jump While Moving", they use the same addresses. Not too useful.


High Jump While Moving
00116584 C17E8048
00116590 EDA159FA
00116594 EFBD0372
001165D0 EF7D003A
001165DC EF7B003A
OGP=60000000 819F0014 C0FE8040 C17E8048 EDA159FA C00C3BC8 FC1F0000 40810028 EC200372 C01E8018 FD9F0028 ED41F824 FFECDAAE EFDE07F2 EF9C07F2 EFBD07F2 48000010 EFDE0372 EF9C0372 EFBD0372 C0410084 C1010088 EF7D102A
CGP=C17E8048 819F0014 C0FE8040 EDA159FA EFBD0372 C00C3BC8 FC1F0000 40810028 EC200372 C01E8018 FD9F0028 ED41F824 FFECDAAE EFDE07F2 EF9C07F2 EFBD07F2 48000010 EFDE0372 EF9C0372 EF7D003A C0410084 C1010088 EF7B003A
Don't mix with "Can Jump A Lot Farther", they use the same addresses.


Run Faster
 001174DC EFAB502A
 OGP=C1633BCC EFAB5028
 CGP=C1633BCC EFAB502A


Run Increasingly Faster
 001174DC EFAB5032
 OGP=C1633BCC EFAB5028
 OGP=C1633BCC EFAB5032