action ACOMMANDOWALK  0 5 8 1 15
action ACOMMANDOSHOOT 32 2 8 1 5
action ACOMMANDODYING 56 7 1 1 10
action ACOMMANDODEAD 62 1 1 1 10
action ACOMMANDOSTOP 0 2 8 1 25
action ACOMMANDOPAIN 48 1 8 1 15

move COMMANDOWALK 80
move COMMANDOSTOP 
move COMMANDOPAIN 10

ai AICOMMANDOWALK ACOMMANDOWALK COMMANDOWALK faceplayer seekplayer
ai AICOMMANDOSHOOT ACOMMANDOSHOOT COMMANDOSTOP faceplayer 
ai AICOMMANDODYING ACOMMANDODYING COMMANDOSTOP 
ai AICOMMANDOSTOP ACOMMANDOSTOP COMMANDOSTOP 
ai AICOMMANDOPAIN ACOMMANDOPAIN COMMANDOSTOP faceplayer

useractor enemy COMMANDO fall state noshade

ifai NO { strength 6 sizeat 55 55 cstator 257 ai AICOMMANDOWALK }
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 CHAINGUNSPRITE guts JIBS6 10 ai AICOMMANDODYING } else { spawn BLOOD guts JIBS6 3 ai AICOMMANDOPAIN } }
ifai AICOMMANDOWALK { ifrnd 6 ifcansee ai AICOMMANDOSHOOT else ifp pdead ai AICOMMANDOSTOP } 
ifai AICOMMANDOSHOOT { ifactioncount 2 {  resetactioncount } else ifcount 40 ai AICOMMANDOWALK }  
ifai AICOMMANDODYING { cstat 0 ifactioncount 4 { action ACOMMANDODEAD cstat 0 move 0 } }
ifai AICOMMANDOSTOP { ifp palive ifcansee ai AICOMMANDOWALK }
ifai AICOMMANDOPAIN ifcount 4 ai AICOMMANDOWALK
enda