[statedef 0]
type=s
physics=s
sprpriority=0
[state ]
type=changeanim
trigger1=anim!=0&&anim!=5
trigger2=anim=5&&animtime=0
value=0
[state ]
type=velset
trigger1=time=0
y=0
[state ]
type=velset
trigger1=abs(vel x)<2
trigger2=time=4
x=0
[state ]
type=changestate
trigger1=!alive
value=5050
[statedef 10]
type=c
physics=c
anim=10
[state ]
type=velmul
trigger1=time=0
x=.75
[state ]
type=changestate
trigger1=animtime=0
value=11
[statedef 11]
type=c
physics=c
anim=11
sprpriority=0
[state ]
type=changeanim
trigger1=anim=6&&animtime=0
value=11
[statedef 12]
type=s
physics=s
anim=12
[state ]
type=changestate
trigger1=animtime=0
value=0
[statedef 20]
type=s
physics=s
sprpriority=0
[state ]
type=velset
trigger1=command="holdfwd"
x=const(velocity.walk.fwd.x)
[state ]
type=velset
trigger1=command="holdback"
x=const(velocity.walk.back.x)
[state ]
type=changeanim
triggerall=vel x>0
trigger1=anim!=20&&anim!=5
trigger2=anim=5&&animtime=0
value=20
[state ]
type=changeanim
triggerall=vel x<0
trigger1=anim!=21&&anim!=5
trigger2=anim=5&&animtime=0
value=21
[statedef 40]
type=s
physics=s
anim=40
ctrl=0
sprpriority=1
[state ]
type=varset
trigger1=time=0
sysvar(1)=0
[state ]
type=varset
trigger1=command="holdfwd"
sysvar(1)=1
[state ]
type=varset
trigger1=command="holdback"
sysvar(1)=-1
[state ]
type=velset
trigger1=animtime=0
x=ifelse(sysvar(1)=0,const(velocity.jump.neu.x),ifelse(sysvar(1)=1,const(velocity.jump.fwd.x),const(velocity.jump.back.x)))
y=const(velocity.jump.y)
[state ]
type=velset
trigger1=animtime=0
trigger1=prevstateno=100
trigger1=sysvar(1)=1
x=const(velocity.runjump.fwd.x)
[state ]
type=changestate
trigger1=animtime=0
value=50
ctrl=1
[statedef 45]
type=a
physics=n
ctrl=0
velset=0,0
[state ]
type=changeanim
trigger1=selfanimexist(44)
value=44
[state ]
type=changeanim
trigger1=!selfanimexist(44)
value=41
[state ]
type=varset
trigger1=time=0
sysvar(1)=0
[state ]
type=varset
trigger1=command="holdfwd"
sysvar(1)=1
[state ]
type=varset
trigger1=command="holdback"
sysvar(1)=-1
[state ]
type=velset
trigger1=time=2
x=ifelse(sysvar(1)=0,const(velocity.airjump.neu.x),ifelse(sysvar(1)=1,const(velocity.airjump.fwd.x),const(velocity.airjump.back.x)))
y=const(velocity.airjump.y)
[state ]
type=changestate
trigger1=time=2
value=50
ctrl=1
[statedef 50]
type=a
physics=a
[state ]
type=varset
trigger1=time=0
sysvar(1)=0
[state ]
type=changeanim
trigger1=time=0
value=ifelse((vel x)=0,41,ifelse((vel x)>0,42,43))
[state ]
type=changeanim
trigger1=vel y>-2
trigger1=selfanimexist(anim+3)
persistent=0
value=anim+3
[statedef 51]
type=a
physics=a
[state ]
type=null
trigger1=1
[statedef 52]
type=s
physics=s
ctrl=0
anim=47
[state ]
type=velset
trigger1=time=0
y=0
[state ]
type=posset
trigger1=time=0
y=0
[state ]
type=ctrlset
trigger1=time=3
value=1
[state ]
type=changestate
trigger1=animtime=0
value=0
ctrl=1
[statedef 100]
type=s
physics=s
anim=100
sprpriority=1
[state ]
type=velset
trigger1=1
x=const(velocity.run.fwd.x)
[state ]
type=assertspecial
trigger1=1
flag=nowalk
[state ]
type=assertspecial
trigger1=1
flag=noautoturn
[state ]
type=changestate
trigger1=command!="holdfwd"
value=0
[statedef 105]
type=a
physics=a
ctrl=0
anim=105
sprpriority=1
[state ]
type=velset
trigger1=time=0
x=const(velocity.run.back.x)
y=const(velocity.run.back.y)
[state ]
type=ctrlset
trigger1=time=2
value=1
[state ]
type=changestate
trigger1=vel y>0
trigger1=pos y>=0
value=106
[statedef 106]
type=s
physics=s
ctrl=0
anim=47
[state ]
type=velset
trigger1=time=0
y=0
[state ]
type=posset
trigger1=time=0
y=0
[state ]
type=makedust
trigger1=time=2
pos=-5,-2
spacing=1
[state ]
type=changestate
trigger1=time=7
value=0
ctrl=1
[statedef 110]
type=s
physics=n
[state ]
type=ctrlset
trigger1=time=0
value=0
[state ]
type=changeanim
trigger1=time=0
value=110
[state ]
type=hitby
trigger1=time=0
value=sca,nt,st,ht
time=30
[state ]
type=velset
trigger1=time=0
x=0
z=-7
[state ]
type=velmul
trigger1=1
z=0.8
[state ]
type=velset
trigger1=animtime=-8
z=0
[state ]
type=ctrlset
trigger1=animtime=0
value=1
[state ]
type=changestate
trigger1=animtime=0
value=0
[statedef 115]
type=s
physics=n
[state ]
type=ctrlset
trigger1=time=0
value=0
[state ]
type=changeanim
trigger1=time=0
value=110
[state ]
type=hitby
trigger1=time=0
value=sca,nt,st,ht
time=30
[state ]
type=velset
trigger1=time=0
x=0
z=7
[state ]
type=velmul
trigger1=1
z=0.8
[state ]
type=velset
trigger1=animtime=-8
z=0
[state ]
type=ctrlset
trigger1=animtime=0
value=1
[state ]
type=changestate
trigger1=animtime=0
value=0
[statedef 120]
type=u
physics=u
[state ]
type=changeanim
trigger1=time=0
value=120+(statetype=c)+(statetype=a)*2
[state ]
type=statetypeset
trigger1=time=0&&statetype=s
physics=s
[state ]
type=statetypeset
trigger1=time=0&&statetype=c
physics=c
[state ]
type=statetypeset
trigger1=time=0&&statetype=a
physics=a
[state ]
type=statetypeset
trigger1=statetype=s&&command="holddown"
statetype=c
physics=c
[state ]
type=statetypeset
trigger1=statetype=c&&command!="holddown"
statetype=s
physics=s
[state ]
type=changestate
trigger1=animtime=0
value=130+(statetype=c)+(statetype=a)*2
[state ]
type=changestate
trigger1=command!="holdback"
trigger2=!inguarddist
value=140
[statedef 130]
type=s
physics=s
[state ]
type=changeanim
trigger1=anim!=130
value=130
[state ]
type=changestate
trigger1=command="holddown"
value=131
[state ]
type=changestate
trigger1=command!="holdback"
trigger2=!inguarddist
value=140
[statedef 131]
type=c
physics=c
[state ]
type=changeanim
trigger1=anim!=131
value=131
[state ]
type=changestate
trigger1=command!="holddown"
value=130
[state ]
type=changestate
trigger1=command!="holdback"
trigger2=!inguarddist
value=140
[statedef 132]
type=a
physics=n
[state ]
type=changeanim
trigger1=anim!=132
value=132
[state ]
type=veladd
trigger1=1
y=const(movement.yaccel)
[state ]
type=varset
trigger1=1
sysvar(0)=(pos y>=0)&&(vel y>0)
[state ]
type=velset
trigger1=sysvar(0)
y=0
[state ]
type=posset
trigger1=sysvar(0)
y=0
[state ]
type=changestate
trigger1=sysvar(0)
trigger1=command="holdback"
trigger1=inguarddist
value=130
[state ]
type=changestate
trigger1=sysvar(0)
value=52
[state ]
type=changestate
trigger1=command!="holdback"
trigger2=!inguarddist
value=140
[statedef 140]
type=u
physics=u
ctrl=1
[state ]
type=changeanim
trigger1=time=0
value=140+(statetype=c)+(statetype=a)*2
[state ]
type=statetypeset
trigger1=time=0&&statetype=s
physics=s
[state ]
type=statetypeset
trigger1=time=0&&statetype=c
physics=c
[state ]
type=statetypeset
trigger1=time=0&&statetype=a
physics=a
[state ]
type=statetypeset
trigger1=statetype=s&&command="holddown"
statetype=c
physics=c
[state ]
type=statetypeset
trigger1=statetype=c&&command!="holddown"
statetype=s
physics=s
[statedef 150]
type=s
movetype=h
physics=n
velset=0,0
[state ]
type=changeanim
trigger1=1
value=150
[state ]
type=changestate
trigger1=hitshakeover
value=151+2*(command="holddown")
[state ]
type=statetypeset
trigger1=statetype=s&&command="holddown"
statetype=c
physics=c
[state ]
type=statetypeset
trigger1=statetype=c&&command!="holddown"
statetype=s
physics=s
[state ]
type=forcefeedback
trigger1=time=0
waveform=square
time=3
[statedef 151]
type=s
movetype=h
physics=s
anim=150
[state ]
type=hitvelset
trigger1=time=0
x=1
[state ]
type=velset
trigger1=time=gethitvar(slidetime)
trigger2=hitover
x=0
[state ]
type=ctrlset
trigger1=time=gethitvar(ctrltime)
value=1
[state ]
type=statetypeset
trigger1=statetype=s&&command="holddown"
statetype=c
physics=c
[state ]
type=statetypeset
trigger1=statetype=c&&command!="holddown"
statetype=s
physics=s
[state ]
type=changestate
trigger1=hitover
value=130
ctrl=1
[statedef 152]
type=c
movetype=h
physics=n
velset=0,0
[state ]
type=changeanim
trigger1=1
value=151
[state ]
type=changestate
trigger1=hitshakeover
value=151+2*(command="holddown")
[state ]
type=statetypeset
trigger1=statetype=s&&command="holddown"
statetype=c
physics=c
[state ]
type=statetypeset
trigger1=statetype=c&&command!="holddown"
statetype=s
physics=s
[state ]
type=forcefeedback
trigger1=time=0
waveform=square
time=4
[statedef 153]
type=c
movetype=h
physics=c
anim=151
[state ]
type=hitvelset
trigger1=time=0
x=1
[state ]
type=velset
trigger1=time=gethitvar(slidetime)
trigger2=hitover
x=0
[state ]
type=ctrlset
trigger1=time=gethitvar(ctrltime)
value=1
[state ]
type=statetypeset
trigger1=statetype=s&&command="holddown"
statetype=c
physics=c
[state ]
type=statetypeset
trigger1=statetype=c&&command!="holddown"
statetype=s
physics=s
[state ]
type=changestate
trigger1=hitover
value=131
ctrl=1
[statedef 154]
type=a
movetype=h
physics=n
velset=0,0
[state ]
type=changeanim
trigger1=1
value=152
[state ]
type=changestate
trigger1=hitshakeover
value=155
[state ]
type=forcefeedback
trigger1=time=0
waveform=square
time=4
[statedef 155]
type=a
movetype=h
physics=n
anim=152
[state ]
type=hitvelset
trigger1=time=0
x=1
y=1
[state ]
type=veladd
trigger1=1
y=const(movement.yaccel)
[state ]
type=ctrlset
trigger1=time=gethitvar(ctrltime)
value=1
[state ]
type=varset
trigger1=1
sysvar(0)=(pos y>=0)&&(vel y>0)
[state ]
type=velset
trigger1=sysvar(0)
y=0
[state ]
type=posset
trigger1=sysvar(0)
y=0
[state ]
type=changestate
trigger1=sysvar(0)
trigger1=command="holdback"
trigger1=inguarddist
value=130
[state ]
type=changestate
trigger1=sysvar(0)
value=52
[statedef 170]
type=s
ctrl=0
anim=170
velset=0,0
[state ]
type=nothitby
trigger1=1
value=sca
time=1
[statedef 175]
type=s
ctrl=0
velset=0,0
[state ]
type=changestate
trigger1=time=0
trigger1=!selfanimexist(175)
value=170
[state ]
type=changeanim
trigger1=time=0
value=175
[state ]
type=nothitby
trigger1=1
value=sca
time=1
[statedef 190]
type=s
ctrl=0
velset=0,0
[state ]
type=changeanim
trigger1=selfanimexist(190)
value=190
[state ]
type=changestate
trigger1=time=0
value=191
[statedef 191]
type=s
ctrl=0
[state ]
type=changestate
trigger1=time=0
value=0
[statedef 5000]
type=s
movetype=h
physics=n
velset=0,0
[state ]
type=changeanim
trigger1=time=0
trigger1=gethitvar(animtype)!=[3,5]
value=ifelse((gethitvar(groundtype)=1),5000,5010)+gethitvar(animtype)
[state ]
type=changeanim
trigger1=time=0
trigger1=gethitvar(animtype)=[3,5]
value=5030
[state ]
type=changeanim
trigger1=time=0
trigger1=(gethitvar(animtype)=[4,5])&&(selfanimexist(5047+gethitvar(animtype)))
value=5047+gethitvar(animtype)
[state ]
type=changeanim
trigger1=time>0
value=anim
[state ]
type=statetypeset
trigger1=time=0
trigger1=gethitvar(yvel)!=0||gethitvar(fall)
trigger2=pos y!=0
statetype=a
[state ]
type=changestate
trigger1=hitshakeover
trigger1=gethitvar(yvel)=0&&!gethitvar(fall)
value=5001
[state ]
type=changestate
trigger1=hitshakeover
value=5030
[state ]
type=forcefeedback
trigger1=anim=5000
trigger2=anim=5010
persistent=0
time=6
waveform=square
[state ]
type=forcefeedback
trigger1=anim=5001
trigger2=anim=5011
persistent=0
time=8
waveform=sinesquare
ampl=110,-1,-.3
[state ]
type=forcefeedback
trigger1=anim=5012
trigger2=anim=5002
trigger3=anim=5030
persistent=0
time=15
waveform=sinesquare
ampl=140
[statedef 5001]
type=s
movetype=h
physics=s
[state ]
type=hitvelset
trigger1=time=0
x=1
[state ]
type=changeanim
trigger1=animtime=0
value=5005+gethitvar(animtype)+(gethitvar(groundtype)=2)*10
[state ]
type=velmul
trigger1=time>=gethitvar(slidetime)
x=.6
[state ]
type=velset
trigger1=hitover
x=0
[state ]
type=defencemulset
trigger1=hitover
value=1
[state ]
type=changestate
trigger1=hitover
value=0
ctrl=1
[statedef 5010]
type=c
movetype=h
physics=n
velset=0,0
[state ]
type=changeanim
trigger1=time=0
trigger1=gethitvar(animtype)!=[3,5]
value=5020+gethitvar(animtype)
[state ]
type=changeanim
trigger1=time=0
trigger1=gethitvar(animtype)=[3,5]
value=5030
[state ]
type=changeanim
trigger1=time=0
trigger1=(gethitvar(animtype)=[4,5])&&(selfanimexist(5047+gethitvar(animtype)))
value=5047+gethitvar(animtype)
[state ]
type=changeanim
trigger1=time>0
value=anim
[state ]
type=statetypeset
triggerall=time=0
trigger1=gethitvar(yvel)!=0||gethitvar(fall)
trigger2=pos y!=0
statetype=a
[state ]
type=changestate
trigger1=hitshakeover
trigger1=gethitvar(yvel)=0&&!gethitvar(fall)
value=5011
[state ]
type=changestate
trigger1=hitshakeover
value=5030
[state ]
type=forcefeedback
trigger1=anim=5020
persistent=0
time=6
waveform=square
[state ]
type=forcefeedback
trigger1=anim=5021
persistent=0
time=8
waveform=sinesquare
ampl=110,-1,-.3
[state ]
type=forcefeedback
trigger1=anim=5022
persistent=0
time=15
waveform=sinesquare
ampl=140
[statedef 5011]
type=c
movetype=h
physics=c
[state ]
type=hitvelset
trigger1=time=0
x=1
[state ]
type=changeanim
trigger1=animtime=0
value=5025+gethitvar(animtype)
[state ]
type=velmul
trigger1=time>=gethitvar(slidetime)
x=.6
[state ]
type=velset
trigger1=hitover
x=0
[state ]
type=defencemulset
trigger1=hitover
value=1
[state ]
type=changestate
trigger1=hitover
value=11
ctrl=1
[statedef 5020]
type=a
movetype=h
physics=n
velset=0,0
[state ]
type=changeanim
trigger1=time=0
trigger1=gethitvar(animtype)!=[3,5]
value=ifelse((gethitvar(airtype)=1),5000,5010)+gethitvar(animtype)
[state ]
type=changeanim
trigger1=time=0
trigger1=gethitvar(animtype)=[3,5]
value=5030
[state ]
type=changeanim
trigger1=time=0
trigger1=(gethitvar(animtype)=[4,5])&&(selfanimexist(5047+gethitvar(animtype)))
value=5047+gethitvar(animtype)
[state ]
type=changeanim
trigger1=time>0
value=anim
[state ]
type=changestate
trigger1=hitshakeover
value=5030
[state ]
type=forcefeedback
trigger1=anim=5000
trigger2=anim=5010
persistent=0
time=6
waveform=square
[state ]
type=forcefeedback
trigger1=anim=5001
trigger2=anim=5011
persistent=0
time=8
waveform=sinesquare
ampl=110,-1,-.3
[state ]
type=forcefeedback
trigger1=anim=5012
trigger2=anim=5002
trigger3=anim=5030
trigger4=anim=[5051,5059]
persistent=0
time=15
waveform=sinesquare
ampl=140
[statedef 5030]
type=a
movetype=h
physics=n
ctrl=0
[state ]
type=veladd
trigger1=1
y=gethitvar(yaccel)
[state ]
type=hitvelset
trigger1=time=0
x=1
y=1
[state ]
type=changestate
triggerall=!hitfall
trigger1=hitover
trigger2=vel y>0
trigger2=pos y>=10
value=5040
[state ]
type=changestate
triggerall=hitfall
trigger1=hitover
trigger2=vel y>0
trigger2=pos y>=10
value=5050
[state ]
type=changestate
trigger1=animtime=0
value=5035
[statedef 5035]
type=a
movetype=h
physics=n
[state ]
type=changeanim
trigger1=time=0
trigger1=selfanimexist(5035)
trigger1=anim!=[5051,5059]
trigger1=anim!=5090
value=5035
[state ]
type=veladd
trigger1=1
y=gethitvar(yaccel)
[state ]
type=changestate
triggerall=!hitfall
trigger1=hitover
trigger2=animtime=0
trigger3=vel y>0
trigger3=pos y>=10
trigger4=time=0
trigger4=anim!=5035
value=5040
[state ]
type=changestate
triggerall=hitfall
trigger1=hitover
trigger2=animtime=0
trigger3=vel y>0
trigger3=pos y>=10
trigger4=time=0
trigger4=anim!=5035
value=5050
[statedef 5040]
type=a
movetype=h
physics=n
[state ]
type=changestate
trigger1=!alive
value=5050
[state ]
type=changeanim
trigger1=animtime=0
trigger1=anim!=5040
trigger2=time=0
trigger2=anim!=5035
value=5040
[state ]
type=ctrlset
trigger1=hitover
value=1
[state ]
type=statetypeset
trigger1=hitover
movetype=i
[state ]
type=veladd
trigger1=1
y=gethitvar(yaccel)
[state ]
type=changestate
trigger1=vel y>0
trigger1=pos y>=0
value=52
[statedef 5050]
type=a
movetype=h
physics=n
[state ]
type=changeanim
trigger1=animtime=0
trigger1=anim=5035
trigger2=time=0
trigger2=anim!=5035
trigger2=(anim!=[5051,5059])&&(anim!=[5061,5069])
trigger2=anim!=5090
value=5050
[state ]
type=changeanim
trigger1=anim=[5050,5059]
trigger1=vel y>=ifelse(anim=5050,1,-2)
trigger1=selfanimexist(anim+10)
value=anim+10
persistent=0
[state ]
type=veladd
trigger1=1
y=gethitvar(yaccel)
[state ]
type=changestate
triggerall=vel y>0
triggerall=pos y>=-20
triggerall=alive
triggerall=canrecover
trigger1=command="recovery"
value=5200
[state ]
type=changestate
triggerall=vel y>-1
triggerall=alive
triggerall=canrecover
trigger1=command="recovery"
value=5210
[state ]
type=changestate
trigger1=vel y>0
trigger1=pos y>=ifelse((anim=[5051,5059])||(anim=[5061,5069]),0,25)
value=5100
[statedef 5070]
type=a
movetype=h
physics=n
velset=0,0
[state ]
type=changeanim
trigger1=1
value=5070
[state ]
type=changestate
trigger1=hitshakeover
value=5071
[state ]
type=forcefeedback
trigger1=time=0
time=12
waveform=sinesquare
ampl=140
[statedef 5071]
type=a
movetype=h
physics=n
[state ]
type=hitvelset
trigger1=time=0
x=1
y=1
[state ]
type=veladd
trigger1=1
y=gethitvar(yaccel)
[state ]
trigger1=vel y>0
trigger1=pos y>=15
type=changestate
value=5110
[statedef 5080]
type=l
movetype=h
physics=n
velset=0,0
[state ]
type=varset
trigger1=time=0
sysvar(2)=ifelse(gethitvar(yvel)=0,5080,5090)
[state ]
type=varadd
trigger1=time=0
trigger1=(anim=[5081,5089])||(anim=[5111,5119])
trigger1=selfanimexist(sysvar(2)+(anim%10))
sysvar(2)=anim%10
[state ]
type=varset
trigger1=time=0
trigger1=sysvar(2)=5090
trigger1=!selfanimexist(5090)
sysvar(2)=5030
[state ]
type=changeanim
trigger1=1
value=sysvar(2)
[state ]
type=changestate
trigger1=hitshakeover
trigger1=gethitvar(yvel)=0
value=5081
[state ]
type=changestate
trigger1=hitshakeover
trigger1=gethitvar(yvel)!=0
value=5030
[statedef 5081]
type=l
movetype=h
physics=c
[state ]
type=hitvelset
trigger1=time=0
x=1
[state ]
type=velset
trigger1=hitover
x=0
[state ]
type=varset
trigger1=time=0
sysvar(0)=1
[state ]
type=changestate
trigger1=hitover
value=5110
[statedef 5100]
type=l
movetype=h
physics=n
[state ]
type=velset
trigger1=time=0
trigger1=gethitvar(fall.yvel)=0
trigger1=vel x>1
x=1
[state ]
type=fallenvshake
trigger1=time=0
[state ]
type=varset
trigger1=time=0
sysvar(1)=floor(vel y)
[state ]
type=changeanim
triggerall=time=0
trigger1=(anim!=[5051,5059])&&(anim!=[5061,5069])
trigger2=!selfanimexist(5100+(anim%10))
value=5100
[state ]
type=changeanim
trigger1=time=0
trigger1=(anim=[5051,5059])||(anim=[5061,5069])
trigger1=selfanimexist(5100+(anim%10))
value=5100+(anim%10)
[state ]
type=posset
trigger1=time=0
y=0
[state ]
type=velset
trigger1=time=0
y=0
[state ]
type=velmul
trigger1=time=0
x=0.75
[state ]
type=changestate
trigger1=time=0
trigger1=gethitvar(fall.yvel)=0
value=5110
[state ]
type=gamemakeanim
trigger1=time=1
value=60+(sysvar(1)>5)+(sysvar(1)>14)
pos=0,0
under=sysvar(1)<=14
[state ]
type=hitfalldamage
trigger1=time=3
[state ]
type=playsnd
trigger1=time=1
value=f7,(sysvar(1)>5)+(sysvar(1)>14)
[state ]
type=posfreeze
trigger1=1
[state ]
type=changestate
trigger1=animtime=0
value=5101
[state ]
type=forcefeedback
trigger1=time=0
waveform=sinesquare
ampl=128,-3,-.2,.005
time=20
[statedef 5101]
type=l
movetype=h
physics=n
[state ]
type=changeanim
triggerall=time=0
trigger1=anim!=[5101,5109]
trigger2=!selfanimexist(5160+(anim%10))
value=5160
[state ]
type=changeanim
triggerall=time=0
trigger1=anim=[5101,5109]
trigger1=selfanimexist(5160+(anim%10))
value=5160+(anim%10)
[state ]
type=hitfallvel
trigger1=time=0
[state ]
type=posset
trigger1=time=0
y=20
[state ]
type=veladd
trigger1=1
y=.4
[state ]
trigger1=vel y>0
trigger1=pos y>=12
type=changestate
value=5110
[statedef 5110]
type=l
movetype=h
physics=n
[state ]
type=fallenvshake
trigger1=time=0
[state ]
type=changeanim
persistent=0
trigger1=selfanimexist(5110+(anim%10))
trigger1=anim=[5081,5089]
value=5110+(anim%10)
[state ]
type=changeanim
triggerall=time=0
triggerall=anim!=[5110,5119]
trigger1=anim!=[5161,5169]
trigger2=!selfanimexist(5170+(anim%10))
value=5170
[state ]
type=changeanim
triggerall=time=0
triggerall=anim!=[5110,5119]
trigger1=anim=[5161,5169]
trigger1=selfanimexist(5170+(anim%10))
value=5170+(anim%10)
[state ]
type=hitfalldamage
trigger1=time=0
[state ]
type=posset
trigger1=time=0
y=0
[state ]
type=varset
trigger1=time=0
trigger1=gethitvar(fall.yvel)!=0
sysvar(1)=floor(vel y)
[state ]
type=playsnd
trigger1=time=0
trigger1=!sysvar(0)
value=f7,(sysvar(1)>5)+(sysvar(1)>14)
[state ]
type=gamemakeanim
trigger1=time=0
trigger1=!sysvar(0)
value=60+(sysvar(1)>5)+(sysvar(1)>14)
pos=0,0
under=sysvar(1)<=14
[state ]
type=velset
trigger1=time=0
y=0
[state ]
type=changeanim
persistent=0
triggerall=anim=[5171,5179]
triggerall=selfanimexist(5110+(anim%10))
trigger1=animtime=0
trigger2=sysvar(0)
value=5110+(anim%10)
[state ]
type=changeanim
persistent=0
triggerall=anim!=[5111,5119]
trigger1=animtime=0
trigger2=sysvar(0)
value=5110
[state ]
type=changestate
triggerall=!alive
trigger1=animtime=0
trigger2=sysvar(0)
trigger3=anim=[5110,5119]
value=5150
[state ]
type=varset
trigger1=sysvar(0)
trigger1=time=0
sysvar(0)=0
[state ]
type=velmul
trigger1=1
x=0.85
[state ]
type=forcefeedback
trigger1=alive
trigger1=time=0
time=8
ampl=240
waveform=sine
[state ]
type=forcefeedback
trigger1=!alive
trigger1=time=0
ampl=200,7,-.467
time=30
waveform=sine
[statedef 5120]
type=l
movetype=i
physics=n
[state ]
type=changeanim
triggerall=time=0
trigger1=anim!=[5111,5119]
trigger2=!selfanimexist(5120+(anim%10))
value=5120
[state ]
type=changeanim
triggerall=time=0
trigger1=anim=[5111,5119]
trigger1=selfanimexist(5120+(anim%10))
value=5120+(anim%10)
[state ]
type=velset
trigger1=time=0
x=0
[state ]
type=nothitby
trigger1=1
value=sca
time=1
[state ]
type=hitfallset
trigger1=animtime=0
value=1
[state ]
type=nothitby
trigger1=animtime=0
value=,nt,st,ht
time=12
[state ]
type=nothitby
trigger1=animtime=0
value2=sca
time=3
[state ]
type=changestate
trigger1=animtime=0
value=0
ctrl=1
[statedef 5150]
type=l
movetype=h
physics=n
sprpriority=-3
[state ]
type=changeanim
triggerall=time=0
triggerall=selfanimexist(5140)
trigger1=(anim!=[5111,5119])&&(anim!=[5171,5179])
trigger2=!selfanimexist(5140+(anim%10))
value=5140
[state ]
type=changeanim
trigger1=time=0
trigger1=(anim=[5111,5119])||(anim=[5171,5179])
trigger1=selfanimexist(5140+(anim%10))
value=5140+(anim%10)
[state ]
type=changeanim
persistent=0
trigger1=matchover=1
trigger1=anim=[5140,5149]
trigger1=selfanimexist(anim+10)
value=anim+10
[state ]
type=changeanim
trigger1=time=0
trigger1=anim!=[5140,5159]
trigger1=anim!=[5110,5119]
value=5110
[state ]
type=velmul
trigger1=1
x=0.85
[state ]
type=velset
trigger1=vel x<.05
persistent=0
x=0
[state ]
type=nothitby
trigger1=1
value=sca
time=1
[statedef 5200]
type=a
movetype=h
physics=n
[state ]
type=changeanim
trigger1=anim=5035
trigger1=animtime=0
value=5050
[state ]
type=veladd
trigger1=1
y=gethitvar(yaccel)
[state ]
type=selfstate
trigger1=vel y>0
trigger1=pos y>=10
value=5201
[statedef 5201]
type=a
movetype=h
physics=a
anim=5200
[state ]
type=turn
trigger1=time=0
trigger1=p2dist x<-5
[state ]
type=velset
trigger1=time=0
x=-.15
y=-3.5
[state ]
type=posset
trigger1=time=0
y=0
[state ]
type=nothitby
trigger1=1
value=sca
time=1
[state ]
type=palfx
trigger1=time=0
time=3
add=128,128,128
[state ]
type=gamemakeanim
trigger1=time=1
value=60
pos=0,0
under=1
[statedef 5210]
type=a
movetype=i
physics=n
anim=5210
ctrl=0
[state ]
type=palfx
trigger1=time=0
time=3
add=128,128,128
[state ]
type=posfreeze
trigger1=time=0
value=4
[state ]
type=turn
trigger1=time=0
trigger1=p2dist x<-20
[state ]
type=velmul
trigger1=time=4
x=.8
y=.8
[state ]
type=veladd
trigger1=time=4
y=-4.5
[state ]
type=velmul
trigger1=time=4
trigger1=vel y>0
y=.5
[state ]
type=veladd
trigger1=time=4
trigger1=vel y>-3
y=-2
[state ]
type=veladd
trigger1=time=4
trigger1=vel y>-2
y=-1
[state ]
type=veladd
trigger1=time=4
trigger1=command="holdup"
y=-2
[state ]
type=veladd
trigger1=time=4
trigger1=command="holddown"
y=1.5
[state ]
type=velmul
trigger1=time=4
trigger1=command="holdfwd"
x=1
[state ]
type=veladd
trigger1=time=4
trigger1=command="holdback"
x=-1
[state ]
type=nothitby
trigger1=time=0
value=sca
time=15
[state ]
type=ctrlset
trigger1=time=20
value=1
[state ]
type=veladd
trigger1=time>=4
y=.35
[state ]
type=changestate
trigger1=vel y>0
trigger1=pos y>=0
value=52
ctrl=1
[statedef 5500]
type=s
ctrl=0
anim=5300
velset=0,0
[state ]
type=changeanim
trigger1=time=0
trigger1=selfanimexist(5500)
value=5500
[statedef 5900]
type=s
[state ]
type=varrangeset
trigger1=roundsexisted=0
value=0
[state ]
type=varrangeset
trigger1=roundsexisted=0
fvalue=0
[state ]
type=changestate
trigger1=roundno=1
value=190
