Cleanup (#2111)
This commit is contained in:
@@ -29,8 +29,8 @@ namespace Content.Server.GameObjects.Components.Weapon.Melee
|
||||
private TimeSpan _lastAttackTime;
|
||||
private TimeSpan _cooldownEnd;
|
||||
|
||||
private string _hitSound;
|
||||
private string _missSound;
|
||||
private readonly string _hitSound;
|
||||
private readonly string _missSound;
|
||||
public float ArcCooldownTime { get; private set; } = 1f;
|
||||
public float CooldownTime { get; private set; } = 0.5f;
|
||||
|
||||
@@ -191,7 +191,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Melee
|
||||
private HashSet<IEntity> ArcRayCast(Vector2 position, Angle angle, IEntity ignore)
|
||||
{
|
||||
var widthRad = Angle.FromDegrees(ArcWidth);
|
||||
var increments = 1 + (35 * (int) Math.Ceiling(widthRad / (2 * Math.PI)));
|
||||
var increments = 1 + 35 * (int) Math.Ceiling(widthRad / (2 * Math.PI));
|
||||
var increment = widthRad / increments;
|
||||
var baseAngle = angle - widthRad / 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user