statuseffect setvalue, new diving suit sprite & character slowdown, welded door sprite

This commit is contained in:
Regalis
2015-09-26 00:41:43 +03:00
parent 53e729ea11
commit da00b083ed
21 changed files with 137 additions and 57 deletions

View File

@@ -237,6 +237,7 @@ namespace Subsurface
soundIndex = AmbientSoundManager.flowSounds[index].Loop(soundIndex, soundVolume, Position, 2000.0f);
flowForce = Vector2.Zero;
lerpedFlowForce = Vector2.Lerp(lerpedFlowForce, flowForce, 0.05f);
if (open == 0.0f) return;
@@ -253,8 +254,6 @@ namespace Subsurface
UpdateRoomToRoom(deltaTime);
}
lerpedFlowForce = Vector2.Lerp(lerpedFlowForce, flowForce, 0.05f);
if (FlowForce.Length() > 150.0f && flowTargetHull != null && flowTargetHull.Volume < flowTargetHull.FullVolume)
{
//UpdateFlowForce();

View File

@@ -532,9 +532,9 @@ namespace Subsurface
stream.Dispose();
}
catch
catch (Exception e)
{
DebugConsole.ThrowError("Loading submarine ''" + file + "'' failed!");
DebugConsole.ThrowError("Loading submarine ''" + file + "'' failed! ("+e.Message+")");
return null;
}
}
@@ -545,9 +545,9 @@ namespace Subsurface
doc = XDocument.Load(file);
}
catch
catch (Exception e)
{
DebugConsole.ThrowError("Loading submarine ''" + file + "'' failed!");
DebugConsole.ThrowError("Loading submarine ''" + file + "'' failed! (" + e.Message + ")");
return null;
}
}