SpicyBagpipes / KJW_Imposters

A modification for Arma 3 that adds the ability to go undercover, with a variety of caveats and details.
1 stars 2 forks source link

BUG - Wearing any Backpack renders you Overt #5

Closed mrschick closed 1 month ago

mrschick commented 2 months ago

Yesterday I noticed that backpacks with KJW_Imposters_SuspicionAmount = 0, like "Everyday Backpack (Black)" (B_CivilianBackpack_01_Base_F), render an otherwise "incognito" wearer completely overt.

Repro Steps:

I identified the cause as 584675d90ac5f58d59a996b10f984d1f2e5d6350. The changes applied by that commit lead to backpacks like B_CivilianBackpack_01_Everyday_Black_F to not be added to kjw_imposters_core_itemScores, which then causes the following line to default to them being fully-overt equipment, with SuspicionAmount = 1. https://github.com/SpicyBagpipes/KJW_Imposters/blob/b26ebc907b047303f05aa37f46f9338776ccf087/addons/core/functions/fnc_processUnit.sqf#L36

SpicyBagpipes commented 2 months ago

Thanks for this, I'll get around to solving it soon - my group plays without backpack processing on so didn't notice!

SpicyBagpipes commented 2 months ago

Fixed in b2e360e, will publish on Monday

mrschick commented 2 months ago

Excellent, thanks for the quick fix 🤙🏻

mrschick commented 1 month ago

This appears to still be an issue with 3CB backpacks like UK3CB_B_Hiker and UK3CB_CW_SOV_O_EARLY_B_RIF (inherits susness from UK3CB_B_Fieldpack, which has the same issue). They both have Susness 0 in the arsenal but are not loaded to kjw_imposters_core_itemScores.

SpicyBagpipes commented 1 month ago

This appears to still be an issue with 3CB backpacks like UK3CB_B_Hiker and UK3CB_CW_SOV_O_EARLY_B_RIF (inherits susness from UK3CB_B_Fieldpack, which has the same issue). They both have Susness 0 in the arsenal but are not loaded to kjw_imposters_core_itemScores.

Just took a look, it's due to them not having 901 (backpack slot) in their allowedSlots[]... They have 1000 instead which is peculiar to say the least. I'll add a check for isBackpack = 1 as an alternative to the condition

SpicyBagpipes commented 1 month ago

Hopefully fixed in 3331179 - testing showed it collected now, will update on Monday and let me know if you still have this issue.

SpicyBagpipes commented 1 month ago

This fix was not published on Monday as I forgot, my bad. Will do it next Monday - don't want to do an update so close to weekend given hemtt regenerates bikeys

SpicyBagpipes commented 1 month ago

Fix published, let me know if there's any further issues with it, else close this issue yourself :)

mrschick commented 1 month ago

Double checked it with all backpacks of RHS + Project OPFOR + 3CB Factions that inherit Susness 0, none present the issue. As far as I'm concerned, this is resolved 👌🏻