if (predict)
{
- _audioSystem.PlayPredicted(component.Sound, component.Owner, user, component.Sound.Params.AddVolume(-2f));
+ _audioSystem.PlayPredicted(component.Sound, component.Owner, user);
}
else if (_netMan.IsServer)
{
// don't predict sounds that client couldn't have played already
- _audioSystem.PlayPvs(component.Sound, component.Owner, component.Sound.Params.AddVolume(-2f));
+ _audioSystem.PlayPvs(component.Sound, component.Owner);
}
}
}
if (time < FlyTime)
{
- _thrownSystem.LandComponent(comp, physics);
+ _thrownSystem.LandComponent(uid, comp, physics);
}
else
{
if (physics.Deleted)
return;
- _thrownSystem.LandComponent(comp, physics);
+ _thrownSystem.LandComponent(uid, comp, physics);
});
}
_gravity.IsWeightless(user.Value, userPhysics))
{
var msg = new ThrowPushbackAttemptEvent();
- RaiseLocalEvent(physics.Owner, msg);
+ RaiseLocalEvent(uid, msg);
if (!msg.Cancelled)
_physics.ApplyLinearImpulse(user.Value, -impulseVector * pushbackRatio, body: userPhysics);
using Robust.Shared.Physics;
using Robust.Shared.Physics.Dynamics;
using System.Linq;
+using Content.Shared.Sound.Components;
using Robust.Shared.Physics.Components;
using Robust.Shared.Physics.Events;
using Robust.Shared.Physics.Systems;
EntityManager.RemoveComponent<ThrownItemComponent>(uid);
}
- public void LandComponent(ThrownItemComponent thrownItem, PhysicsComponent physics)
+ public void LandComponent(EntityUid uid, ThrownItemComponent thrownItem, PhysicsComponent physics)
{
_physics.SetBodyStatus(physics, BodyStatus.OnGround);
- if (thrownItem.Deleted || Deleted(thrownItem.Owner) || _containerSystem.IsEntityInContainer(thrownItem.Owner)) return;
+ if (thrownItem.Deleted || Deleted(uid) || _containerSystem.IsEntityInContainer(uid))
+ return;
- var landing = thrownItem.Owner;
+ var landing = uid;
// Unfortunately we can't check for hands containers as they have specific names.
- if (thrownItem.Owner.TryGetContainerMan(out var containerManager) &&
+ if (uid.TryGetContainerMan(out var containerManager) &&
EntityManager.HasComponent<SharedHandsComponent>(containerManager.Owner))
{
EntityManager.RemoveComponent(landing, thrownItem);
license: "CC-BY-NC-SA-3.0"
copyright: "Amateur foley and audio editing by Bright0."
source: "https://github.com/Bright0"
+
- files: ["teleport_arrival.ogg", "teleport_departure.ogg"]
license: "CC-BY-SA-3.0"
copyright: "tgstation"
source: "https://github.com/tgstation/tgstation/commit/906fb0682bab6a0975b45036001c54f021f58ae7"
+
+- files: ["sadtrombone.ogg"]
+ license: "CC-BY-NC-SA-3.0"
+ copyright: "sadtrombone.ogg taken from Citadel Station."
+ source: "https://github.com/Citadel-Station-13/Citadel-Station-13/commit/35a1723e98a60f375df590ca572cc90f1bb80bd5"
+
+- files: ["box_deploy.ogg"]
+ license: "CC-BY-NC-SA-3.0"
+ copyright: "box_deploy.ogg taken from Citadel Station."
+ source: "https://github.com/Citadel-Station-13/Citadel-Station-13/commit/b604390f334343be80045d955705cf48ee056c61"
+
+- files: ["chime.ogg"]
+ license: "CC-BY-NC-SA-3.0"
+ copyright: "chime.ogg taken from Citadel Station."
+ source: "https://github.com/Citadel-Station-13/Citadel-Station-13/commit/b604390f334343be80045d955705cf48ee056c61"
bone_rattle.ogg licensed under CC0 1.0 and taken from spookymodem at https://freesound.org/people/spookymodem/sounds/202102/
-- files: ["sadtrombone.ogg"]
- license: "CC-BY-NC-SA-3.0"
- copyright: "sadtrombone.ogg taken from Citadel Station."
- source: "https://github.com/Citadel-Station-13/Citadel-Station-13/commit/35a1723e98a60f375df590ca572cc90f1bb80bd5"
-
The following sounds are taken from TGstation github (licensed under CC by 3.0):
demon_attack1.ogg: taken at https://github.com/tgstation/tgstation/commit/d4f678a1772007ff8d7eddd21cf7218c8e07bfc0
box_deploy.ogg and chime.ogg taken from Citadel Station at commit: https://github.com/Citadel-Station-13/Citadel-Station-13/commit/b604390f334343be80045d955705cf48ee056c61
-- files: ["box_deploy.ogg"]
- license: "CC-BY-NC-SA-3.0"
- copyright: "box_deploy.ogg taken from Citadel Station."
- source: "https://github.com/Citadel-Station-13/Citadel-Station-13/commit/b604390f334343be80045d955705cf48ee056c61"
-- files: ["chime.ogg"]
- license: "CC-BY-NC-SA-3.0"
- copyright: "chime.ogg taken from Citadel Station."
- source: "https://github.com/Citadel-Station-13/Citadel-Station-13/commit/b604390f334343be80045d955705cf48ee056c61"
\ No newline at end of file
+ - files:
+ - "drop.ogg"
+ license: "Royalty free"
+ copyright: "Sonniss.com - GDC 2016 - Game Audio Bundle - Levan Nadashvili - Soldier Footsteps - FS Concrete Soldier Crouch N02, mixed from stereo to mono"
+
+# Do not add to this list, I only did the above because yaml scheme validator doesn't like custom licenses.
- type: Clickable
- type: InteractionOutline
- type: MovedByPressure
+ - type: EmitSoundOnLand
+ sound:
+ path: /Audio/Effects/drop.ogg
+ params:
+ volume: 2
- type: DamageOnHighSpeedImpact
damage:
types: