Make wide attacks optional for now (#8924)
This commit is contained in:
parent
08a4c7b835
commit
5a216be730
2 changed files with 3 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ namespace Content.Server.Weapon.Melee.Components
|
|||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("arc")]
|
||||
public string Arc { get; set; } = "default";
|
||||
public string? Arc { get; set; } = "default";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("arcwidth")]
|
||||
|
|
|
|||
|
|
@ -124,6 +124,8 @@ namespace Content.Server.Weapon.Melee
|
|||
|
||||
private void OnWideAttack(EntityUid owner, MeleeWeaponComponent comp, WideAttackEvent args)
|
||||
{
|
||||
if (string.IsNullOrEmpty(comp.Arc)) return;
|
||||
|
||||
args.Handled = true;
|
||||
var curTime = _gameTiming.CurTime;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue