Punching and melee hitsounds now have unique SoundCollections (#5748)
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Content.Server.Weapon.Melee.Components
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("hitSound")]
|
||||
public SoundSpecifier HitSound { get; set; } = new SoundPathSpecifier("/Audio/Weapons/genhit1.ogg");
|
||||
public SoundSpecifier HitSound { get; set; } = new SoundCollectionSpecifier("GenericHit");
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("missSound")]
|
||||
|
||||
@@ -265,6 +265,8 @@
|
||||
- type: AnimationPlayer
|
||||
- type: Buckle
|
||||
- type: UnarmedCombat
|
||||
hitSound:
|
||||
collection: Punch
|
||||
range: 0.8
|
||||
arcwidth: 30
|
||||
arc: fist
|
||||
|
||||
6
Resources/Prototypes/SoundCollections/generic_hit.yml
Normal file
6
Resources/Prototypes/SoundCollections/generic_hit.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- type: soundCollection
|
||||
id: GenericHit
|
||||
files:
|
||||
- /Audio/Weapons/genhit1.ogg
|
||||
- /Audio/Weapons/genhit2.ogg
|
||||
- /Audio/Weapons/genhit3.ogg
|
||||
7
Resources/Prototypes/SoundCollections/punching.yml
Normal file
7
Resources/Prototypes/SoundCollections/punching.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
- type: soundCollection
|
||||
id: Punch
|
||||
files:
|
||||
- /Audio/Weapons/punch1.ogg
|
||||
- /Audio/Weapons/punch2.ogg
|
||||
- /Audio/Weapons/punch3.ogg
|
||||
- /Audio/Weapons/punch4.ogg
|
||||
Reference in New Issue
Block a user