Fix stuff
This commit is contained in:
@@ -116,7 +116,8 @@ namespace Content.Server.Cuffs.Components
|
|||||||
[DataField("startCuffSound")]
|
[DataField("startCuffSound")]
|
||||||
public SoundSpecifier StartCuffSound { get; set; } = new SoundPathSpecifier("/Audio/Items/Handcuffs/cuff_start.ogg");
|
public SoundSpecifier StartCuffSound { get; set; } = new SoundPathSpecifier("/Audio/Items/Handcuffs/cuff_start.ogg");
|
||||||
|
|
||||||
[DataField("endCuffSound")] public SoundSpecifier EndCuffSound { get; set; } = new SoundPathSpecifier("/Audio/Items/Handcuffs/cuff_end.ogg");
|
[DataField("endCuffSound")]
|
||||||
|
public SoundSpecifier EndCuffSound { get; set; } = new SoundPathSpecifier("/Audio/Items/Handcuffs/cuff_end.ogg");
|
||||||
|
|
||||||
[DataField("startBreakoutSound")]
|
[DataField("startBreakoutSound")]
|
||||||
public SoundSpecifier StartBreakoutSound { get; set; } = new SoundPathSpecifier("/Audio/Items/Handcuffs/cuff_breakout_start.ogg");
|
public SoundSpecifier StartBreakoutSound { get; set; } = new SoundPathSpecifier("/Audio/Items/Handcuffs/cuff_breakout_start.ogg");
|
||||||
|
|||||||
@@ -15,6 +15,6 @@ namespace Content.Server.Explosion.Components
|
|||||||
|
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
[DataField("sound", required: true)]
|
[DataField("sound", required: true)]
|
||||||
public SoundSpecifier? Sound { get; set; } = null;
|
public SoundSpecifier Sound { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace Content.Server.Nutrition.Components
|
|||||||
public float ParalyzeTime { get; set; } = 1f;
|
public float ParalyzeTime { get; set; } = 1f;
|
||||||
|
|
||||||
[DataField("sound")]
|
[DataField("sound")]
|
||||||
private SoundSpecifier _sound = new SoundCollectionSpecifier("desacration");
|
private SoundSpecifier _sound = new SoundCollectionSpecifier("desecration");
|
||||||
|
|
||||||
public void PlaySound()
|
public void PlaySound()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -129,8 +129,7 @@ namespace Content.Server.PDA
|
|||||||
case PDAUplinkBuyListingMessage buyMsg:
|
case PDAUplinkBuyListingMessage buyMsg:
|
||||||
{
|
{
|
||||||
var player = message.Session.AttachedEntity;
|
var player = message.Session.AttachedEntity;
|
||||||
if (player == null)
|
if (player == null) break;
|
||||||
break;
|
|
||||||
|
|
||||||
if (!_uplinkManager.TryPurchaseItem(_syndicateUplinkAccount, buyMsg.ItemId,
|
if (!_uplinkManager.TryPurchaseItem(_syndicateUplinkAccount, buyMsg.ItemId,
|
||||||
player.Transform.Coordinates, out var entity))
|
player.Transform.Coordinates, out var entity))
|
||||||
@@ -139,7 +138,8 @@ namespace Content.Server.PDA
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!player.TryGetComponent(out HandsComponent? hands) || !entity.TryGetComponent(out ItemComponent? item))
|
if (!player.TryGetComponent(out HandsComponent? hands) ||
|
||||||
|
!entity.TryGetComponent(out ItemComponent? item))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
hands.PutInHandOrDrop(item);
|
hands.PutInHandOrDrop(item);
|
||||||
|
|||||||
@@ -226,6 +226,7 @@ namespace Content.Server.Physics.Controllers
|
|||||||
// Walking on a tile.
|
// Walking on a tile.
|
||||||
var def = (ContentTileDefinition) _tileDefinitionManager[tile.Tile.TypeId];
|
var def = (ContentTileDefinition) _tileDefinitionManager[tile.Tile.TypeId];
|
||||||
soundToPlay = def.FootstepSounds.GetSound();
|
soundToPlay = def.FootstepSounds.GetSound();
|
||||||
|
if (string.IsNullOrEmpty(soundToPlay))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace Content.Server.Singularity.Components
|
|||||||
|
|
||||||
[ViewVariables] public int FireShotCounter;
|
[ViewVariables] public int FireShotCounter;
|
||||||
|
|
||||||
[ViewVariables] [DataField("fireSound")] public string FireSound = "/Audio/Weapons/emitter.ogg";
|
[ViewVariables] [DataField("fireSound")] public SoundSpecifier FireSound = new SoundPathSpecifier("/Audio/Weapons/emitter.ogg");
|
||||||
[ViewVariables] [DataField("boltType")] public string BoltType = "EmitterBolt";
|
[ViewVariables] [DataField("boltType")] public string BoltType = "EmitterBolt";
|
||||||
[ViewVariables] [DataField("powerUseActive")] public int PowerUseActive = 500;
|
[ViewVariables] [DataField("powerUseActive")] public int PowerUseActive = 500;
|
||||||
[ViewVariables] [DataField("fireBurstSize")] public int FireBurstSize = 3;
|
[ViewVariables] [DataField("fireBurstSize")] public int FireBurstSize = 3;
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ namespace Content.Server.Singularity.EntitySystems
|
|||||||
// TODO: Move to projectile's code.
|
// TODO: Move to projectile's code.
|
||||||
Timer.Spawn(3000, () => projectile.Delete());
|
Timer.Spawn(3000, () => projectile.Delete());
|
||||||
|
|
||||||
SoundSystem.Play(Filter.Pvs(component.Owner), component.FireSound, component.Owner,
|
SoundSystem.Play(Filter.Pvs(component.Owner), component.FireSound.GetSound(), component.Owner,
|
||||||
AudioHelpers.WithVariation(EmitterComponent.Variation).WithVolume(EmitterComponent.Volume).WithMaxDistance(EmitterComponent.Distance));
|
AudioHelpers.WithVariation(EmitterComponent.Variation).WithVolume(EmitterComponent.Volume).WithMaxDistance(EmitterComponent.Distance));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ using Content.Server.Atmos.Components;
|
|||||||
using Content.Server.Atmos.EntitySystems;
|
using Content.Server.Atmos.EntitySystems;
|
||||||
using Content.Server.GameTicking;
|
using Content.Server.GameTicking;
|
||||||
using Content.Shared.Atmos;
|
using Content.Shared.Atmos;
|
||||||
using Content.Shared.Sound;
|
|
||||||
using Robust.Shared.Audio;
|
using Robust.Shared.Audio;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.IoC;
|
using Robust.Shared.IoC;
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using Content.Server.DoAfter;
|
using Content.Server.DoAfter;
|
||||||
using Content.Server.Hands.Components;
|
using Content.Server.Hands.Components;
|
||||||
using Content.Server.Items;
|
using Content.Server.Items;
|
||||||
@@ -24,11 +29,6 @@ using Robust.Shared.Player;
|
|||||||
using Robust.Shared.Players;
|
using Robust.Shared.Players;
|
||||||
using Robust.Shared.Serialization.Manager.Attributes;
|
using Robust.Shared.Serialization.Manager.Attributes;
|
||||||
using Robust.Shared.ViewVariables;
|
using Robust.Shared.ViewVariables;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Content.Server.Storage.Components
|
namespace Content.Server.Storage.Components
|
||||||
{
|
{
|
||||||
@@ -401,8 +401,7 @@ namespace Content.Server.Storage.Components
|
|||||||
var playerTransform = player.Transform;
|
var playerTransform = player.Transform;
|
||||||
|
|
||||||
if (!playerTransform.Coordinates.InRange(Owner.EntityManager, ownerTransform.Coordinates, 2) ||
|
if (!playerTransform.Coordinates.InRange(Owner.EntityManager, ownerTransform.Coordinates, 2) ||
|
||||||
!ownerTransform.IsMapTransform &&
|
!ownerTransform.IsMapTransform && !playerTransform.ContainsEntity(ownerTransform))
|
||||||
!playerTransform.ContainsEntity(ownerTransform))
|
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -415,8 +414,7 @@ namespace Content.Server.Storage.Components
|
|||||||
}
|
}
|
||||||
|
|
||||||
var item = entity.GetComponent<ItemComponent>();
|
var item = entity.GetComponent<ItemComponent>();
|
||||||
if (item == null ||
|
if (item == null || !player.TryGetComponent(out HandsComponent? hands))
|
||||||
!player.TryGetComponent(out HandsComponent? hands))
|
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user