fix wieldable guns not being able to cycle inhand (#27307)

* Add UnwieldOverride variable that overrides unwielding inhand to enable other interactions

* Give LMGs UnwieldOverride

* logically inverted UnwieldOverride to UnwieldOnUse

* fixed typo
This commit is contained in:
WarMechanic
2024-04-26 22:31:50 +10:00
committed by GitHub
parent 80bbf19f95
commit 498109a833
3 changed files with 9 additions and 1 deletions

View File

@@ -125,7 +125,7 @@ public sealed class WieldableSystem : EntitySystem
if (!component.Wielded)
args.Handled = TryWield(uid, component, args.User);
else
else if (component.UnwieldOnUse)
args.Handled = TryUnwield(uid, component, args.User);
}