action AREVENANTWALK  0 3 8 1 12
action AREVENANTSHOOT 48 2 8 1 30
action AREVENANTBITE 24 3 8 1 15
action AREVENANTDYING 72 5 1 1 25
action AREVENANTDEAD 76 1 1 1 10
action AREVENANTSTOP 0 2 8 1 25
action AREVENANTPAIN 64 1 8 1 15

move REVENANTWALK 140
move REVENANTSTOP 

ai AIREVENANTWALK AREVENANTWALK REVENANTWALK faceplayer seekplayer
ai AIREVENANTSHOOT AREVENANTSHOOT REVENANTSTOP faceplayer 
ai AIREVENANTBITE AREVENANTBITE REVENANTSTOP faceplayer 
ai AIREVENANTDYING AREVENANTDYING REVENANTSTOP 
ai AIREVENANTSTOP AREVENANTSTOP REVENANTSTOP 
ai AIREVENANTPAIN AREVENANTPAIN REVENANTSTOP faceplayer

useractor enemy REVENANT fall  state noshade
ifai NO { strength 5 sizeat 55 55 cstator 257 ai AIREVENANTWALK }
ifhitweapon { ifdead { addkills 1 guts JIBS6 10  ai AIREVENANTDYING } else {  spawn BLOOD guts JIBS6 3 ifrnd 16 ai AIREVENANTPAIN } }
ifai AIREVENANTWALK { ifrnd 4 ifcansee ai AIREVENANTSHOOT else ifp pdead ai AIREVENANTSTOP else ifpdistl 1200 ai AIREVENANTBITE } 
ifai AIREVENANTSHOOT { ifactioncount 2 {  resetactioncount } else ifcount 20 ai AIREVENANTWALK }  
ifai AIREVENANTDYING { cstat 0 ifactioncount 5 { action AREVENANTDEAD cstat 0 move 0 } }
ifai AIREVENANTSTOP { ifp palive ifcansee ai AIREVENANTWALK }
ifai AIREVENANTPAIN ifcount 4 ai AIREVENANTWALK
ifai AIREVENANTBITE { ifactioncount 3 { ifpdistl 1200 ifcansee { addphealth -15 palfrom 32 32 } resetactioncount } else ifcount 20 ai AIREVENANTWALK }
enda