Improve throwing precision (#29726)
* improve throwing precision * remove debugging logs * minor fixes * f * Update Content.Shared/Throwing/LandAtCursorComponent.cs --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -5,17 +5,17 @@ namespace Content.Shared.Throwing;
|
||||
[ByRefEvent]
|
||||
public struct BeforeThrowEvent
|
||||
{
|
||||
public BeforeThrowEvent(EntityUid itemUid, Vector2 direction, float throwStrength, EntityUid playerUid)
|
||||
public BeforeThrowEvent(EntityUid itemUid, Vector2 direction, float throwSpeed, EntityUid playerUid)
|
||||
{
|
||||
ItemUid = itemUid;
|
||||
Direction = direction;
|
||||
ThrowStrength = throwStrength;
|
||||
ThrowSpeed = throwSpeed;
|
||||
PlayerUid = playerUid;
|
||||
}
|
||||
|
||||
public EntityUid ItemUid { get; set; }
|
||||
public Vector2 Direction { get; }
|
||||
public float ThrowStrength { get; set;}
|
||||
public float ThrowSpeed { get; set;}
|
||||
public EntityUid PlayerUid { get; }
|
||||
|
||||
public bool Cancelled = false;
|
||||
|
||||
Reference in New Issue
Block a user