Modified bone-spear to correctly break into 1-2 bones when breaking (#30951)
This commit is contained in:
@@ -190,3 +190,27 @@
|
||||
sprite: Objects/Weapons/Melee/bone_spear.rsi
|
||||
- type: Construction
|
||||
graph: SpearBone
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 30 #excess damage avoids cost of spawning entities.
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 20
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: GlassBreak
|
||||
params:
|
||||
volume: -4
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
MaterialBones1:
|
||||
min: 1
|
||||
max: 2
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
|
||||
Reference in New Issue
Block a user