Suit storage units (#16128)

This commit is contained in:
Flareguy
2023-05-13 20:36:46 -05:00
committed by GitHub
parent fe5bb560df
commit 19b5d9253d
9 changed files with 337 additions and 20 deletions

View File

@@ -167,3 +167,87 @@
- state: welded
visible: false
map: ["enum.WeldableLayers.BaseWelded"]
#Base suit storage unit
#I am terribly sorry for duplicating the closet almost-wholesale, but the game malds at me if I don't so here we are.
- type: entity
id: SuitStorageBase
parent: BaseStructureDynamic
name: suit storage unit
description: A fancy hi-tech storage unit made for storing space suits.
components:
- type: StaticPrice
price: 80
- type: ResistLocker
- type: Transform
noRot: true
- type: Sprite
noRot: true
netsync: false
sprite: Structures/Storage/suit_storage.rsi
layers:
- state: base
- state: closed
map: ["enum.StorageVisualLayers.Door"]
- state: welded
visible: false
map: ["enum.WeldableLayers.BaseWelded"]
- type: MovedByPressure
- type: DamageOnHighSpeedImpact
damage:
types:
Blunt: 5
soundHit:
path: /Audio/Effects/bang.ogg
- type: InteractionOutline
- type: Physics
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.25,-0.48,0.25,0.48"
density: 145
mask:
- MachineMask
layer:
- MachineLayer
- type: EntityStorage
- type: ContainerContainer
containers:
entity_storage: !type:Container
- type: Weldable
- type: PlaceableSurface
placeCentered: true
isPlaceable: false
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 150
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1
- type: Appearance
visuals:
- type: StorageVisualizer
state: base
state_open: base
state_closed: closed