Adds security and clown outfits, and SoundEmitters (#253)

* ports clown and sec outfits

* bikehorn and soundemitters

* very smol bike horn

* working fine sounds

* Oh wow i can do it through github

Co-Authored-By: Pieter-Jan Briers <pieterjan.briers@gmail.com>

* fixes for review

* fixes prototype

* fixing entrypoint
This commit is contained in:
Injazz
2019-06-03 23:16:47 +05:00
committed by Pieter-Jan Briers
parent 1cfdfa12a0
commit c156af34c4
70 changed files with 353 additions and 32 deletions

View File

@@ -21,6 +21,8 @@ using Robust.Shared.Map;
using Robust.Shared.Maths;
using Robust.Shared.Players;
using Robust.Shared.Prototypes;
using Content.Server.GameObjects.Components.Sound;
using Content.Shared.GameObjects.Components.Inventory;
namespace Content.Server.GameObjects.EntitySystems
{
@@ -149,7 +151,16 @@ namespace Content.Server.GameObjects.EntitySystems
if (mover.StepSoundDistance > distanceNeeded)
{
mover.StepSoundDistance = 0;
PlayFootstepSound(transform.GridPosition);
if (mover.Owner.TryGetComponent<InventoryComponent>(out var inventory)
&& inventory.TryGetSlotItem<ItemComponent>(EquipmentSlotDefines.Slots.SHOES, out var item)
&& item.Owner.TryGetComponent<FootstepModifierComponent>(out var modifier))
{
modifier.PlayFootstep();
}
else
{
PlayFootstepSound(transform.GridPosition);
}
}
}
}