[Statedef -2]
;-------------------------------------------------------------------------------
[State 0, DisplayToClipboard]
type = DisplayToClipboard
trigger1 = !ishelper
text = "damage:%d,sv0:%d,lifevar:%d"
params = gethitvar(damage),sysvar(0),ceil(sysfvar(0))
ignorehitpause = 1
persistent = 1
;-------------------------------------------------------------------------------
[State ]
type = Explod
triggerall = !ishelper&&roundstate = [0,1]
trigger1 = !NumExplod(101989)
anim = 988893
id = 101989
postype = Left
pos = 2 + (TeamSide = 2) * 216,180
bindtime = -1
removetime = -1
scale = 0.25,0.25
ownpal = 1
sprpriority=9999999999
ontop = 1
supermovetime = 999999999999
pausemovetime = 999999999999
ignorehitpause = 1

[State ]
type = RemoveExplod
triggerall = !ishelper
trigger1 = roundstate != [0,1]
ID = 101989
ignorehitpause=1

[State 0, StateTypeSet]
type = StateTypeSet
triggerall = !ishelper
trigger1 = movetype = H
movetype = I
ignorehitpause = 1

[State ]
type=ctrlset
trigger1=!ishelper
value=(roundstate=3)
ignorehitpause=1

[State ]
type = Assertspecial
trigger1 = !ishelper
flag = nostandguard
flag2 = nocrouchguard
flag3 = noairguard
ignorehitpause = 1

[State ]
type = Assertspecial
trigger1 = !ishelper
flag = nokoslow
ignorehitpause = 1

[State , –³“G]
type = Nothitby
triggerall = !ishelper
trigger1 = roundstate != 2
value = SCA
ignorehitpause = 1

[State ]
type = NotHitBy
triggerall = !ishelper
trigger1 = sysvar(0)
value = SCA,AA,AP,AT
time = 30
ignorehitpause = 1

[State , –³“G]
type = varset
triggerall = !ishelper
trigger1 = !sysvar(0)
trigger1 = gethitvar(damage)
sysvar(0) = 1
ignorehitpause = 1

[State , –³“G]
type = varset
triggerall = !ishelper
trigger1 = sysvar(0)
trigger1 = gametime%100 = 0
sysvar(0) = 0
ignorehitpause = 1

[State ]
type = powerset
trigger1 = !ishelper
value = powermax
ignorehitpause = 1

[State ]
type = lifeset
trigger1 = ishelper
value = lifemax
ignorehitpause = 1

[State ]
type = Screenbound
trigger1 = ishelper
value = 0
ignorehitpause = 1

[State ]
type = AssertSpecial
trigger1 = ishelper
flag = Noshadow
ignorehitpause = 1

[state a]
type = posset
triggerall = !Ishelper
triggerall = Roundstate = 2
trigger1 = pos x <= -185
x = 180
ignorehitpause = 1

[state a]
type = posset
triggerall = !Ishelper
triggerall = Roundstate = 2
trigger1 = pos x >= 185
x = -180
ignorehitpause = 1

[State ]
type = Turn
triggerall = !Ishelper
triggerall = Roundstate = 2
trigger1 = gethitvar(damage)
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State -2, ŽžŽ~‚ß–³Ž‹]
type = Pause
triggerall = !ishelper
trigger1 = 1
time = 9999999999999
movetime = 9999999999999
ignorehitpause = 1

[State -2, ŽžŽ~‚ß–³Ž‹]
type = Superpause
triggerall = !ishelper
trigger1 = 1
anim = -1
time = 9999999999999
movetime = 9999999999999
unhittable = 0
darken = 0
p2defmul = 1
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State 0, LifeSet]
type = LifeSet
triggerall = !ishelper&&alive
trigger1 = sysfvar(0) <= 1199
value = ifelse(roundstate=2,lifemax-sysfvar(0),lifemax)
ignorehitpause = 1

[State 0, LifeSet]
type = LifeSet
triggerall = !ishelper
trigger1 = !alive
trigger2 = sysfvar(0) >= 1200
value = 0
ignorehitpause = 1

[State ]
type = varset
triggerall = !ishelper
trigger1 = roundstate != 2
trigger2 = enemynear,numhelper >= 5
trigger3 = enemynear,stateno = 120
trigger4 = enemynear,stateno = 5150
sysfvar(0) = 0
ignorehitpause = 1

[State ]
type = varadd
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = sysfvar(0) = [0,400]
trigger1 = gethitvar(damage)
trigger1 = enemynear,life <= enemynear,lifemax
trigger1 = enemynear,movetype = A
sysfvar(0) = 25+random%10
ignorehitpause = 1

[State ]
type = varadd
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = sysfvar(0) = [400,800]
trigger1 = gethitvar(damage)
trigger1 = enemynear,movetype = A
trigger1 = enemynear,hitdefattr = SCA, AT, AP, AA
trigger1 = enemynear,hitpausetime
trigger1 = enemynear,alive != 1
sysfvar(0) = 20+random%9
ignorehitpause = 1

[State ]
type = varadd
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = sysfvar(0) = [800,1100]
trigger1 = gethitvar(damage)
trigger1 = enemynear,movetype = A
trigger1 = enemynear,hitdefattr = SCA, AT, AP, AA
trigger1 = enemynear,hitpausetime = [1,30]
trigger1 = enemynear,palno >=12
sysfvar(0) = 15+random%8
ignorehitpause = 1

[State ]
type = varadd
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = sysfvar(0) = [1100,1200]
trigger1 = gethitvar(damage)
trigger1 = enemynear,movetype = A
trigger1 = enemynear,hitdefattr = SCA, AT, AP, AA
trigger1 = enemynear,hitpausetime >= 10000000
trigger1 = enemynear,life <= 1
trigger1 = enemynear,gethitvar(damage) != 0
sysfvar(0) = 5+random%3
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State ]
type = Helper
triggerall = !ishelper
trigger1 = numhelper(420) = 0
name = "anti-pause"
ID = 420
stateno = 420
Persistent = 0
postype = p1
pos = 0,0
keyctrl = 0
ownpal = 1
helpertype = player
supermovetime = 9999999
pausemovetime = 9999999
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State 0, SelfState]
type = SelfState
triggerall = !ishelper
trigger1 = sysvar(1) != gametime+29
trigger2 = movereversed
value = anim
ignorehitpause = 1

[State 0, SelfState]
type = SelfState
triggerall = !ishelper
triggerall = roundstate > 2
trigger1 = anim = 69420
trigger2 = anim = 5150
trigger3 = anim = 181
trigger4 = anim = 170
trigger5 = anim = 191
trigger6 = anim = 5150
trigger7 = anim = 4000
value = ifelse(anim=69420,69420,anim)
ignorehitpause = 1

[State 0, SelfState]
type = SelfState
triggerall = !ishelper
trigger1 = hitpausetime
value = 160000
ignorehitpause = 1

[State begone forced declaration]
type = assertspecial
triggerall = !ishelper
trigger1 = roundstate > 2
flag = noko
ignorehitpause = 1

[State 0, SelfState]
type = SelfState
trigger1 = ishelper(420)
value = 420
ignorehitpause = 1
;-------------------------------------------------------------------------------
[Statedef -3]

[State ]
type = varset
trigger1 = !ishelper
trigger2 = ishelper
sysvar(1) = gametime+29
ignorehitpause = 1
