Release 1.10.5.0 - Autumn Update 2025

This commit is contained in:
Regalis11
2025-09-17 13:44:21 +03:00
parent d13836ce87
commit caa0326cf8
120 changed files with 2584 additions and 635 deletions
@@ -343,6 +343,9 @@ namespace Barotrauma
}
/// <summary>
/// Is the sub at the depth where it starts to take damage to appear due to the pressure?
/// </summary>
public bool AtDamageDepth
{
get
@@ -352,6 +355,18 @@ namespace Barotrauma
}
}
/// <summary>
/// Is the sub at the depth where cosmetic effects (e.g. camera shake) start to appear due to the pressure?
/// </summary>
public bool AtCosmeticDamageDepth
{
get
{
if (Level.Loaded == null || subBody == null) { return false; }
return RealWorldDepth > Level.Loaded.RealWorldCrushDepth + SubmarineBody.CosmeticDamageEffectThreshold && RealWorldDepth > RealWorldCrushDepth + SubmarineBody.CosmeticDamageEffectThreshold;
}
}
public bool IsRespawnShuttle =>
GameMain.NetworkMember?.RespawnManager is { } respawnManager && respawnManager.RespawnShuttles.Contains(this);