
; Show blood when hit


_unit = _this

_AnimationName = ""
_Type = "Billboard"
_TimerPeriod = 120
_RotationVelocity = 0
_AnimationPhase = [0]
_RandomDirectionPeriod = 0
_RandomDirectionIntensity = 0
_OnTimer = ""
_BeforeDestroy = ""
_Object = _unit
_ShapeName = "cl_water"
_LifeTime = 0.5 + random(0.5)
_Weight = 80
_Volume = 30
_Rubbing = 0
_Size = [0.03,0.05]
_Color = [[0.8,0.1,0.1,1],[0.8,0.1,0.1,0]]

_dmg = getDammage _unit
#Wait
@!alive _unit
? !alive _unit : exit
@(getDammage _unit) != _dmg
_dmg = getDammage _unit


drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, 0.5, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, [0.3,1], _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
~0.01
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, 0.5, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, [0.3,1], _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
~0.01
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, 0.5, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, [0.3,1], _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
~0.01
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, _LifeTime, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, _Size, _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
drop [_ShapeName, _AnimationName, _Type, _TimerPeriod, 0.5, [0,0,0.5], [random(3)-1.5,random(3)-1.5,random(2)], _RotationVelocity, _Weight, _Volume, _Rubbing, [0.3,1], _Color, _AnimationPhase, _RandomDirectionPeriod, _RandomDirectionIntensity, _OnTimer, _BeforeDestroy, _Object]
~0.01

goto "Wait"