Files
tbd-station-14/Content.Shared/Throwing/LandEvent.cs
metalgearsloth 60e3d8e507 Fix throwing prediction (#37086)
* Fix throwing prediction

- Disposals is still janky but I think that's disposals in general not being predicted and the disposals throw not being predicted and short-lived.
- Would need to check RMC.
- Couldn't repro the underlying issues however thrown items don't slip anymore so (and we also don't predict their land / stopping anymore so).

* primary constructor

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-05-03 17:17:30 +02:00

15 lines
479 B
C#

namespace Content.Shared.Throwing
{
/// <summary>
/// Raised when an entity that was thrown lands. This occurs before they stop moving and is when their tile-friction is reapplied.
/// </summary>
[ByRefEvent]
public readonly record struct LandEvent(EntityUid? User, bool PlaySound);
/// <summary>
/// Raised when a thrown entity is no longer moving.
/// </summary>
[ByRefEvent]
public record struct StopThrowEvent(EntityUid? User);
}