Hi everyone! This is one of my first scripts I ever made. Originally called the Launch II script, this script is to be givin to any bazooka-weilding character for the most realistic action! As the description says, it must ONLY be placed as a main script.
Enjoy!
;Artificial Intelligence Script
;Header
desc = Snipesoul's Anti-Armor Script
It MUST be placed as a main script only. No shoot script is required. This script looks the most realistic with bazooka weilding characters.
;Triggers
:state=0:state=1
:state=1,plrcanbeseen:settarget,rotatetotarget
:state=1,ifweapon=0:setframe=36,state=2,rotatetoplr
:state=1,ifweapon=1,rateoffire:rotatetoplr,useweapon,rundecal=6,state=3
:state=1,plrcannotbeseen:state=6
:state=2:incframe=36
:state=2,frameatend=36:state=1,reloadweapon,rotatetoplr
:state=3,random=2:setframe=3,state=4
:state=3,random=2:setframe=4,state=5
:state=4:incframe=3,strafe=-90,rotatetoplr
:state=4,frameatend=3:state=0,animate=1
:state=5:incframe=4,strafe=90,rotatetoplr
:state=5,frameatend=4:state=0,animate=1
:state=6:animate=1
:state=6,ifweapon=0:setframe=36,state=7
:state=6,plrcanbeseen:state=0
:state=6,noiseheard=1:settarget,rotatetotarget,state=1
:state=7:incframe=36
:state=7,frameatend=36:reloadweapon,state=6
;End of Script
BTW this script can also be found on xplosys's FPSFree site... under a different name, and a little less intelligent then this one.