; Vega's Cage States
;---------------------------------------------------------------------------
; Cage
[Statedef 30000]
movetype = I
anim = 30000
velset = 0,0
ctrl = 0

[State 30000, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 30000, PlayerPush]
type = PlayerPush
trigger1 = 1
value = 0

[State 30000, sprpriority]
type = sprpriority
trigger1 = 1
value = -10

[State 30000, Invisible]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State 30000, VelSet]
type = VelSet
trigger1 = Time = 10
y = 10

[State 30000, PlaySnd]
type = PlaySnd
trigger1 = Time > 10
trigger1 = Vel Y > 0
trigger1 = Pos Y >= -10
value = 6, 0
channel = 5

[State 30000, EnvShake]
type = EnvShake
trigger1 = Time > 10
trigger1 = Vel Y > 0
trigger1 = Pos Y >= -10
time = 50
freq = 100
ampl = -5
phase = 10

[State 30000, Cage]
type = RemoveExplod
trigger1 = Time > 10
trigger1 = Vel Y > 0
trigger1 = Pos Y >= -10

[State 30000, 3]
type = ChangeState
trigger1 = Time > 10
trigger1 = Vel Y > 0
trigger1 = Pos Y >= -10
value = 30010

;---------------------------------------------------------------------------
; Cage Pos -1280
[State 30000, Cage Bottom]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30000
pos = -1280,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = -1280,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = -1280,-160
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage Top]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30020
pos = -1280,-320
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

;---------------------------------------------------------------------------
; Cage Pos -640
[State 30000, Cage Bottom]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30000
pos = -640,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = -640,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = -640,-160
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage Top]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30020
pos = -640,-320
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

;---------------------------------------------------------------------------
; Cage Pos 0
[State 30000, Cage Bottom]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30000
pos = 0,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = 0,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = 0,-160
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage Top]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30020
pos = 0,-320
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

;---------------------------------------------------------------------------
; Cage Pos 640
[State 30000, Cage Bottom]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30000
pos = 640,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = 640,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = 640,-160
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage Top]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30020
pos = 640,-320
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

;---------------------------------------------------------------------------
; Cage Land
[Statedef 30010]
movetype = I
anim = 30000
velset = 0,0
ctrl = 0

[State 30000, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 30010, PlayerPush]
type = PlayerPush
trigger1 = 1
value = 0

[State 30010, sprpriority]
type = sprpriority
trigger1 = 1
value = -10

[State 30010, Invisible]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State 30010, PosSet]
type = PosSet
trigger1 = Time = 0
y = -10

;---------------------------------------------------------------------------
; Cage Pos -1280
[State 30000, Cage Bottom]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30000
pos = -1280,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = -1280,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = -1280,-160
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage Top]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30020
pos = -1280,-320
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

;---------------------------------------------------------------------------
; Cage Pos -640
[State 30010, Cage Bottom]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30000
pos = -640,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30010, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = -640,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30010, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = -640,-160
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30010, Cage Top]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30020
pos = -640,-320
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

;---------------------------------------------------------------------------
; Cage Pos 0
[State 30010, Cage Bottom]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30000
pos = 0,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30010, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = 0,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30010, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = 0,-160
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30010, Cage Top]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30020
pos = 0,-320
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

;---------------------------------------------------------------------------
; Cage Pos 640
[State 30000, Cage Bottom]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30000
pos = 640,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = 640,0
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30010
pos = 640,-160
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

[State 30000, Cage Top]
type = Explod
trigger1 = Time = 0
ignorehitpause = 1
id = 30000
anim = 30020
pos = 640,-320
postype = p1
bindtime = -1
sprpriority = -5
ownpal = 1

;---------------------------------------------------------------------------
