Musashi1584 / RPGO

4 stars 7 forks source link

Stealth Overhaul Adjustments #75

Closed Iridar closed 3 years ago

Iridar commented 3 years ago

This issue has to do with Stealth Overhaul, not RPGO itself, but since Stealth Overhaul is not on github, I'm posting it here so we don't forget to address this when Musashi returns.

Right now Stealth Overhaul allows to configure a stealth ability only once. This means that if RPGO adds standard shot as a stealth ability on vektor rifles, then no other mod can add standard shot as a stealth ability for another weapon.

I suggest Stealth Overhaul be adjusted so that either: 1) Any weapon can be individually configured as a valid stealth weapon, regardless of which ability it is used with OR 2) An ability can be added as a valid stealth ability with multiple configs, and the Stealth Overhaul should cycle through all of them and picking the entry appropriate to circumstances instead of using .Find().

Iridar commented 3 years ago

My use case is adding Alien Hunters crossbows as stealth weapons, which I thought to be a simple config mod, but was faced with this limitation.

Iridar commented 3 years ago

Derp, I just realized WeaponCategoryRequirements in StealthAbility struct is an array. Which means I can use some code to make it work.