Regular boxes are now destructible (#16300)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
- type: entity
|
||||
id: BaseBigBox
|
||||
name: cardboard box
|
||||
name: cardboard box #it's still just a box
|
||||
description: Huh? Just a box...
|
||||
abstract: true
|
||||
components:
|
||||
- type: Transform
|
||||
noRot: true
|
||||
@@ -61,32 +62,29 @@
|
||||
id: StealthBox
|
||||
suffix: stealth
|
||||
parent: BaseBigBox
|
||||
name: cardboard box #it's still just a box
|
||||
description: Kept ya waiting, huh?
|
||||
components:
|
||||
- type: CardboardBox
|
||||
effectSound: /Audio/Effects/chime.ogg
|
||||
- type: Damageable
|
||||
damageContainer: Box
|
||||
damageModifierSet: FlimsyMetallic #Syndicate boxes should have a bit of protection
|
||||
- type: Sprite
|
||||
noRot: true
|
||||
netsync: false
|
||||
sprite: Structures/Storage/closet.rsi
|
||||
layers:
|
||||
- state: agentbox
|
||||
- state: cardboard_open
|
||||
map: ["enum.StorageVisualLayers.Door"]
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: StorageVisualizer
|
||||
state: agentbox
|
||||
state_open: cardboard_open
|
||||
- type: Stealth
|
||||
- type: StealthOnMove
|
||||
passiveVisibilityRate: -0.37
|
||||
movementVisibilityRate: 0.20
|
||||
|
||||
- type: entity
|
||||
id: BigBox
|
||||
parent: BaseBigBox
|
||||
components:
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 15
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
|
||||
|
||||
#For admin spawning only
|
||||
- type: entity
|
||||
id: GhostBox
|
||||
|
||||
@@ -12,4 +12,4 @@
|
||||
|
||||
|
||||
- node: basebigbox
|
||||
entity: BaseBigBox
|
||||
entity: BigBox
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
- type: construction
|
||||
name: cardboard box
|
||||
id: BaseBigBox
|
||||
id: BigBox
|
||||
graph: BaseBigBox
|
||||
startNode: start
|
||||
targetNode: basebigbox
|
||||
@@ -51,4 +51,4 @@
|
||||
category: construction-category-storage
|
||||
description: A small box for storing things.
|
||||
icon: { sprite: Objects/Storage/boxes.rsi, state: box }
|
||||
objectType: Item
|
||||
objectType: Item
|
||||
|
||||
Reference in New Issue
Block a user