mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
* Various sounds ported
* Replace wall_bonk.ogg
* Metal/metalglass break sound pass
* Replace metalbreak.ogg
* Replace woodhit
* Replcae tap.ogg n some smack uses
* Fix lint
* Replace bang.ogg and some instances of hit_kick.ogg
* couple more
* fix wood sound
* i may be stupid
* le attributing
* bro what
* standardize more destruction sounds
* fix melee hit sound cutting off
* window threshold sounds and remove `destroySound` it literally doesnt exist
(cherry picked from commit 818b07ecf8)
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Server.ImmovableRod;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class ImmovableRodComponent : Component
|
|
{
|
|
public int MobCount = 0;
|
|
|
|
[DataField("hitSound")]
|
|
public SoundSpecifier Sound = new SoundCollectionSpecifier("MetalSlam");
|
|
|
|
[DataField("hitSoundProbability")]
|
|
public float HitSoundProbability = 0.1f;
|
|
|
|
[DataField("minSpeed")]
|
|
public float MinSpeed = 10f;
|
|
|
|
[DataField("maxSpeed")]
|
|
public float MaxSpeed = 35f;
|
|
|
|
/// <remarks>
|
|
/// Stuff like wizard rods might want to set this to false, so that they can set the velocity themselves.
|
|
/// </remarks>
|
|
[DataField("randomizeVelocity")]
|
|
public bool RandomizeVelocity = true;
|
|
|
|
/// <summary>
|
|
/// Overrides the random direction for an immovable rod.
|
|
/// </summary>
|
|
[DataField("directionOverride")]
|
|
public Angle DirectionOverride = Angle.Zero;
|
|
|
|
/// <summary>
|
|
/// With this set to true, rods will automatically set the tiles under them to space.
|
|
/// </summary>
|
|
[DataField("destroyTiles")]
|
|
public bool DestroyTiles = true;
|
|
}
|