name Clone4
type enemy
health 100
speed 8
mp 100
gfxshadow  1
grabdistance 25
throw 2,5 0
makeinv 1
atchain 1 2 2 2 3
com D D J FREESPECIAL3
com D F A FREESPECIAL4

subtype chase
candamage player obstacle
hostile player
aggression 80
nomove 0 1
nodrop 1
death 1
cantgrab 1
score  500
nopain  1


palette  data/chars/clone/clone3/laborpal.gif


##scripts###
script   data/chars/clone/clone3/raio.c
animationscript data/chars/clone/clone3/clone.c



anim spawn


        delay 1
        offset 133 217
        
        #@cmd    spawner "shot2i" -50 170 0
        custentity shot2i
        spawnframe  1  -50 0 170
 
        frame data/chars/clone/clone3/cw1.gif
        frame data/chars/clone/clone3/cw1.gif
        delay 100
        frame data/chars/clone/clone3/cw1.gif


        #void searchbi(int busca, float x, float z, float y)
        @cmd searchbi "shot2i" -50 0 170

       
       bbox 71 57 79 45
       frame data/chars/clone/clone3/cw1.gif


anim idle


       loop 1

       delay 100
       offset 133 217
       bbox 71 57 79 45
       frame data/chars/clone/clone3/cw1.gif




anim pain


       delay 1
       offset 125 235
       bbox 76 55 92 58
       attack 0 0 0 0 0 0 0 0 0
       move 5
       frame data/chars/clone/clone3/idle.gif
       frame data/chars/clone/clone3/idle.gif
       frame data/chars/clone/clone3/idle.gif
       frame data/chars/clone/clone3/idle.gif
       frame data/chars/clone/clone3/idle.gif
       frame data/chars/clone/clone3/idle.gif
       frame data/chars/clone/clone3/idle.gif
       frame data/chars/clone/clone3/idle.gif
       frame data/chars/clone/clone3/idle.gif
       frame data/chars/clone/clone3/idle.gif
       frame data/chars/clone/clone3/idle.gif
       frame data/chars/clone/clone3/idle.gif
       move 0
       delay 10
       frame data/chars/clone/clone3/idle.gif

anim rise

       delay 30
       offset 133 217
       bbox 71 58 81 50
       frame data/chars/clone/clone3/cw1.gif

anim death


       loop
       delay 1
       offset 125 235
       bbox 81 66 85 33

        subentity explode6

        spawnframe 1  0 0 0 0
        delay 50
       frame data/chars/clone/clone3/idle.gif
        delay 50
       frame data/chars/clone/clone3/idle.gif


anim walk

       loop 1
       delay 12
       offset 133 217
       bbox 69 54 84 53


       frame data/chars/clone/clone3/cw1.gif
       frame data/chars/clone/clone3/cw2.gif
       frame data/chars/clone/clone3/cw3.gif
       frame data/chars/clone/clone3/cw4.gif
       frame data/chars/clone/clone3/cw5.gif
       frame data/chars/clone/clone3/cw4.gif
       frame data/chars/clone/clone3/cw3.gif
       frame data/chars/clone/clone3/cw2.gif




anim follow1



       range -100 -30

       #custpshot shot2i
       #spawnframe {frame} {x} {z} {a} {relative} 
       custentity shot2i
       spawnframe  11  -50 0 170
       #pshotframe 4  170
       #jumpframe 4 0 5
       delay 30

       offset 133 217
       bbox 71 54 81 53
       frame data/chars/clone/clone3/cwatk.gif
       delay 6
       frame data/chars/clone/clone3/cwatk11.gif
       frame data/chars/clone/clone3/cwatk12.gif
       frame data/chars/clone/clone3/cwatk11.gif
       frame data/chars/clone/clone3/cwatk12.gif
       frame data/chars/clone/clone3/cwatk11.gif
       frame data/chars/clone/clone3/cwatk12.gif
       frame data/chars/clone/clone3/cwatk11.gif
       frame data/chars/clone/clone3/cwatk12.gif
       frame data/chars/clone/clone3/cwatk11.gif
       frame data/chars/clone/clone3/cwatk12.gif



       frame data/chars/clone/clone3/cwatk13.gif
       delay 50

       frame data/chars/clone/clone3/cwatk.gif

anim follow2


       range -50  0

       custpshot shot3i
       pshotframe 1  170
       jumpframe 1 0 5

       delay 30
       offset 133 217
       bbox 72 58 79 45




       frame data/chars/clone/clone3/cw1.gif
       delay 20

       frame data/chars/clone/clone3/cw1.gif








