diff --git a/Resources/Audio/Effects/curtain_openclose.ogg b/Resources/Audio/Effects/curtain_openclose.ogg new file mode 100644 index 0000000000..95110fe394 Binary files /dev/null and b/Resources/Audio/Effects/curtain_openclose.ogg differ diff --git a/Resources/Prototypes/Entities/Structures/Decoration/curtains.yml b/Resources/Prototypes/Entities/Structures/Decoration/curtains.yml new file mode 100644 index 0000000000..9f1c1f71ff --- /dev/null +++ b/Resources/Prototypes/Entities/Structures/Decoration/curtains.yml @@ -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 diff --git a/Resources/Textures/Structures/Decoration/curtains.rsi/closed.png b/Resources/Textures/Structures/Decoration/curtains.rsi/closed.png new file mode 100644 index 0000000000..33f24e93d6 Binary files /dev/null and b/Resources/Textures/Structures/Decoration/curtains.rsi/closed.png differ diff --git a/Resources/Textures/Structures/Decoration/curtains.rsi/meta.json b/Resources/Textures/Structures/Decoration/curtains.rsi/meta.json new file mode 100644 index 0000000000..68afb3696a --- /dev/null +++ b/Resources/Textures/Structures/Decoration/curtains.rsi/meta.json @@ -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 + } + ] +} diff --git a/Resources/Textures/Structures/Decoration/curtains.rsi/open.png b/Resources/Textures/Structures/Decoration/curtains.rsi/open.png new file mode 100644 index 0000000000..4b4e6aa360 Binary files /dev/null and b/Resources/Textures/Structures/Decoration/curtains.rsi/open.png differ