action ASOLDIERWALK  0 4 5 1 15
action ASOLDIERSHOOT 20 2 5 1 28
action ASOLDIERDYING 35 4 1 1 15
action ASOLDIERDEAD 39 1 1 1 10
action ASOLDIERSTOP 0 2 5 1 25
action ASOLDIERPAIN 30 1 5 1 15

move SOLDIERWALK 80
move SOLDIERSTOP 

ai AISOLDIERWALK ASOLDIERWALK SOLDIERWALK faceplayer seekplayer
ai AISOLDIERSHOOT ASOLDIERSHOOT SOLDIERSTOP faceplayer 
ai AISOLDIERDYING ASOLDIERDYING SOLDIERSTOP 
ai AISOLDIERSTOP ASOLDIERSTOP SOLDIERSTOP 
ai AISOLDIERPAIN ASOLDIERPAIN SOLDIERSTOP 

useractor enemy SOLDIER fall state noshade

ifai NO { strength 5 sizeat 55 55 cstator 257 ai AISOLDIERWALK }
ifhitweapon { ifwasweapon RPG { spawn AMMO addkills 1 guts JIBS6 10 sound SQUISHED killit } else ifwasweapon RADIUSEXPLOSION { spawn AMMO addkills 1 guts JIBS6 10 sound SQUISHED killit }
else ifdead { spawn AMMO addkills 1 guts JIBS6 10 ai AISOLDIERDYING } else { spawn BLOOD guts JIBS6 3 ai AISOLDIERPAIN } }
ifai AISOLDIERWALK { ifrnd 4 ifrnd 7 ifcansee ai AISOLDIERSHOOT else ifp pdead ai AISOLDIERSTOP } 
ifai AISOLDIERSHOOT { ifactioncount 2 { resetactioncount } else ifcount 20 ai AISOLDIERWALK }  
ifai AISOLDIERDYING { cstat 0 ifactioncount 4 { action ASOLDIERDEAD cstat 0 move 0 } }
ifai AISOLDIERSTOP { ifp palive ifcansee ai AISOLDIERWALK }
ifai AISOLDIERPAIN ifcount 4 ai AISOLDIERWALK
enda



