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

*rad        = mult(0.9, 1.2);
*mass       = 25.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      1500.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_00", add(rand(-1,1), this_x()), add(rand(-1,1), this_y()), add(this_z(), 1));
 particle_make( "fire_00", add(rand(-1,1), this_x()), add(rand(-1,1), this_y()), add(this_z(), 1));
 particle_make( "fire_00", add(rand(-1,1), this_x()), add(rand(-1,1), this_y()), add(this_z(), 1));
 particle_make( "fire_00", add(rand(-1,1), this_x()), add(rand(-1,1), this_y()), add(this_z(), 1));
 sound_play( add("monsters/squash_0", num_to_str(rand(1, 3.99)), ".wav"), this_x(), this_y(), 1 );

#CONTROL "script";
##BEGIN

#SEQUENCE "base";
# wait( 0.1); 
  char_activate("player", 0);
# seq_jump("start");

#SEQUENCE "start";
# avar("kenki_health", this_get_attribute("health")); 
  this_item_make("coin_02", 9); 
  this_item_make("coin_03", 6); 
  this_item_make("coin_04", 3);
# move_to( char_get_x("player"), char_get_y("player"));
  wait( 2, 1 );
# wait ( 2 );
# load_event("forest/kenki_speech");
# indicator_char_make( "kenki", 3, 0, "kenki", 1, colorRGB(0.0, 1.0, 0.0), .75, 1, 25);
# wait( 10000 );

##END
