Hospital curtains add (#9707)

* curtainss

* sound_mono

* hotfix_curtains
This commit is contained in:
Deahaka
2022-07-14 14:53:17 +03:00
committed by GitHub
parent fd65b494ac
commit 485dfa3749
5 changed files with 85 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,66 @@
- type: entity
id: HospitalCurtains
parent: BaseStructure
name: curtains
description: Contains less than 1% mercury.
components:
- type: Occluder
- type: Sprite
netsync: false
sprite: Structures/Decoration/curtains.rsi
layers:
- state: closed
map: ["enum.DoorVisualLayers.Base"]
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.49,-0.49,0.49,0.49"
mass: 100
mask:
- FullTileMask
layer:
- Opaque
- type: Door
bumpOpen: false
clickOpen: true
closeTimeOne: 0.1
closeTimeTwo: 0.1
openTimeOne: 0.1
openTimeTwo: 0.1
openSound:
path: /Audio/Effects/curtain_openclose.ogg
closeSound:
path: /Audio/Effects/curtain_openclose.ogg
- type: Appearance
visuals:
- type: AirlockVisualizer
simpleVisuals: true
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 5
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
MaterialCloth1:
min: 1
max: 3
placement:
mode: SnapgridCenter
- type: entity
id: HospitalCurtainsOpen
parent: HospitalCurtains
suffix: Open
components:
- type: Door
state: Open
- type: Occluder
enabled: false

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

View File

@@ -0,0 +1,19 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/951c7976bf6cda431aed8a1b22a8624ff7dfd8e2",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "open",
"directions": 1
},
{
"name": "closed",
"directions": 1
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B