Button&door sounds, sound looping bugfixes, positional sound bugfixes + low pass filter on distant sounds, submarine collision improvements, controller trigger bugfix, humans walk/run more slowly in water

This commit is contained in:
Regalis
2015-10-04 14:49:05 +03:00
parent 46e862216b
commit 0be4ad4f84
66 changed files with 317 additions and 222 deletions
@@ -75,7 +75,7 @@ namespace Subsurface.Items.Components
light = new LightSource(item.Position, 100.0f, Color.White);
isActive = true;
IsActive = true;
//lightColor = new Color(ToolBox.GetAttributeVector4(element, "color", Vector4.One));
}
@@ -124,7 +124,7 @@ namespace Subsurface.Items.Components
public override void Draw(SpriteBatch spriteBatch, bool editing)
{
if (!isActive)
if (!IsActive)
{
light.Color = Color.Transparent;
}
@@ -144,10 +144,10 @@ namespace Subsurface.Items.Components
switch (connection.Name)
{
case "toggle":
isActive = !isActive;
IsActive = !IsActive;
break;
case "set_state":
isActive = (signal != "0");
IsActive = (signal != "0");
break;
}
}