
;---------------------------------------------------------------------------
; States that are always executed (use statedef -2)
;---------------------------------------------------------------------------
[statedef -2]

[State 191]
type = StopSnd
trigger1 = RoundState = 2
channel = 1

[State -2]
type = SelfState
trigger1 = ishelper(2999)
value = 2999

[State -2]
type = changestate
trigger1 = Life = 0
value = 5150
[State -2]
type = PosSet
trigger1 = Life = 0
y = 0

[state -2]
type = helper
trigger1 = numhelper(2999) = 0
stateno = 2999
helpertype = player
name = "armor"
id = 2999
pos = 0,0
postype = p1
ownpal = 0
keyctrl = 0
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State -2]
type = NotHitBy
trigger1 = !ishelper
trigger1 = numhelper(2999) != 0
value = SCA
time = 2

[state -2]
type = lifeadd
triggerall = !ishelper
triggerall = numhelper(2999) != 0
triggerall = roundstate = 2
trigger1 = helper(2999),gethitvar(damage)
value = -5
ignorehitpause = 1

[state -2]
type = lifeadd
triggerall = !ishelper
triggerall = numhelper(2999) != 0
triggerall = roundstate = 2
trigger1 = gametime%5 = 0
value = 1
ignorehitpause = 1

;--------------------------------------------------------------
[statedef -3]

[State 706]
type = EnvColor
trigger1 = stateno = 5150
trigger1 = Time = 0
value = 255,0,0
time = 5

[State -3]
type = Explod
trigger1 = stateno = 5150
trigger1 = NumExplod(1000) = 0
anim = 1000
ID = 1000
removetime = -1
bindtime = 1 
random = 80,80
pos = 0,-90
vel = random%8*ifelse(random&2=0,1,-1),-random%15       
accel = 0,0.44      

[State -3]
type = Explod
trigger1 = stateno = 5150
trigger1 = NumExplod(1001) = 0
anim = 1001
ID = 1001
removetime = -1
bindtime = 1 
random = 80,80
pos = 0,-90
vel = random%8*ifelse(random&2=0,1,-1),-random%15       
accel = 0,0.44     

[State -3]
type = Explod
trigger1 = stateno = 5150
trigger1 = NumExplod(1002) = 0
anim = 1002
ID = 1002
removetime = -1
bindtime = 1 
random = 80,80
pos = 0,-90
vel = random%8*ifelse(random&2=0,1,-1),-random%15      
accel = 0,0.44      

[State -3]
type = Explod
trigger1 = stateno = 5150
trigger1 = NumExplod(1003) = 0
anim = 1003
ID = 1003
removetime = -1
bindtime = 1 
random = 80,80
pos = 0,-90
vel = random%8*ifelse(random&2=0,1,-1),-random%15       
accel = 0,0.44      
shadow = -2,-2,-2

[State -3]
type = Explod
trigger1 = stateno = 5150
trigger1 = NumExplod(1004) = 0
anim = 1004
ID = 1004
removetime = -1
bindtime = 1 
random = 80,80
pos = 0,-90
vel = random%8*ifelse(random&2=0,1,-1),-random%15       
accel = 0,0.44      

[State -3]
type = Explod
trigger1 = stateno = 5150
trigger1 = NumExplod(1005) = 0
anim = 1005
ID = 1005
removetime = -1
bindtime = 1 
random = 80,80
pos = 0,-90
vel = random%8*ifelse(random&2=0,1,-1),-random%15       
accel = 0,0.44      

[State -3]
type = Explod
trigger1 = stateno = 5150
trigger1 = NumExplod(1006) = 0
anim = 1006
ID = 1006
removetime = -1
bindtime = 1 
random = 80,80
pos = 0,-90
vel = random%8*ifelse(random&2=0,1,-1),-random%15       
accel = 0,0.44      


[State -3]
type = Explod
trigger1 = stateno = 5150
trigger1 = NumExplod(1010) = 0
anim = 1010
ID = 1010
removetime = -1
bindtime = 1 
random = 120,120
pos = 0,-90
vel = random%8*ifelse(random&2=0,1,-1),-random%10       
accel = 0,0.33      
sprpriority = 999

[State -3]
type = Explod
trigger1 = stateno = 5150
trigger1 = NumExplod(1011) = 0
anim = 1011
ID = 1011
removetime = -1
bindtime = 1 
random = 120,120
pos = 0,-90
vel = random%8*ifelse(random&2=0,1,-1),-random%10       
accel = 0,0.33      
sprpriority = 999

[State -3]
type = Explod
trigger1 = stateno = 5150
trigger1 = NumExplod(1012) = 0
anim = 1012
ID = 1012
removetime = -1
bindtime = 1 
random = 120,120
pos = 0,-90
vel = random%8*ifelse(random&2=0,1,-1),-random%10       
accel = 0,0.33      
sprpriority = 999

[State -3]
type = Explod
trigger1 = stateno = 5150
trigger1 = NumExplod(1013) = 0
anim = 1013
ID = 1013
removetime = -1
bindtime = 1 
random = 120,120
pos = 0,-90
vel = random%8*ifelse(random&2=0,1,-1),-random%10       
accel = 0,0.33      
sprpriority = 999




