;---------------------------------------------------------------------------
[Statedef 155000]
type    = A
movetype= H
physics = N
sprpriority = 4
velset = 0,0

[State 155000]
type = screenbound
trigger1 = 1
value = 0
movecamera = 0

[State 155000]
type = NotHitBy
trigger1 = 1
value = SCA

[State 155000]
type = AssertSpecial
trigger1 = 1
flag = invisible
flag2 = noshadow
flag3 = globalnoshadow

[State 155000]
type = lifeset
triggerall = name != "Omega Tom Hanks"
trigger1 = 1
value = 0
ignorehitpause = 1

[State 155000]
type = powerset
triggerall = name != "Omega Tom Hanks"
trigger1 = 1
value = 0
ignorehitpause = 1

[State 155000]
type = SelfState
triggerall = name = "Omega Tom Hanks"
trigger1 = time >= 0
trigger2 = var(39) != gametime
value = 0
ctrl = 1
ignorehitpause = 1

[state 155000]
type = varset
triggerall = name != "Omega Tom Hanks"
trigger1 = ishelper && time = 0
v = 6
value = prevstateno

[state 155000]
type = varset
triggerall = name != "Omega Tom Hanks"
trigger1 = ishelper && time = 0
v = 7
value = anim

[State 155000]
type = ChangeAnim
trigger1 = time = 0 && !ishelper
value = 5070

[State 155000]
type = Changestate
triggerall = name != "Omega Tom Hanks"
trigger1 = !alive
value = 104010

[state 155000]
type = changestate
trigger1 = IfElse((ishelper),(time>=1),(time>=2))
value = IfElse((ishelper),155001,0)

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[Statedef 155001]
type    = U
movetype= I
physics = N
sprpriority = 4

[State 155001]
type = lifeset
triggerall = name != "Omega Tom Hanks"
trigger1 = 1
value = 0
ignorehitpause = 1

[State 155001]
type = lifeadd
triggerall = name != "Omega Tom Hanks"
trigger1 = 1
value = -9999999999999999999999
absolute = 1
ignorehitpause = 1

[State 155001]
type = powerset
triggerall = name != "Omega Tom Hanks"
trigger1 = 1
value = 0
ignorehitpause = 1

[State 155001]
type = SelfState
triggerall = name = "Omega Tom Hanks"
trigger1 = time >= 0
trigger2 = var(39) != gametime
value = 0
ctrl = 1
ignorehitpause = 1

[State 155001]
type = AssertSpecial
trigger1 = 1
flag = invisible
flag2 = noshadow
flag3 = globalnoshadow

[State 155001]
type = assertspecial
trigger1 = name != "Omega Tom Hanks"
flag = nostandguard
flag2 = nocrouchguard
flag3 = noairguard
ignorehitpause = 1

[State 155001]
type = Projectile
trigger1 = time <=1 && ishelper
attr = C,ST
projanim = var(7)
projhitanim = -1
projpriority = 9999999999
projsprpriority = 5
projremove = 1
projid = 154555
projremovetime = 100
postype = p2
offset = 0,250
velocity = 0
animtype  = hard
damage    = 0
numhits = 0
getpower = 0,0
givepower = 0,0
hitflag = MAFLPD
guardflag =
pausetime = 10,10
sparkno = -1
sparkxy = 0,0
hitsound   = -1
guard.sparkno = -1
guardsound = -1
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -10,-10
air.velocity = -10,-10
fall = 1
air.fall = 1
fall.recover = 0
p1stateno = var(6)
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 155001]
type = Projectile
trigger1 =enemynear,time>=146&&enemynear,name="Omega Tom Hanks"&&ishelper&&root,alive
trigger1 =!(root,HitDefAttr=SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT,AA,AT,AP)&&(root,stateno!=[40,52])
trigger1 =numprojid(154555)=0
attr = C,ST
projanim = var(7)
projhitanim = -1
projpriority = 9999999999
projsprpriority = 5
projremove = 1
projid = 154555
projremovetime = 100
postype = p2
offset = 0,250
velocity = 0
animtype  = hard
damage    = 0
numhits = 0
getpower = 0,0
givepower = 0,0
hitflag = MAFLPD
guardflag =
pausetime = 10,10
sparkno = -1
sparkxy = 0,0
hitsound   = -1
guard.sparkno = -1
guardsound = -1
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -10,-10
air.velocity = -10,-10
fall = 1
air.fall = 1
fall.recover = 0
p1stateno = (enemynear,time>=148)*40;40
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 155001]
type = NotHitBy
trigger1 = 1
value = SCA

[State 155001]
type = PosSet
trigger1 = ishelper
Y = 5000

[State 155001]
type = ChangeState
trigger1 = !ishelper
value = 0

[State 155001]
type = destroyself
trigger1 = roundstate!=2||root,alive=0||enemynear,name="Omega Tom Hanks"&&enemynear,stateno!=320
;trigger2 = enemynear,name="Omega Tom Hanks"&&time>=30
