Make wide attacks optional for now (#8924)
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Content.Server.Weapon.Melee.Components
|
|||||||
|
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
[DataField("arc")]
|
[DataField("arc")]
|
||||||
public string Arc { get; set; } = "default";
|
public string? Arc { get; set; } = "default";
|
||||||
|
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
[DataField("arcwidth")]
|
[DataField("arcwidth")]
|
||||||
|
|||||||
@@ -124,6 +124,8 @@ namespace Content.Server.Weapon.Melee
|
|||||||
|
|
||||||
private void OnWideAttack(EntityUid owner, MeleeWeaponComponent comp, WideAttackEvent args)
|
private void OnWideAttack(EntityUid owner, MeleeWeaponComponent comp, WideAttackEvent args)
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(comp.Arc)) return;
|
||||||
|
|
||||||
args.Handled = true;
|
args.Handled = true;
|
||||||
var curTime = _gameTiming.CurTime;
|
var curTime = _gameTiming.CurTime;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user