try this
:state=0:freeze,settargetname=YOURENEMYNAMEHERE,rotatetotarget
:state=0,ifweapon=1:useweapon,rundecal=6,var1add=1
:state=0,ifweapon=0:state=1,setframe=36
:state=0,shotdamage=5:state=25
:state=0,targetactive=0:runfpidefault=1
:state=1:incframe=36
:state=1,frameatend=36:state=0,reloadweapon,sound=audiobank\guns\reload.w
:state=2:freeze,animate=1,state=3
:state=3:runfpidefault=1
:state=25,random=1:state=26,setframe=4
:state=25:state=27,setframe=3
:state=26:incframe=4,strafe=90,rotatetotarget
:state=26,random=4:useweapon,rundecal=6
:state=26,frameatend=4:animate=1,state=0
:state=27:incframe=3,strafe=-90,rotatetotarget
:state=27,random=4:useweapon,rundecal=6
:state=27,frameatend=3:animate=1,state=0
:state=0,plrusingaction=1:runfpidefault=1
:state=1,plrusingaction=1:runfpidefault=1
:state=2,plrusingaction=1:runfpidefault=1
:state=3,plrusingaction=1:runfpidefault=1
:state=25,plrusingaction=1:runfpidefault=1
:state=26,plrusingaction=1:runfpidefault=1
:state=27,plrusingaction=1:runfpidefault=1
:plrusingaction=1:sound=audiobank\affirm1.wav
:var1=100:runfpidefault=1