Cluwne smite (#13367)
This commit is contained in:
41
Content.Shared/Cluwne/CluwneComponent.cs
Normal file
41
Content.Shared/Cluwne/CluwneComponent.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using Robust.Shared.Audio;
|
||||
using Content.Shared.Chat.Prototypes;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Shared.Cluwne;
|
||||
|
||||
[RegisterComponent]
|
||||
[NetworkedComponent]
|
||||
public sealed class CluwneComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// timings for giggles and knocks.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public TimeSpan DamageGiggleCooldown = TimeSpan.FromSeconds(2);
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float KnockChance = 0.05f;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float GiggleRandomChance = 0.1f;
|
||||
|
||||
[DataField("emoteId", customTypeSerializer: typeof(PrototypeIdSerializer<EmoteSoundsPrototype>))]
|
||||
public string? EmoteSoundsId = "Cluwne";
|
||||
|
||||
/// <summary>
|
||||
/// Amount of time cluwne is paralyzed for when falling over.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float ParalyzeTime = 2f;
|
||||
|
||||
/// <summary>
|
||||
/// Sound specifiers for honk and knock.
|
||||
/// </summary>
|
||||
[DataField("spawnsound")]
|
||||
public SoundSpecifier SpawnSound = new SoundPathSpecifier("/Audio/Items/bikehorn.ogg");
|
||||
|
||||
[DataField("knocksound")]
|
||||
public SoundSpecifier KnockSound = new SoundPathSpecifier("/Audio/Items/airhorn.ogg");
|
||||
}
|
||||
Reference in New Issue
Block a user