Skip to content

Commit

Permalink
Destructible Box (#1487)
Browse files Browse the repository at this point in the history
  • Loading branch information
canvaswalker authored Jul 30, 2024
1 parent 5e7232c commit 4bb9423
Showing 1 changed file with 28 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@
entity_storage: !type:Container
- type: Damageable
damageContainer: Box
# ss220 box fix begin
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 60
behaviors:
- !type:PlaySoundBehavior
sound:
collection: WoodDestroyHeavy
- !type:SpawnEntitiesBehavior
spawn:
MaterialCardboard:
min: 2
max: 4
- !type:DoActsBehavior
acts: [ "Destruction" ]
# ss220 box fix end
- type: Sprite
noRot: true
sprite: SS220/Structures/Storage/closet.rsi #SS220-Closet-Resprite
Expand Down Expand Up @@ -91,15 +109,16 @@
parent: BaseBigBox
components:
- type: InteractionOutline
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 15
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]

# ss220 box fix begin
# - type: Destructible
# thresholds:
# - trigger:
# !type:DamageTrigger
# damage: 15
# behaviors:
# - !type:DoActsBehavior
# acts: [ "Destruction" ]
# ss220 box fix end

#For admin spawning only
- type: entity
Expand Down

0 comments on commit 4bb9423

Please sign in to comment.