Barotrauma
Barotrauma copied to clipboard
The Combat Diving Suit will override the higher ObstructVisionAmount of the Iron Helmet.
Discussed in https://github.com/FakeFishGames/Barotrauma/discussions/16571
Originally posted by zhu-rengong October 16, 2025
Disclaimers
- [X] I have searched the issue tracker to check if the issue has already been reported.
- [ ] My issue happened while using mods.
What happened?
https://github.com/user-attachments/assets/479af2aa-f300-45be-8a43-a3972089081c
This also cause the mod(eg. "Animated Arms: Adaptive Combat") to be incompatible with vanilla diving suits in this regard.
Take combatdivingsuit as an example, I recommend rewriting the code as follows for better compatibility:
Before
<StatusEffect type="OnWearing" target="Character" OxygenAvailable="-100.0" UseHullOxygen="false" />
<StatusEffect type="OnWearing" target="Character" ObstructVisionAmount="0.25" PressureProtection="5750.0" LowPassMultiplier="0.2" setvalue="true" disabledeltatime="true">
<Sound file="Content/Items/Diving/DivingSuitLoop1.ogg" range="250" loop="true"/>
<Sound file="Content/Items/Diving/DivingSuitLoop2.ogg" range="250" loop="true"/>
<TriggerAnimation Type="Walk" FileName="HumanWalkDivingSuit" priority="1" ExpectedSpecies="Human" />
<!-- high prio for run animation so e.g. affliction-based run animations won't make the character run faster -->
<TriggerAnimation Type="Run" FileName="HumanRunDivingSuit" priority="10" ExpectedSpecies="Human" />
</StatusEffect>
After
<StatusEffect type="OnWearing" target="Character" OxygenAvailable="-100.0" UseHullOxygen="false" />
<StatusEffect type="OnWearing" target="Character" PressureProtection="5750.0" LowPassMultiplier="0.2" setvalue="true" disabledeltatime="true">
<Sound file="Content/Items/Diving/DivingSuitLoop1.ogg" range="250" loop="true"/>
<Sound file="Content/Items/Diving/DivingSuitLoop2.ogg" range="250" loop="true"/>
<TriggerAnimation Type="Walk" FileName="HumanWalkDivingSuit" priority="1" ExpectedSpecies="Human" />
<!-- high prio for run animation so e.g. affliction-based run animations won't make the character run faster -->
<TriggerAnimation Type="Run" FileName="HumanRunDivingSuit" priority="10" ExpectedSpecies="Human" />
</StatusEffect>
<StatusEffect type="OnWearing" target="Character" ObstructVisionAmount="0.25" setvalue="true">
<Conditional ObstructVisionAmount="lt 0.25" />
</StatusEffect>
Reproduction steps
- Spawn a rifle with a scope for better bug observation.
- Spawn an iron helmet and a combat divingsuit (Pay attention to the spawning order, as it will affect the order in which items override the character's ObstructVisionAmount.)
- Equip the iron helmet and then aim down sight to observe the field of view. Then, equip the combat diving suit, the field of view will expand.
Bug prevalence
Happens every now and then
Single player or multiplayer?
Single player
-
No response
Version
v1.10.7.1 (Autumn Update 2025 Hotfix 3)
-
No response
Which operating system did you encounter this bug on?
Windows
Relevant error messages and crash reports
No response