Fix cloning machine and medical scanner pulling

This commit is contained in:
ShadowCommander
2021-05-27 22:41:07 -07:00
parent 5c9921e81b
commit 557fd29d3b
3 changed files with 38 additions and 50 deletions

View File

@@ -1,20 +1,16 @@
- type: entity
id: CloningPod
parent: BaseMachine
name: cloning pod
description: A Cloning Pod. 50% reliable.
placement:
mode: SnapgridCenter
components:
- type: CloningPod
- type: Sprite
netsync: false
sprite: Constructible/Specific/Medical/cloning.rsi
layers:
- state: pod_0
map: ["enum.CloningPodVisualLayers.Machine"]
- type: PowerReceiver
- type: Anchorable
- type: Clickable
- type: InteractionOutline
- type: Physics
bodyType: Static
fixtures:
@@ -23,22 +19,10 @@
bounds: "-0.5,-0.25,0.5,0.25"
mass: 25
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- type: SnapGrid
- type: CloningPod
- type: Damageable
resistances: metallicResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- SmallImpassable
- Opaque
mask:
- MobMask
- type: Appearance
visuals:
- type: CloningPodVisualizer

View File

@@ -1,10 +1,10 @@
- type: entity
id: MedicalScanner
parent: BaseMachine
name: medical scanner
description: A bulky medical scanner.
placement:
mode: SnapgridCenter
components:
- type: MedicalScanner
- type: Sprite
netsync: false
noRot: true
@@ -14,32 +14,6 @@
map: ["enum.MedicalScannerVisualLayers.Machine"]
- state: idle_unlit
map: ["enum.MedicalScannerVisualLayers.Terminal"]
- type: PowerReceiver
- type: Clickable
- type: InteractionOutline
- type: Physics
bodyType: Static
fixtures:
- shape:
!type:PhysShapeAabb {}
mass: 25
layer:
- Impassable
- VaultImpassable
- type: SnapGrid
- type: Anchorable
- type: Pullable
- type: MedicalScanner
- type: Damageable
resistances: metallicResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
visuals:
- type: MedicalScannerVisualizer

View File

@@ -0,0 +1,30 @@
- type: entity
abstract: true
parent: BaseConstructible
id: BaseMachine
components:
- type: InteractionOutline
- type: Anchorable
- type: Pullable
- type: PowerReceiver
- type: Physics
bodyType: Static
fixtures:
- shape:
!type:PhysShapeAabb {}
mass: 25
layer:
- MobMask
- Opaque
mask:
- MobMask
- type: Damageable
resistances: metallicResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]