Glass showcase (#891)

* glass showcase

* fixes

* Update closets.yml

* Update closets.yml
This commit is contained in:
Ed
2025-02-13 18:12:17 +03:00
committed by GitHub
parent c27438306d
commit af83322c90
10 changed files with 93 additions and 5 deletions

View File

@@ -14,7 +14,6 @@
map: ["enum.StorageVisualLayers.Base"]
- state: base_door
map: ["enum.StorageVisualLayers.Door"]
- type: ItemSlots
- type: DamageOnHighSpeedImpact
damage:
types:
@@ -158,4 +157,73 @@
name: vault safe
components:
- type: CP14Lock
autoGenerateShape: BankVault
autoGenerateShape: BankVault
- type: entity
id: CP14ClosetGlassShowcase
parent: CP14ClosetBase
name: glass showcase
description: Something of value can be placed here without fear of it being discreetly stolen!
components:
- type: Sprite
drawdepth: Mobs
snapCardinals: true
sprite: _CP14/Structures/Storage/glass_showcase.rsi
state: base
- type: EntityStorage
isCollidableWhenOpen: true
enteringOffset: 0, 0
capacity: 5
showContents: true
occludesLight: false
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.40,-0.40,0.40,0.40"
density: 75
mask:
- MachineMask
layer:
- MachineLayer
- type: MeleeSound
soundGroups:
Brute:
collection: GlassSmack
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Glass
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 150 #excess damage (nuke?). avoid computational cost of spawning entities.
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
collection: WindowShatter
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:PlaySoundBehavior
sound:
collection: WindowShatter
- !type:SpawnEntitiesBehavior
spawn:
CP14GlassShard:
min: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: ContainerContainer
containers:
entity_storage: !type:Container
showEnts: True
occludes: False
paper_label: !type:ContainerSlot
showEnts: False
occludes: True

View File

@@ -60,7 +60,7 @@
collection: WindowShatter
- trigger:
!type:DamageTrigger
damage: 25
damage: 50
behaviors:
- !type:PlaySoundBehavior
sound:
@@ -69,7 +69,7 @@
spawn:
CP14GlassShard:
min: 1
max: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Airtight

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 B

After

Width:  |  Height:  |  Size: 152 B

View File

@@ -1,7 +1,7 @@
{
"version": 1,
"license": "All right reserved",
"copyright": "Created by TheShuEd (Github) and resprite by Jaraten and vladimir.s",
"copyright": "Created by TheShuEd (Github) and resprite by Jaraten and vladimir.s",
"size": {
"x": 32,
"y": 32

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 B

After

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 922 B

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

View File

@@ -0,0 +1,20 @@
{
"version": 1,
"license": "All right reserved",
"copyright": "Created by TheShuEd (github)",
"size": {
"x": 32,
"y": 64
},
"states": [
{
"name": "base"
},
{
"name": "base_open"
},
{
"name": "base_door"
}
]
}