action ASERGEANTWALK  0 4 5 1 15
action ASERGEANTSHOOT 20 2 5 1 28
action ASERGEANTDYING 35 4 1 1 15
action ASERGEANTDEAD 39 1 1 1 10
action ASERGEANTSTOP 0 2 5 1 25
action ASERGEANTPAIN 30 1 5 1 15

move SERGEANTWALK 80
move SERGEANTSTOP 

ai AISERGEANTWALK ASERGEANTWALK SERGEANTWALK faceplayer seekplayer
ai AISERGEANTSHOOT ASERGEANTSHOOT SERGEANTSTOP faceplayer 
ai AISERGEANTDYING ASERGEANTDYING SERGEANTSTOP 
ai AISERGEANTSTOP ASERGEANTSTOP SERGEANTSTOP 
ai AISERGEANTPAIN ASERGEANTPAIN SERGEANTSTOP 

useractor enemy SERGEANT fall  state noshade
ifai NO { strength 5 sizeat 55 55 cstator 257 ai AISERGEANTWALK }
ifhitweapon { ifwasweapon RPG { addkills 1 guts JIBS6 10 sound SQUISHED killit } else ifwasweapon RADIUSEXPLOSION { addkills 1 guts JIBS6 10 sound SQUISHED killit }
else ifdead { addkills 1 spawn SHOTGUNSPRITE guts JIBS6 10 ai AISERGEANTDYING } else {  spawn BLOOD guts JIBS6 3 ai AISERGEANTPAIN } }
ifai AISERGEANTWALK { ifrnd 4 ifrnd 6 ifcansee ai AISERGEANTSHOOT else ifp pdead ai AISERGEANTSTOP } 
ifai AISERGEANTSHOOT { ifactioncount 2 { resetactioncount } else ifcount 20 ai AISERGEANTWALK }  
ifai AISERGEANTDYING { cstat 0 ifactioncount 4 { action ASERGEANTDEAD cstat 0 move 0 } }
ifai AISERGEANTSTOP { ifp palive ifcansee ai AISERGEANTWALK }
ifai AISERGEANTPAIN ifcount 4 ai AISERGEANTWALK
enda



