* fix embeddable offset with throwing angle
* number
if (component.Offset != Vector2.Zero)
{
- _transform.SetLocalPosition(uid, xform.LocalPosition + xform.LocalRotation.RotateVec(component.Offset),
+ var rotation = xform.LocalRotation;
+ if (TryComp<ThrowingAngleComponent>(uid, out var throwingAngleComp))
+ rotation += throwingAngleComp.Angle;
+ _transform.SetLocalPosition(uid, xform.LocalPosition + rotation.RotateVec(component.Offset),
xform);
}
description: Definition of a Classic. Keeping murder affordable since 200,000 BCE.
components:
- type: EmbeddableProjectile
- offset: 0.15,0.15
+ offset: -0.15,0.0
- type: ThrowingAngle
angle: 225
- type: LandAtCursor