* 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>
15 lines
479 B
C#
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);
|
|
}
|