Fixed IsInWater acting strangely

This commit is contained in:
Alex Noir
2017-12-20 18:54:00 +03:00
parent 20e583d816
commit 1fe71b5fe6
2 changed files with 39 additions and 35 deletions
@@ -175,11 +175,11 @@
<StatusEffect type="OnUse" target="Character" Health="-5.0" disabledeltatime="true">
<RequiredItem name="Medical Syringe" type="Container"/>
</StatusEffect>
<!-- InWater is horribly broken right now. https://github.com/Regalis11/Barotrauma/issues/187
<!-- InWater is horribly broken right now. https://github.com/Regalis11/Barotrauma/issues/187 -->
<StatusEffect type="InWater" target="This" Condition="0.0" setvalue="true">
<Sound file="Content/Items/Reactor/explosion.ogg"/>
<Explosion range="250.0" structuredamage="10" damage="20" stun="5" force="5.0"/>
</StatusEffect> -->
</StatusEffect>
</Throwable>
</Item>
@@ -515,7 +515,7 @@
</StatusEffect>
<!-- Here's a problem: if a chemical with delay is injected into more than one person, only the last person will get that delayed effect.
Everyone else gets off scott free! Woo!!!..... -->
<StatusEffect type="OnUse" target="Character" Oxygen="-15.0" Health="-1.0" duration="60.0" delay="20.0">
<StatusEffect type="OnUse" target="Character" Oxygen="-20.0" Health="-1.0" duration="60.0" delay="20.0">
<RequiredItem name="Medical Syringe" type="Container"/>
</StatusEffect>
</Throwable>