Skip to content

Commit

Permalink
fly overhead fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CMDR-Bill-Doors committed Aug 22, 2024
1 parent e76c8f5 commit 85e18c5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ public virtual void Launch(Thing launcher, Vector2 origin, float shotAngle, floa
this.lerpPosition = props.lerpPosition;
this.GravityFactor = props.Gravity;
}
if (shotHeight >= CollisionVertical.WallCollisionHeight && Position.Roofed(launcher.Map) && !def.projectile.flyOverhead)
if (shotHeight >= CollisionVertical.WallCollisionHeight && Position.Roofed(launcher.Map))
{
ignoreRoof = true;
}
Expand Down Expand Up @@ -1200,6 +1200,11 @@ public override void Tick()
{
DangerTracker?.Notify_BulletAt(Position, def.projectile.damageAmountBase * dangerFactor);
}
//If a flyoverhead ignore roof projectile is descending, enable roof check.
if (ignoreRoof && def.projectile.flyOverhead && shotAngle < 0)
{
ignoreRoof = false;
}
}

/// <summary>
Expand Down

0 comments on commit 85e18c5

Please sign in to comment.