nipkownix / re4_tweaks

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

[Feature request] Disable item drop despawns. #511

Open LMR-1 opened 1 year ago

LMR-1 commented 1 year ago

Describe the feature you'd like to see added

I noticed while playing this game (I haven't played it a lot) that item drops from enemies despawn after a short while if you don't pick them up, it's kind of frustrating when I'm being surrounded, where i have to decide to either ignore the item completely and risk missing out on it, or sacrifice health in order to pick it up. So I suggest maybe a feature to either change the time it takes for items to despawn or a feature do disable item despawn completely.

Mister-Curious commented 1 year ago

I believe this can be achieved as user Kteo once told me that this disappearance of items after spawning can vary depending on which AuraType is used in the ITA entry for that item.

To have an item stay (and even by available when re-entering the room), we have to use AuraType 0x7, 0x8, 0x2 in the ITA entry. I have explained it a bit HERE.

The only thing about this is that using different AuraTypes to make the items sitck around might actually change the color/shape of the drop auras. Perhaps there is a way to maintain the original appearance of the drop auras, but hook into the function that says 'stay'. I can provide offset addresses for those ITA values, or help testing ITA if anyone wants to pursue this.

juuuulian-s commented 1 year ago

it's kind of frustrating when I'm being surrounded, where i have to decide to either ignore the item completely and risk missing out on it, or sacrifice health in order to pick it up.

youre describing part of whats so fun about the resource management and combat dynamics as if its a negative?

LMR-1 commented 1 year ago

youre describing part of whats so fun about the resource management and combat dynamics as if its a negative?

I mean if you enjoy that, then more power to you. It's just not my cup of tea, feels more like an oversight or remnant/side-effect of the game originally having come out on the GameCube, especially since items seem to stay indefinitely in the remake, at least from what I can tell of the little I've played of it. Thus this part of the original feels a bit annoying on modern platforms when there's an item right there in front of me, and then I turn away to both avoid and kill a ganado or something, only to then turn back around to find the item I saw earlier having disappeared.

LMR-1 commented 1 year ago

I believe this can be achieved as user Kteo once told me that this disappearance of items after spawning can vary depending on which AuraType is used in the ITA entry for that item.

Would I be right in assuming that this would require hex editing? I'm not really familiar with the ins and outs of RE4 on steam, nor the original ubisoft pc port, so at the current time I don't really trust myself modifying the game files on my own.

Mister-Curious commented 1 year ago

To manually adjust all the aura types in all the game files would be a tremendous undertaking, however code that would overwrite entries loaded into memory would be a much easier undertaking, but would require knowledge of the the game files, in particular the ITA file.

LMR-1 commented 1 year ago

To manually adjust all the aura types in all the game files would be a tremendous undertaking, however code that would overwrite entries loaded into memory would be a much easier undertaking, but would require knowledge of the the game files, in particular the ITA file.

Like I stated earlier I sadly lack that kind of knowledge, in fact I've never modded RE4 before in any capacity other than this "tweaks" mod, which was easy enough to install and manage.