#GENERAL
*name       = "kenki_cin";
*faction       = "boss";
*enemy_faction = "good";

*rad        = mult(0.9, 1.2);
*mass       = 2500.0;
*elasticity = 0.3;
*drag       = 0.5;
*friction   = 4.0;
*hardness   = 0.4;
*roll       = 1.0;

*model = "npc_samureye_01";
*model_scale = 1.2;
*bleed_rate = 3.0;
*leak_decal_vec = {"decals/big_blood_01.tga"};
*dam_part_vec = {"blood_01"};

#ATTRIBUTE "ccrange";
#BASE      2.75;
#ATTRIBUTE "ccspeed";
#BASE      10.0;
#ATTRIBUTE "ccdamage";
#BASE      10.0;
#ATTRIBUTE "attract";
#BASE      20.0;
#ATTRIBUTE "leak";
#BASE      0.0;
#ATTRIBUTE "speed";
#BASE      30.0;
#ATTRIBUTE "power";
#BASE      0.0;
#ATTRIBUTE "health";
#BASE      2500.0;
#ATTRIBUTE "res";
#BASE      1.0;
#ATTRIBUTE "rot_speed";
#BASE      100.0;
#ATTRIBUTE "exp";
#BASE      0.0;
#ATTRIBUTE "wait";
#BASE      0.0;

#ON_DAMAGE

 avar("kenki_health", *health);

#ON_DEATH

 char_control_jump("kenki_tree", "script", "bosses/kenki_dead");
 particle_make( "fire_03", add(rand(-1,1), this_x()), add(rand(-1,1), this_y()), add(this_z(), 1));
 particle_make( "fire_03", add(rand(-1,1), this_x()), add(rand(-1,1), this_y()), add(this_z(), 1));
 particle_make( "fire_03", add(rand(-1,1), this_x()), add(rand(-1,1), this_y()), add(this_z(), 1));
 particle_make( "fire_03", add(rand(-1,1), this_x()), add(rand(-1,1), this_y()), add(this_z(), 1));

#CONTROL "script";
##BEGIN

#SEQUENCE "base";
# wait( 2 );
# this_control_push("script", "bosses/kenki_spin");
  wait( .15, 1 );
  move_to( 1000, 1000, 0 );
# seq_jump("wait");

#SEQUENCE "wait";
# wait( 3 );
# load_event("forest/kenki_run");
# move_to( 47, 111, 1 );
  wait(3, 1);
# char_kill("kenki_cin");
  char_activate("player", 1);
  avar("kenki_cin", 1);

##END
