CatStation/Content.Shared/Movement/Components/CursorOffsetInHandComponent.cs
Samuka 838984971c
Xenoborg guided missile (#45247)
* update math

* target finder system

* ports

* guns with projectiles

* make sure

* custom sprites for the laser

* add auto link

* add module

* sprite for the missile

* update animation speed

* ops

* make it glow

* overlay sprite

* stuff that doesn't work

* update launcher

* fix it

* make it see from far

* make it work

* sprite for the module

* 30 seconds is too much

* sprite for the range finder

* why was that here?

* update sprite of the missile

* update module icon

* ops

* update missile and missile launcher

* make it look like the launcher item

* remove ammo counter from range finder

* increase to 15 seconds

* no longer show the battery percentage

* use comp

* change summary

* ops

* new line

* make it last longer

* commentary

* acme moment

* fix bug when shooter was also the target and the projectile wouldn't move

* empty commit

* fix test fail

* replace with global behavior

* forgot to remove from the yml

* important

* check to see if the target exists

* fix autorefill bug

* remove unused system

* make it reload a tad slower

---------

Co-authored-by: beck-thompson <beck314159@hotmail.com>
2026-08-16 05:10:57 +00:00

16 lines
448 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Movement.Components;
/// <summary>
/// Makes a item activate a cursor offset if its help in hands
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class CursorOffsetInHandComponent : Component
{
/// <summary>
/// If it should only activate the offset if held in the active hand
/// </summary>
[DataField]
public bool UseActiveHand = true;
}