Here's the entire thing.
;Artificial Intelegence Script
;Header
desc = Strafe and Advance Shoot
;Triggers
:state=0,ifweapon=0:state=8,setframe=6
:plrcanbeseen:settarget,rotatetotarget,resethead
:plrdistwithin=500:settarget,rotatetoplr,resethead
:plrdistwithin=50,shotdamage=1:rotatetoplr,state=20
:state=0,random=20:state=9
:state=0,random=20:state=3
:state=0,shotdamage=1:rotatetoplr,state=30
:state=0,ifweapon=1,plrcanbeseen:state=2
:state=1:incframe=3,strafe=-90,rotatetoplr
:state=1,frameatend=3:state=0,animate=1
:state=5:useweapon,rundecal=6,state=0
:state=4,random=5:state=12
:state=4:state=5
:state=3:state=4
:state=2:state=14
:state=6:incframe=4,strafe=90,rotatetoplr
:state=6,frameatend=4:state=0,animate=1
:state=7,random=1:state=6,setframe=4
:state=7:state=1,setframe=3
:state=8:incframe=6
:state=8,frameatend=6:state=0,reloadweapon,sound=audiobank\guns\reload.wav
:state=9,plrcannotbeseen:state=10
:state=9:state=0
:state=10,random=1:rotatetoplr,strafe=135
:state=10,random=1:rotatetoplr,strafe=-135
:state=10,random=1:rotatetoplr,strafe=-65
:state=10,random=1:rotatetoplr,strafe=65
:state=10:state=7
:state=12,plrdistfurther=150:state=13,setframe=5
:state=12:state=5
:state=13:incframe=5,runfore=20
:state=13,frameatend=5:animate=1,state=5
:state=14:localvar=1
:state=14,varnotequal=1:state=15
:state=14:state=3
:state=15:localvar=1
:state=15,varnotequal=0:state=16
:state=15:state=3
;state=16,random=2:sound=audiobank\user\badguysee1.wav,state=3
;state=16,random=2:sound=audiobank\user\badguysee2.wav,state=3
:state=16:localvar=1,setvar=1,state=3
:state=20,random=4:hudx=90,hudy=70,hudimagefine=gamecore\decals\splatters\splatter1.dds,hudname=splat1,hudmake=display,hudshow=splat1
:state=20,random=4:hudx=50,hudy=10,hudimagefine=gamecore\decals\splatters\splatter2.dds,hudname=splat2,hudmake=display,hudshow=splat2
:state=20,random=4:hudx=20,hudy=37,hudimagefine=gamecore\decals\splatters\splatter3.dds,hudname=splat3,hudmake=display,hudshow=splat3
:state=20:state=7
:state=30,random=4:sound=audiobank\user\badguyhurt2.wav,state=7
:state=30,random=4:sound=audiobank\user\badguyhurt3.wav,state=7
:state=30,random=4:sound=audiobank\user\badguyhurt4.wav,state=7
:state=30,random=4:sound=audiobank\user\badguyhurt6.wav,state=7
:state=30,random=4:sound=audiobank\user\badguyhurt7.wav,state=7
:state=30,random=8:sound=audiobank\user\badguyhurt5.wav,state=7
:state=30,random=18:sound=audiobank\user\badguyhurt1.wav,state=7
:state=30:state=3
;End of Script