;Artificial Intelligence Script ;Header desc = Follow Waypoints ;Triggers ;Huds :state=0:hudreset,hudx=50,hudy=80,hudsize=36,hudfont=Ariel,hudtext=Press "G" To Follow Player,hudname=follow,hudhide=1,hudmake=display :state=0:hudreset,hudx=50,hudy=70,hudsize=36,hudfont=Ariel,hudtext=Medic Has Been Called "Wait",hudname=mediccalled,hudhide=1,hudmake=display :state=0:hudreset,hudx=50,hudy=70,hudsize=36,hudfont=Ariel,hudtext=Hi I'm Here To Heal You - Press "ENTER" To Be Healed,hudname=heal,hudhide=1,hudmake=display :state=0:hudreset,hudx=50,hudy=70,hudsize=36,hudfont=Ariel,hudtext=Medic Has Been Called To Follow Player "Wait",hudname=called,hudhide=1,hudmake=display :state=0:hudreset,hudx=50,hudy=70,hudsize=36,hudfont=Ariel,hudtext=Leaving Medic Here To Wait For Call,hudname=leave,hudhide=1,hudmake=display :state=0:state=1 :state=1:animate=2,movefore=1,rotateheadrandom=45,pivotrandom=10 ;///Display Text To Follow Player :state=1,plrdistwithin=100:freeze,state=2,hudshow=follow,hudfadeout=follow ;/// Activate Medic To Follow Player "G" Key :state=2:rotatetoplr,animate=1 :state=2,plrdistwithin=100,keypressed=34 1:state=3,sound=audiobank\switches\click.wav :state=3,keypressed=34 0:state=4 ;//Take cover when shot :shotdamage=1:etimerstart,rotateheadrandom=45,animate=31,state=9 :state=9,etimergreater=3000:state=13,settargetname=safety,movetotarget=1,animate=5 ;//Call Medic For Help "M" Key :plrdistfurther=100,keypressed=50 1:state=10 :state=10,keypressed=50 0:state=11,hudshow=mediccalled,hudfadeout=mediccalled ;/// Call Medic At Anytime To Follow Player "G" Key :keypressed=34 1:state=5,sound=audiobank\switches\click.wav,hudshow=called,hudfadeout=called :state=5,keypressed=34 0:state=4 ;//Leave Medic At Anytime "L" Key :keypressed=38 1:state=8,sound=audiobank\switches\click.wav,hudshow=leave,hudfadeout=leave :state=8,keypressed=34 0:rotatetoplr,animate=31,freeze ;///Follow Player And Heal When Needed :state=4,plrdistwithin=150,keypressed=50 1:state=6 :state=4,plrdistfurther=149:rotatetoplr,runfore=50,animate=5 :state=4,plrdistwithin=150,plrdistfurther=75,plrnotcrouching:rotatetoplr,movefore=2,animate=2 :state=4,plrdistwithin=150,plrdistfurther=75,plrcrouching:rotatetoplr,movefore=2,animate=32 :state=4,plrdistwithin=75,plrnotcrouching:animate=1,rotatetoplr,freeze :state=4,plrdistwithin=75,plrcrouching:animate=31,rotatetoplr,freeze ;Heal :state=6,keypressed=50 0:state=7,hudshow=heal,hudfadeout=heal :state=7,plrusingaction=1:plraddhealth=50,state=4,plrsound=audiobank\items\healthup.wav ;//Run To Heal Player Then Return To Safety :state=11,plrdistfurther=75:rotatetoplr,runfore=5,animate=5 :state=11,plrdistwithin=75,plrnotcrouching:animate=1,freeze,hudshow=heal,hudfadeout=heal :state=11,plrdistwithin=75,plrcrouching:animate=31,freeze,hudshow=heal,hudfadeout=heal :state=11,plrdistwithin=75,plrusingaction=1:plraddhealth=50,state=12,plrsound=audiobank\items\healthup.wav :state=12,plrdistfurther=250:state=13,settargetname=safety,movetotarget=1,animate=5 ;Return To Safety Zone :state=13,reachtarget:rotatetoplr,animate=31,freeze ;End of Script