Drone hat simulator (#6644)

This commit is contained in:
mirrorcult
2022-02-12 08:44:50 -07:00
committed by GitHub
parent d439c5e991
commit d189a9e3b8
3 changed files with 21 additions and 2 deletions

View File

@@ -47,8 +47,8 @@ namespace Content.Server.Strip
_strippableSystem = EntitySystem.Get<StrippableSystem>();
Owner.EnsureComponentWarn<ServerInventoryComponent>();
var cuffed = Owner.EnsureComponentWarn<CuffableComponent>();
cuffed.OnCuffedStateChanged += UpdateState;
if(_entities.TryGetComponent<CuffableComponent>(Owner, out var cuffed))
cuffed.OnCuffedStateChanged += UpdateState;
}
protected override void Shutdown()

View File

@@ -64,6 +64,13 @@
- id: PowerDrill
- id: JawsOfLife
- id: WelderExperimental
- type: Inventory
templateId: drone
- type: Strippable
- type: UserInterface
interfaces:
- key: enum.StrippingUiKey.Key
type: StrippableBoundUserInterface
- type: GhostTakeoverAvailable
makeSentient: true
name: Maintenance Drone
@@ -86,6 +93,9 @@
layers:
- state: shell
sprite: Mobs/Silicon/drone.rsi
- map: [ "head" ]
offset: 0, -0.45
rotateOffset: false
- type: Fixtures
fixtures:
- shape:

View File

@@ -0,0 +1,9 @@
- type: inventoryTemplate
id: drone
slots:
- name: head
slotTexture: head
slotFlags: HEAD
uiContainer: BottomLeft
uiWindowPos: 0,0
displayName: Head