(bc739e38f) Added impact sounds to items (e.g. when dropped to the ground). Closes #841

This commit is contained in:
Joonas Rikkonen
2019-04-07 13:40:53 +03:00
parent d15a88c619
commit db754188ce
4 changed files with 72 additions and 10 deletions
@@ -191,6 +191,10 @@ namespace Barotrauma
protected set;
}
[Serialize("", false)]
public string ImpactSoundTag { get; private set; }
public override void DrawPlacing(SpriteBatch spriteBatch, Camera cam)
{
Vector2 position = Submarine.MouseToWorldGrid(cam, Submarine.MainSub);