Release 1.9.7.0 - Summer Update 2025
This commit is contained in:
@@ -435,6 +435,13 @@ namespace Barotrauma
|
||||
{
|
||||
cam.OffsetAmount = targetOffsetAmount = item.Prefab.OffsetOnSelected * item.OffsetOnSelectedMultiplier;
|
||||
}
|
||||
else if (HeldItems.SelectMany(static item => item.GetComponents<Holdable>())
|
||||
.Where(static holdable => holdable.Aimable)
|
||||
.MaxOrNull(static holdable => holdable.CameraAimOffset) is float maxOffset
|
||||
&& maxOffset > 0f && IsKeyDown(InputType.Aim))
|
||||
{
|
||||
cam.OffsetAmount = targetOffsetAmount = maxOffset;
|
||||
}
|
||||
else if (SelectedItem != null && ViewTarget == null &&
|
||||
SelectedItem.Components.Any(ic => ic?.GuiFrame != null && ic.ShouldDrawHUD(this)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user