Fix missing sounds (#4466)
* Fix missing sounds * Make SoundHitSpecies fallback to SoundHit * Fix crayon YAML * Update PlaySoundBehavior YAML * Fix required
This commit is contained in:
@@ -32,7 +32,8 @@ namespace Content.Server.Projectiles
|
||||
var coordinates = args.OtherFixture.Body.Owner.Transform.Coordinates;
|
||||
var playerFilter = Filter.Pvs(coordinates);
|
||||
|
||||
if (!otherEntity.Deleted && otherEntity.HasComponent<SharedBodyComponent>())
|
||||
if (!otherEntity.Deleted && component.SoundHitSpecies != null &&
|
||||
otherEntity.HasComponent<SharedBodyComponent>())
|
||||
{
|
||||
SoundSystem.Play(playerFilter, component.SoundHitSpecies.GetSound(), coordinates);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user