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

@@ -26,6 +26,13 @@ public sealed partial class WieldableComponent : Component
[AutoNetworkedField, DataField("wielded")]
public bool Wielded = false;
/// <summary>
/// Whether using the item inhand while wielding causes the item to unwield.
/// Unwielding can conflict with other inhand actions.
/// </summary>
[DataField]
public bool UnwieldOnUse = true;
[DataField("wieldedInhandPrefix")]
public string? WieldedInhandPrefix = "wielded";