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:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user