diff --git a/Content.Server/ADT/ComponentalActions/EntitySystems/ComponentalActions.Abilities.cs b/Content.Server/ADT/ComponentalActions/EntitySystems/ComponentalActions.Abilities.cs index 4f6c832a546..a1121f324d5 100644 --- a/Content.Server/ADT/ComponentalActions/EntitySystems/ComponentalActions.Abilities.cs +++ b/Content.Server/ADT/ComponentalActions/EntitySystems/ComponentalActions.Abilities.cs @@ -107,6 +107,7 @@ using Robust.Shared.Timing; using Robust.Shared.Utility; using Robust.Server.GameObjects; +using System.Threading; namespace Content.Server.ComponentalActions.EntitySystems; @@ -413,15 +414,17 @@ private void OnElectrionPulse(EntityUid uid, ElectrionPulseActComponent componen { if (args.Handled) return; - _chat.TrySendInGameICMessage(uid, "щёлкает пальцами", InGameICChatType.Emote, ChatTransmitRange.Normal); + _chat.TrySendInGameICMessage(uid, "щёлкает пальцами", InGameICChatType.Emote, ChatTransmitRange.HideChat); _light.SetEnabled(uid, true); _light.SetColor(uid, Color.FromHex("#a83da8")); _light.SetRadius(uid, 1.7f); _light.SetEnergy(uid, 160f); - _audio.PlayPvs(component.IgniteSound, uid); + var despawn = AddComp(uid); despawn.Lifetime = 2.1f; + Thread.Sleep(2000); //2 секунды задержка + _audio.PlayPvs(component.IgniteSound, uid); // // Создаем таймер для задержки // System.Timers.Timer timer = new System.Timers.Timer(); @@ -441,7 +444,7 @@ private void OnElectrionPulse(EntityUid uid, ElectrionPulseActComponent componen // }; // timer.Start(); - // args.Handled = true; + args.Handled = true; } // //OnElectrionPulseAction(uid, component); diff --git a/Content.Shared/ADT/ComponentalActions/Components/ElectrionPulseActComponets.cs b/Content.Shared/ADT/ComponentalActions/Components/ElectrionPulseActComponets.cs index 66853c8a178..5a9ac573a5c 100644 --- a/Content.Shared/ADT/ComponentalActions/Components/ElectrionPulseActComponets.cs +++ b/Content.Shared/ADT/ComponentalActions/Components/ElectrionPulseActComponets.cs @@ -18,7 +18,7 @@ public sealed partial class ElectrionPulseActComponent : Component /// Radius of objects that will be ignited if flammable. /// [DataField] - public float IgnitionRadius = 4f; + public float IgnitionRadius = 5f; [DataField("lifetime")] public float Lifetime = 5f; @@ -41,19 +41,19 @@ public sealed partial class ElectrionPulseActComponent : Component [DataField, ViewVariables(VVAccess.ReadWrite)] public int MaxBoltCount = 5; - /// - /// The maximum radius of the passive electrocution effect - /// scales with stability - /// - [DataField, ViewVariables(VVAccess.ReadWrite)] - public float MaxElectrocuteRange = 7f; + // /// + // /// The maximum radius of the passive electrocution effect + // /// scales with stability + // /// + // [DataField, ViewVariables(VVAccess.ReadWrite)] + // public float MaxElectrocuteRange = 7f; - /// - /// The maximum amount of damage the electrocution can do - /// scales with severity - /// - [DataField, ViewVariables(VVAccess.ReadWrite)] - public float MaxElectrocuteDamage = 20f; + // /// + // /// The maximum amount of damage the electrocution can do + // /// scales with severity + // /// + // [DataField, ViewVariables(VVAccess.ReadWrite)] + // public float MaxElectrocuteDamage = 20f; /// /// The maximum amount of time the electrocution lasts @@ -66,7 +66,7 @@ public sealed partial class ElectrionPulseActComponent : Component /// Radius of objects that will be ignited if flammable. /// [DataField] - public SoundSpecifier IgniteSound = new SoundPathSpecifier("/Audio/Magic/rumble.ogg"); + public SoundSpecifier IgniteSound = new SoundPathSpecifier("/Audio/Magic/forcewall.ogg"); [ViewVariables(VVAccess.ReadWrite)] public float Severity = 0.3f; diff --git a/Resources/Prototypes/ADT/Actions/componental_actions.yml b/Resources/Prototypes/ADT/Actions/componental_actions.yml index c68e8e76344..469e4f81f5a 100644 --- a/Resources/Prototypes/ADT/Actions/componental_actions.yml +++ b/Resources/Prototypes/ADT/Actions/componental_actions.yml @@ -105,12 +105,9 @@ components: - type: InstantAction icon: - sprite: /Textures/ADT/Interface/alerts.rsi - state: levitation + sprite: /Textures/ADT/Interface/Alerts/evaporation.rsi + state: evaporation itemIconStyle: BigAction checkCanInteract: false event: !type:CompElectrionPulseActionEvent useDelay: 5 - - - diff --git a/Resources/Textures/ADT/Interface/Alerts/evaporation.rsi/evaporation.png b/Resources/Textures/ADT/Interface/Alerts/evaporation.rsi/evaporation.png new file mode 100644 index 00000000000..cb0c33788dd Binary files /dev/null and b/Resources/Textures/ADT/Interface/Alerts/evaporation.rsi/evaporation.png differ diff --git a/Resources/Textures/ADT/Interface/Alerts/evaporation.rsi/meta.json b/Resources/Textures/ADT/Interface/Alerts/evaporation.rsi/meta.json new file mode 100644 index 00000000000..20ea4c36280 --- /dev/null +++ b/Resources/Textures/ADT/Interface/Alerts/evaporation.rsi/meta.json @@ -0,0 +1,14 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Made by discord:Schrodinger71, for Adventure Time", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "evaporation" + } + ] + }