Всякие твики (#467)
* tomato juice no longer slippery * flashbang rework * add starting gear support for flashbang rework * flash size and charges tweak * night and thermal vision tweaks * night vision is turned off by default * some size tweaks * cleanup * sunglasses and hardsuits tweak
This commit is contained in:
@@ -4,6 +4,7 @@ using Content.Shared.Flash.Components;
|
||||
using Content.Server.Light.EntitySystems;
|
||||
using Content.Server.Popups;
|
||||
using Content.Server.Stunnable;
|
||||
using Content.Shared._White.BuffedFlashGrenade;
|
||||
using Content.Shared.Charges.Components;
|
||||
using Content.Shared.Charges.Systems;
|
||||
using Content.Shared.Eye.Blinding.Components;
|
||||
@@ -38,6 +39,7 @@ namespace Content.Server.Flash
|
||||
[Dependency] private readonly TagSystem _tag = default!;
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
[Dependency] private readonly StatusEffectsSystem _statusEffectsSystem = default!;
|
||||
[Dependency] private readonly FlashSoundSuppressionSystem _flashSoundSuppressionSystem = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -152,7 +154,8 @@ namespace Content.Server.Flash
|
||||
}
|
||||
}
|
||||
|
||||
public void FlashArea(Entity<FlashComponent?> source, EntityUid? user, float range, float duration, float slowTo = 0.8f, bool displayPopup = false, float probability = 1f, SoundSpecifier? sound = null)
|
||||
// WD edit
|
||||
public void FlashArea(Entity<FlashComponent?> source, EntityUid? user, float range, float duration, float slowTo = 0.8f, bool displayPopup = false, float probability = 1f, SoundSpecifier? sound = null, bool forceStun = false)
|
||||
{
|
||||
var transform = Transform(source);
|
||||
var mapPosition = _transform.GetMapCoordinates(transform);
|
||||
@@ -175,6 +178,9 @@ namespace Content.Server.Flash
|
||||
|
||||
// They shouldn't have flash removed in between right?
|
||||
Flash(entity, user, source, duration, slowTo, displayPopup);
|
||||
|
||||
if (forceStun) // WD
|
||||
_flashSoundSuppressionSystem.Stun(entity, duration);
|
||||
}
|
||||
|
||||
_audio.PlayPvs(sound, source, AudioParams.Default.WithVolume(1f).WithMaxDistance(3f));
|
||||
|
||||
Reference in New Issue
Block a user