OBT/1.2.0(Spring Update)

Sync with Upstream
This commit is contained in:
NotAlwaysTrue
2026-04-25 13:25:41 +08:00
committed by GitHub
parent 5207b381b7
commit 59bc21973a
421 changed files with 24090 additions and 11391 deletions
@@ -49,6 +49,13 @@ namespace Barotrauma
}
}
/// <summary>
/// A multiplier for the sound range for the purposes of displaying the target on sonar.
/// E.g. a value of 10 would mean the sonar can detect the target from x10 further than monsters.
/// </summary>
public float SoundRangeOnSonarMultiplier { get; private set; } = 1.0f;
public float SightRange
{
get { return sightRange; }
@@ -206,6 +213,7 @@ namespace Barotrauma
MinSoundRange = element.GetAttributeFloat("minsoundrange", 0f);
MaxSightRange = element.GetAttributeFloat("maxsightrange", SightRange);
MaxSoundRange = element.GetAttributeFloat("maxsoundrange", SoundRange);
SoundRangeOnSonarMultiplier = element.GetAttributeFloat(nameof(SoundRangeOnSonarMultiplier), 1.0f);
FadeOutTime = element.GetAttributeFloat("fadeouttime", FadeOutTime);
Static = element.GetAttributeBool("static", Static);
StaticSight = element.GetAttributeBool("staticsight", StaticSight);