Regular boxes are now destructible (#16300)

This commit is contained in:
PeterFuto
2023-05-13 04:56:54 +02:00
committed by GitHub
parent a0b2f9ddf5
commit 99fceaf2e4
7 changed files with 23 additions and 25 deletions

View File

@@ -14025,7 +14025,7 @@ entities:
- pos: -34.5,17.5
parent: 8364
type: Transform
- proto: BaseBigBox
- proto: BigBox
entities:
- uid: 25967
components:

View File

@@ -27622,7 +27622,7 @@ entities:
- pos: -23.5,33.5
parent: 13329
type: Transform
- proto: BaseBigBox
- proto: BigBox
entities:
- uid: 11622
components:

View File

@@ -18249,7 +18249,7 @@ entities:
pos: -11.5,24.5
parent: 82
type: Transform
- proto: BaseBigBox
- proto: BigBox
entities:
- uid: 10063
components:

View File

@@ -21539,7 +21539,7 @@ entities:
- pos: 33.5,48.5
parent: 2
type: Transform
- proto: BaseBigBox
- proto: BigBox
entities:
- uid: 1961
components:

View File

@@ -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

View File

@@ -12,4 +12,4 @@
- node: basebigbox
entity: BaseBigBox
entity: BigBox

View File

@@ -33,7 +33,7 @@
- type: construction
name: cardboard box
id: BaseBigBox
id: BigBox
graph: BaseBigBox
startNode: start
targetNode: basebigbox