nipkownix / re4_tweaks

Fixes and tweaks for the "UHD" port of Resident Evil 4
zlib License
346 stars 32 forks source link

Improving Invincibility #417

Closed Mister-Curious closed 1 year ago

Mister-Curious commented 1 year ago

Describe the feature you'd like to see added

Greetings friends. I'm wiring in hopes to get the Trainer Invincibility mode to be a little more functional, as presently there are numerous ways to still take damage when Invincibility is turned on. Some things that could be added:

I am sure there are more I haven't thought of, but that's kind of the gist of it. I believe that Raz0r's trainer covers all these bases so perhaps just looking at what is going on while that is turned on might be helpful.

Thanks

DarthxVoid commented 1 year ago

@Mister-Curious I already liked it because I can test the range of my archers and in addition to testing my AEV damage

Mister-Curious commented 1 year ago

I'm not sure I understand what you mean @DarthxVoid . Are you saying you like semi-invincibility? If so, maybe there could be an option for semi-protection vs full protection. The name is misleading, as the player is certainly not invincible. LOL

DarthxVoid commented 1 year ago

@Mister-Curious it would be interesting to have 2 types anyway, and yes I like semi-immortality to test the positioning of my archers And it's not total immortality, I noticed that when we take damage from novistadores or wolves the life bar goes down and dps fills up

nipkownix commented 1 year ago

Well, went ahead and analyzed what raz0r's trainer does for the invincibility:

Quite a lot, tbh. Trainer.cpp is quite big as is, maybe we should look into splitting that up before making any other changes...

nipkownix commented 1 year ago

@Mister-Curious, here's a build that implements everything I've mentioned above:

dinput8-Invincibility.zip

Please let me know if everything works fine. I'd appreciate it if you could do some extensive testing, since this touches quite a bit of code.

Mister-Curious commented 1 year ago

Wow man, THANK YOU ! THat was fast!

Mister-Curious commented 1 year ago

So after some testing I found a couple of strange things going on. The enemies actually freeze in place once they attack you if invincibility is turned on. The other thing about enemies too is that they wont spawn again if you retry once they are frozen.

Another thing I noticed too was that my shortcut key for changing player speed stopped working with this build. I just thought I would mention all this in case you didn't have time to test it out. I'd really like to test this out some more if there is a chance to get this working.

Thank you!

nipkownix commented 1 year ago

Ah, right, raz0r's trainer was doing something else that was a bit harder to spot. Could you check if this fixes it?

dinput8-inv.zip

Mister-Curious commented 1 year ago

Thank you so much. Everything seems to work well to keep the player invincible. Will this be included in future builds?

Cheers!

nipkownix commented 1 year ago

Sorry, forgot to answer you: I'm making a new release soon with these changes.