From ed0cf3a3b4c1b40f9c061864b46997dbc4d2c277 Mon Sep 17 00:00:00 2001 From: Deahaka <96499407+Deahaka@users.noreply.github.com> Date: Fri, 15 Jul 2022 05:50:59 +0300 Subject: [PATCH] Operating table add (#9687) --- .../Furniture/Tables/operating_table.yml | 55 ++++++++++++++++++ .../Furniture/Tables/optable.rsi/meta.json | 14 +++++ .../Tables/optable.rsi/operating_table.png | Bin 0 -> 415 bytes 3 files changed, 69 insertions(+) create mode 100644 Resources/Prototypes/Entities/Structures/Furniture/Tables/operating_table.yml create mode 100644 Resources/Textures/Structures/Furniture/Tables/optable.rsi/meta.json create mode 100644 Resources/Textures/Structures/Furniture/Tables/optable.rsi/operating_table.png diff --git a/Resources/Prototypes/Entities/Structures/Furniture/Tables/operating_table.yml b/Resources/Prototypes/Entities/Structures/Furniture/Tables/operating_table.yml new file mode 100644 index 0000000000..f2d2adbfb6 --- /dev/null +++ b/Resources/Prototypes/Entities/Structures/Furniture/Tables/operating_table.yml @@ -0,0 +1,55 @@ +- type: entity + id: OperatingTable + parent: BaseStructure + name: operating table + description: Special medical table for surgery. This one just seems to be a useless prop, though. + components: + - type: Strap + position: Down + rotation: -90 + buckleOffset: "0,-0.15" + unbuckleOffset: "0,-0.15" + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Metallic + - type: PlaceableSurface + - type: Fixtures + fixtures: + - shape: + !type:PhysShapeAabb + bounds: "-0.45,-0.45,0.45,0.45" + mass: 50 + mask: + - TableMask + layer: + - TableLayer + - type: Climbable + - type: Sprite + sprite: Structures/Furniture/Tables/optable.rsi + state: operating_table + noRot: true + - type: Icon + sprite: Structures/Furniture/Tables/optable.rsi + state: operating_table + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 100 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTrigger + damage: 30 + behaviors: + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg + - !type:SpawnEntitiesBehavior + spawn: + SheetSteel1: + min: 0 + max: 2 + - !type:DoActsBehavior + acts: [ "Destruction" ] diff --git a/Resources/Textures/Structures/Furniture/Tables/optable.rsi/meta.json b/Resources/Textures/Structures/Furniture/Tables/optable.rsi/meta.json new file mode 100644 index 0000000000..7ac39f7a4f --- /dev/null +++ b/Resources/Textures/Structures/Furniture/Tables/optable.rsi/meta.json @@ -0,0 +1,14 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/b7c1c31bf867b8548d882e49a852eb5b26d713e9", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "operating_table" + } + ] +} diff --git a/Resources/Textures/Structures/Furniture/Tables/optable.rsi/operating_table.png b/Resources/Textures/Structures/Furniture/Tables/optable.rsi/operating_table.png new file mode 100644 index 0000000000000000000000000000000000000000..576b82d2467b5909f5a5ca67b8475712c52b7773 GIT binary patch literal 415 zcmV;Q0bu@#P)Zq}6o!8)4$y^ULSnRpdB<*H;j9tv71TMO&(>UB*Q?*p+*MU2U4kb1zBk4R zAyxy^uBZ+?i`xWshGDSgk|a@U%Yo$6#9{<%;y*z@)VC>F6h#mM^VSnWKnO7kyxJI` zbzp1z_d*DnY4?4vy093*t4{eWQrETfPYLzQH@!eE_8Qg4stl}cSQFebwz4dZamEn}r#*A@FDFEPdxvUznX>?r|1OSj_ne+Ag=sG}31PCA@aXOupfi1Lci`(sH ze3Fg9JkO;N;`4gFzGqn`^jW}5C9%? zGVMvzR8CK+@0*U*W#-KkjN=%G!@=SE0i_g_Qey$mxyt`*z5uW)r-lEbpiTe)002ov JPDHLkV1ms3yfXj* literal 0 HcmV?d00001