;Artificial Intelligence Script

;Header

desc          = Player movimientos


;Muerte

:state=0,plrhealthless=1:camfov=-60,state=25
:state=25:timerstart,state=9
:state=29,timergreater=5:setvar=$CAZ 10
:state=29,timergreater=20:setvar=$CAZ 15
:state=29,timergreater=40:setvar=$CAZ 20
:state=29,timergreater=80:setvar=$CAZ 30
:state=29,timergreater=120:setvar=$CAZ 40
:state=29,timergreater=160:setvar=$CAZ 50
:state=29,timergreater=200:setvar=$CAZ 40,camshake=1000
:state=29,timergreater=240:setvar=$CAZ 55,camshake=2000
:state=29,timergreater=280:setvar=$CAZ 60,camshake=3000
:state=29,timergreater=290:setvar=$CAZ 59
:state=29,timergreater=300:setvar=$CAZ 58
:state=29,timergreater=310:setvar=$CAZ 57
:state=29,timergreater=320:setvar=$CAZ 56
:state=29,timergreater=340:setvar=$CAZ 55
:state=29,timergreater=1800:setvar=$CAZ 0
:state=29,timergreater=1801:state=0


;Adelante 

;:state=0,keypressed=17 1:plrwobble=60,sound=$0,state=2
;:state=2,keypressed=17 0:plrwobble=5,stopsound,state=0

:state=0,keypressed=17 1:timerstart,plrwobble=60,sound=$0,state=26
:state=26,timergreater=1:setvar=$CAZ 0
:state=26,timergreater=50:setvar=$CAZ -1
:state=26,timergreater=100:setvar=$CAZ -2
:state=26,timergreater=150:setvar=$CAZ -3
:state=26,timergreater=200:setvar=$CAZ -4
:state=26,timergreater=250:setvar=$CAZ -3
:state=26,timergreater=300:setvar=$CAZ -2
:state=26,timergreater=350:setvar=$CAZ -1
:state=26,timergreater=400:setvar=$CAZ 0
:state=26,timergreater=450:setvar=$CAZ 1
:state=26,timergreater=500:setvar=$CAZ 2
:state=26,timergreater=550:setvar=$CAZ 3
:state=26,timergreater=600:setvar=$CAZ 4
:state=26,timergreater=650:setvar=$CAZ 3
:state=26,timergreater=700:setvar=$CAZ 2
:state=26,timergreater=750:setvar=$CAZ 1,state=0
:state=26,keypressed=17 0:plrwobble=5,setvar=$CAZ 0,stopsound,state=0

;Atras

:state=0,keypressed=31 1:timerstart,plrwobble=20,sound=$0,state=3
:state=3,timergreater=1:setvar=$CAZ 0
:state=3,timergreater=42:setvar=$CAZ 1
:state=3,timergreater=73:setvar=$CAZ 2
:state=3,timergreater=113:setvar=$CAZ 3
:state=3,timergreater=143:setvar=$CAZ 4
:state=3,timergreater=173:setvar=$CAZ 3
:state=3,timergreater=213:setvar=$CAZ 2
:state=3,timergreater=243:setvar=$CAZ 1
:state=3,timergreater=273:setvar=$CAZ 0
:state=3,timergreater=313:setvar=$CAZ -1
:state=3,timergreater=343:setvar=$CAZ -2
:state=3,timergreater=373:setvar=$CAZ -3
:state=3,timergreater=413:setvar=$CAZ -4
:state=3,timergreater=443:setvar=$CAZ -3
:state=3,timergreater=473:setvar=$CAZ -2
:state=3,timergreater=513:setvar=$CAZ -1,state=0
:state=3,keypressed=31 0:plrwobble=5,setvar=$CAZ 0,stopsound,state=0

;Izquierda

:state=0,keypressed=30 1:timerstart,plrwobble=20,sound=$0,state=4
:state=4,timergreater=1:setvar=$CAZ 3
:state=4,timergreater=40:setvar=$CAZ 4
:state=4,timergreater=70:setvar=$CAZ 5
:state=4,timergreater=110:setvar=$CAZ 6
:state=4,timergreater=140:setvar=$CAZ 7
:state=4,timergreater=170:setvar=$CAZ 8
:state=4,timergreater=210:setvar=$CAZ 7
:state=4,timergreater=240:setvar=$CAZ 6
:state=4,timergreater=270:setvar=$CAZ 5
:state=4,timergreater=310:setvar=$CAZ 4
:state=4,timergreater=340:setvar=$CAZ 3
:state=4,timergreater=470:setvar=$CAZ 4
:state=4,timergreater=510:setvar=$CAZ 5
:state=4,timergreater=540:setvar=$CAZ 6
:state=4,timergreater=570:setvar=$CAZ 7
:state=4,timergreater=610:setvar=$CAZ 8
:state=4,timergreater=640:setvar=$CAZ 7
:state=4,timergreater=670:setvar=$CAZ 6
:state=4,timergreater=710:setvar=$CAZ 5
:state=4,timergreater=740:setvar=$CAZ 4,state=0
:state=4,keypressed=30 0:setvar=$CAZ 0,plrwobble=5,stopsound,state=0

;Derecha

:state=0,keypressed=32 1:timerstart,plrwobble=20,sound=$0,state=5
:state=5,timergreater=1:setvar=$CAZ -3
:state=5,timergreater=40:setvar=$CAZ -4
:state=5,timergreater=70:setvar=$CAZ -5
:state=5,timergreater=110:setvar=$CAZ -6
:state=5,timergreater=140:setvar=$CAZ -7
:state=5,timergreater=170:setvar=$CAZ -8
:state=5,timergreater=210:setvar=$CAZ -7
:state=5,timergreater=240:setvar=$CAZ -6
:state=5,timergreater=270:setvar=$CAZ -5
:state=5,timergreater=310:setvar=$CAZ -4
:state=5,timergreater=340:setvar=$CAZ -3
:state=5,timergreater=470:setvar=$CAZ -4
:state=5,timergreater=510:setvar=$CAZ -5
:state=5,timergreater=540:setvar=$CAZ -6
:state=5,timergreater=570:setvar=$CAZ -7
:state=5,timergreater=610:setvar=$CAZ -8
:state=5,timergreater=640:setvar=$CAZ -7
:state=5,timergreater=670:setvar=$CAZ -6
:state=5,timergreater=710:setvar=$CAZ -5
:state=5,timergreater=740:setvar=$CAZ -4,state=0
:state=5,keypressed=32 0:setvar=$CAZ 0,plrwobble=5,stopsound,state=0

;Asomar a la derecha

:state=0,keypressed=16 1:timerstart,plrwobble=5,sound=$0,state=6
:state=6,timergreater=5:setvar=$CAZ -1
:state=6,timergreater=10:setvar=$CAZ -2
:state=6,timergreater=15:setvar=$CAZ -3
:state=6,timergreater=20:setvar=$CAZ -4
:state=6,timergreater=20:setvar=$CAZ -5
:state=6,timergreater=20:setvar=$CAZ -6
:state=6,timergreater=20:setvar=$CAZ -7
:state=6,timergreater=20:setvar=$CAZ -8
:state=6,timergreater=20:setvar=$CAZ -9
:state=6,timergreater=20:setvar=$CAZ -10
:state=6,timergreater=5:setvar=$CAZ -11
:state=6,timergreater=10:setvar=$CAZ -12
:state=6,timergreater=15:setvar=$CAZ -13
:state=6,timergreater=20:setvar=$CAZ -14
:state=6,timergreater=20:setvar=$CAZ -15
:state=6,timergreater=20:setvar=$CAZ -16
:state=6,timergreater=20:setvar=$CAZ -17
:state=6,timergreater=20:setvar=$CAZ -18
:state=6,timergreater=20:setvar=$CAZ -19
:state=6,timergreater=20:setvar=$CAZ -20
:state=6,keypressed=16 0:setvar=$CAZ 0,plrwobble=5,stopsound,state=0

;Asomar a la izquierda

:state=0,keypressed=18 1:timerstart,plrwobble=5,sound=$0,state=7
:state=7,timergreater=5:setvar=$CAZ 1
:state=7,timergreater=10:setvar=$CAZ 2
:state=7,timergreater=15:setvar=$CAZ 3
:state=7,timergreater=20:setvar=$CAZ 4
:state=7,timergreater=20:setvar=$CAZ 5
:state=7,timergreater=20:setvar=$CAZ 6
:state=7,timergreater=20:setvar=$CAZ 7
:state=7,timergreater=20:setvar=$CAZ 8
:state=7,timergreater=20:setvar=$CAZ 9
:state=7,timergreater=20:setvar=$CAZ 10
:state=7,timergreater=5:setvar=$CAZ 11
:state=7,timergreater=10:setvar=$CAZ 12
:state=7,timergreater=15:setvar=$CAZ 13
:state=7,timergreater=20:setvar=$CAZ 14
:state=7,timergreater=20:setvar=$CAZ 15
:state=7,timergreater=20:setvar=$CAZ 16
:state=7,timergreater=20:setvar=$CAZ 17
:state=7,timergreater=20:setvar=$CAZ 18
:state=7,timergreater=20:setvar=$CAZ 19
:state=7,timergreater=20:setvar=$CAZ 20
:state=7,keypressed=18 0:setvar=$CAZ 0,plrwobble=5,stopsound,state=0

;Correr y parar de correr

:state=0,keypressed=42 1,keypressed=17 1:etimerstart,plrwobble=100,camfov=50,state=8
:state=8,etimergreater=10000:sound=$0,etimerstart,state=9
:state=8,keypressed=42 0,keypressed=17 0:plrwobble=5,state=0

:state=9,keypressed=42 1:plrspeedmod=50,plrwobble=5,state=10
:state=9,etimergreater=5000:plrspeedmod=100,plrwobble=5,state=0

:state=10,keypressed=42 0:plrspeedmod=100,plrwobble=5,state=9
:state=10,etimergreater=5000:plrspeedmod=100,plrwobble=5,state=0


;Saltar

:state=0,keypressed=57 1:plrwobble=5,newjumpheight=50,sound=$0,state=15
:state=15,keypressed=57 0:plrwobble=5,stopsound,state=0


;Disparar

:state=0,mousestate=1:plrwobble=60,sound=$0,state=12
:state=12,mousestate=0:plrwobble=0,stopsound,state=0

;Apuntar

:state=0,mousestate=2:plrwobble=5,sound=$0,state=13
:state=13,mousestate=0,keypressed=17 0:plrwobble=0,stopsound,state=0

