Closed Koud-Wind closed 5 months ago
The update focuses on refining the weapon unloading process within a game, ensuring that if a player attempts to unload a weapon but lacks a compatible magazine in their inventory, the operation is halted and any attachments are preserved. This enhancement aims to prevent potential issues where players could lose attachments due to incompatibility or absence of the necessary magazine, thereby improving the gameplay experience by making weapon management more intuitive and less punishing.
File Path | Change Summary |
---|---|
.../weaponlib/WeaponReloadAspect |
Adjusted the unloading process to cancel and restore attachments if a compatible magazine is absent. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
๐ Description
Fix Unable to find magazine while reload, resulting in weapon freezing
๐ฏ Goals
Weapon reload freeze
โ Non Goals
Code abbreviation is not the goal
๐ฆ Testing
When reload cannot find the magazine, it will roll back the status
In the creation mode, perform weapon reload, instant sneak, the weapon will not freeze In survival mode, the weapon reload and instantly discards the only available magazine, the weapon will not freeze
โฎ๏ธ Backwards Compatibility
Fully compatible
๐ผ๏ธ Screenshots/Recordings
https://discord.com/channels/801852948854079489/1078839351468892241/1219634858368696412
๐ Added to documentation?
๐ [optional] What gif best describes this PR or how it makes you feel?
I discovered this issue in June last year
Summary by CodeRabbit