Skip to content

Commit

Permalink
5
Browse files Browse the repository at this point in the history
  • Loading branch information
PvrG committed Dec 2, 2024
1 parent 7bbac7c commit 568d764
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Content.Shared/Backmen/Standing/SharedLayingDownSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,18 @@ standingState.CurrentState is not StandingState.Standing ||
_standing.Down(uid, true, behavior != DropHeldItemsBehavior.NoDrop, standingState: standingState);
return true;
}

// WWDP
public void LieDownInRange(EntityUid uid, EntityCoordinates coords, float range = 0.4f)

Check failure on line 361 in Content.Shared/Backmen/Standing/SharedLayingDownSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'EntityCoordinates' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 361 in Content.Shared/Backmen/Standing/SharedLayingDownSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'EntityCoordinates' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 361 in Content.Shared/Backmen/Standing/SharedLayingDownSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The type or namespace name 'EntityCoordinates' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 361 in Content.Shared/Backmen/Standing/SharedLayingDownSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The type or namespace name 'EntityCoordinates' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 361 in Content.Shared/Backmen/Standing/SharedLayingDownSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The type or namespace name 'EntityCoordinates' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 361 in Content.Shared/Backmen/Standing/SharedLayingDownSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The type or namespace name 'EntityCoordinates' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 361 in Content.Shared/Backmen/Standing/SharedLayingDownSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'EntityCoordinates' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 361 in Content.Shared/Backmen/Standing/SharedLayingDownSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'EntityCoordinates' could not be found (are you missing a using directive or an assembly reference?)
{
var ents = new HashSet<Entity<LayingDownComponent>>();
_lookup.GetEntitiesInRange(coords, range, ents);

foreach (var ent in ents.Where(ent => ent.Owner != uid))
{
TryLieDown(ent, behavior: DropHeldItemsBehavior.DropIfStanding);
}
}
}

[Serializable, NetSerializable]
Expand Down

0 comments on commit 568d764

Please sign in to comment.