Fixed flare lightcomponent staying active after the flare burns out, OnActive statuseffects are applied to lightcomponents even if the item is inside an inventory/container (= flares won't stop burning if placed back to inventory)
This commit is contained in:
@@ -266,14 +266,15 @@
|
||||
<Throwable slots="Any,RightHand,LeftHand" holdpos="0,0" handle1="0,0" throwforce="4.0" aimpos="35,-10"/>
|
||||
|
||||
<LightComponent LightColor="1.0,0.0,0.0,1.0" Flicker="0.5" range="600" IsOn="false">
|
||||
<sprite texture="Content/Lights/light.png" sourcerect="33,0,31,39"/>
|
||||
|
||||
<StatusEffect type="OnUse" target="This" IsOn="true"/>
|
||||
|
||||
<StatusEffect type="OnActive" target="This" Condition="-0.5">
|
||||
<StatusEffect type="OnActive" target="This" Condition="-5.0">
|
||||
<ParticleEmitter particle="flare"/>
|
||||
<ParticleEmitter particle="bubbles"/>
|
||||
</StatusEffect>
|
||||
|
||||
<StatusEffect type="OnBroken" target="This" IsOn="false"/>
|
||||
|
||||
<sound file="flare.ogg" type="OnActive" range="800.0" loop="true"/>
|
||||
</LightComponent>
|
||||
</Item>
|
||||
|
||||
Reference in New Issue
Block a user