Skip to content

Commit

Permalink
Increase the footprint visibility threshold by 50%
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician authored Dec 19, 2024
1 parent ebdcc0e commit 94c759a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/FootPrint/FootPrintsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ private void OnStartupComponent(EntityUid uid, FootPrintsComponent component, Co
private void OnMove(EntityUid uid, FootPrintsComponent component, ref MoveEvent args)
{
// Floof: clear stored DNAs if footprints are now invisible
if (component.PrintsColor.A <= .2f)
if (component.PrintsColor.A <= .3f)
component.DNAs.Clear();

if (component.PrintsColor.A <= .2f // avoid creating footsteps that are invisible
if (component.PrintsColor.A <= .3f // avoid creating footsteps that are invisible
|| TryComp<PhysicsComponent>(uid, out var physics) && physics.BodyStatus != BodyStatus.OnGround // Floof: do not create footprints if the entity is flying
|| !_transformQuery.TryComp(uid, out var transform)
|| !_mobThresholdQuery.TryComp(uid, out var mobThreshHolds)
Expand Down

0 comments on commit 94c759a

Please sign in to comment.