Skip to content

Commit

Permalink
Update MeleeWeaponSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
VMSolidus committed Aug 7, 2024
1 parent 4ea187e commit b8856d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Client/Weapons/Melee/MeleeWeaponSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private void ClientHeavyAttack(EntityUid user, EntityCoordinates coordinates, En

var userPos = TransformSystem.GetWorldPosition(userXform);
var direction = targetMap.Position - userPos;
var distance = MathF.Min(component.Range, direction.Length());
var distance = MathF.Min(component.Range * component.HeavyRangeModifier, direction.Length());

// This should really be improved. GetEntitiesInArc uses pos instead of bounding boxes.
// Server will validate it with InRangeUnobstructed.
Expand Down

0 comments on commit b8856d0

Please sign in to comment.