Add basic meteor swarm (#4420)
* Add basic meteor swarm * Map fixes * Dependency cache * Fix projectile crash * Last of the reviews
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Content.Server.Projectiles.Components
|
||||
public bool DeleteOnCollide { get; } = true;
|
||||
|
||||
// Get that juicy FPS hit sound
|
||||
[DataField("soundHit", required: true)] public SoundSpecifier SoundHit = default!;
|
||||
[DataField("soundHit", required: true)] public SoundSpecifier? SoundHit = default!;
|
||||
[DataField("soundHitSpecies")] public SoundSpecifier? SoundHitSpecies = null;
|
||||
|
||||
public bool DamagedEntity;
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Content.Server.Projectiles
|
||||
}
|
||||
else
|
||||
{
|
||||
SoundSystem.Play(playerFilter, component.SoundHit.GetSound(), coordinates);
|
||||
var soundHit = component.SoundHit?.GetSound();
|
||||
|
||||
if (!string.IsNullOrEmpty(soundHit))
|
||||
SoundSystem.Play(playerFilter, soundHit, coordinates);
|
||||
}
|
||||
|
||||
if (!otherEntity.Deleted && otherEntity.TryGetComponent(out IDamageableComponent? damage))
|
||||
|
||||
Reference in New Issue
Block a user