Guitar Smashing (#17724)
This commit is contained in:
@@ -7,3 +7,8 @@
|
||||
license: "CC0-1.0"
|
||||
copyright: "User tosha73 on freesound.org"
|
||||
source: "https://freesound.org/people/tosha73/sounds/509902/"
|
||||
|
||||
- files: ["guitarsmash.ogg"]
|
||||
license: "CC0-1.0"
|
||||
copyright: "User Mystovski on freesound.org. Modified by LankLTE on github."
|
||||
source: "https://freesound.org/people/Mystovski/sounds/201111/"
|
||||
|
||||
BIN
Resources/Audio/Weapons/guitarsmash.ogg
Normal file
BIN
Resources/Audio/Weapons/guitarsmash.ogg
Normal file
Binary file not shown.
@@ -105,6 +105,37 @@
|
||||
slots:
|
||||
- back
|
||||
sprite: Objects/Fun/Instruments/guitar.rsi
|
||||
- type: Wieldable
|
||||
- type: Damageable # Smash it! Does 20 damage a hit, but breaks after 1 hit.
|
||||
damageContainer: Inorganic
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 20
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Weapons/guitarsmash.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
MaterialWoodPlank:
|
||||
min: 2
|
||||
max: 4
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: DamageOnHit # This makes it destroy after one hit.
|
||||
damage:
|
||||
types:
|
||||
Blunt: 20
|
||||
- type: MeleeWeapon
|
||||
damage:
|
||||
types:
|
||||
Blunt: 5
|
||||
- type: IncreaseDamageOnWield
|
||||
damage:
|
||||
types:
|
||||
Blunt: 15
|
||||
|
||||
- type: entity
|
||||
parent: BaseHandheldInstrument
|
||||
|
||||
@@ -18,6 +18,14 @@
|
||||
"name": "inhand-right",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "wielded-inhand-left",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "wielded-inhand-right",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "equipped-BACKPACK",
|
||||
"directions": 4
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Reference in New Issue
Block a user