so I combine shootclose + pace, and hope it do what you want!
;Artificial Intelligence Script
;Header
desc = Hunt And Pace Waypoints
;pace script
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
:nearactivatable=0:settarget,activatetarget=2
:state=0:state=1
:state=1,plrcanbeseen:settarget,state=2
:state=1,random=20:rotateheadrandom=65
:state=1,random=60:rotatetoplr
:state=1,shotdamage=10:settarget,waypointstop,animate=1,rotatetotarget,resethead,state=4
:state=1,noiseheard=5:rotateheadrandom=85
:state=2:waypointstop,rotatetoplr,state=5
:state=4,plrcanbeseen=46:settarget,state=2
:state=4,random=20:animate=2,waypointstart,state=1
;connect part
:state=5,plrcannotbeseen:animate=1,waypointstart,state=0
:state=6,plrcannotbeseen:animate=1,waypointstart,state=0
;shoot close script
:state=5,plrcanbeseen:state=6,settarget
:state=6:rotatetoplr
:state=6,plrcanbeseen:settarget
:state=6,ifweapon=1,plrdistfurther=100,plrelevwithin=10:movetotarget=1,animate=5
:state=6,plrdistwithin=101:rotatetoplr
:state=6,ifweapon=1,plrdistwithin=101,plrcanbeseen=46,rateoffire:animate=1,rotatetoplr,freeze,useweapon,rundecal=6
:state=6,ifweapon=0:animate=1,freeze,state=7,setframe=6
:state=6,plrdistwithin=200,random=50:state=8
:state=6,plrdistwithin=50:state=11
:state=7:incframe=6
:state=7,frameatend=6:state=6,reloadweapon,sound=audiobank\guns\reload.wav
:state=8,random=1:state=9,setframe=4
:state=8:state=7,setframe=3
:state=9:incframe=4,strafe=90,rotatetoplr
:state=9,frameatend=4:state=6,animate=1
:state=10:incframe=3,strafe=-90,rotatetoplr
:state=10,frameatend=3:state=6,animate=1
:state=11:state=11,setframe=5
:state=12:incframe=5,strafe=180,rotatetoplr
:state=12,frameatend=5:state=6,animate=1
;End of Script
Games make the world better