Release 1.10.5.0 - Autumn Update 2025
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user