Autoattacking weapons (#23765)

auto attacks
This commit is contained in:
Nemanja
2024-01-09 02:25:07 -05:00
committed by GitHub
parent e97fd47a87
commit 5db615af54
5 changed files with 18 additions and 6 deletions

View File

@@ -60,6 +60,12 @@ public sealed partial class MeleeWeaponComponent : Component
[ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
public bool Attacking = false;
/// <summary>
/// If true, attacks will be repeated automatically without requiring the mouse button to be lifted.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
public bool AutoAttack;
/// <summary>
/// Base damage for this weapon. Can be modified via heavy damage or other means.
/// </summary>