//void (vector position, vector direction) Shoot_Blood;

void (vector org, vector vel, float damage) SpawnAlienBlood;

void () mk23_precache = {

   precache_model2 ("progs/v_mk23.mdl");
   precache_sound2 ("weapons/mk23in.wav");
   precache_sound2 ("weapons/mk23fire.wav");
   precache_sound2 ("weapons/mk23ric.wav");
   precache_sound2 ("weapons/mk23ric2.wav");
   precache_sound2 ("weapons/mk23gib.wav");
   precache_sound2 ("weapons/mk23sld.wav");

};

void (float damage, vector dir) MK23_TraceAttack = {

   local vector vel;
   local vector org;
   local vector meatdir;
   local float particle_color;


   vel = normalize (((dir + (v_up * crandom ())) + (v_right * crandom ())));
   vel = (vel + (FL_SWIM * trace_plane_normal));
   vel = (vel * 200.000);
   org = (trace_endpos - (dir * MOVETYPE_STEP));
   if ( trace_ent.takedamage ) {
      if ( ((trace_ent.absmax_z - trace_endpos_z) <= 25.000) ) {

         damage = (damage * 5.00);

      } else 
		damage = (damage * 2.00);
		
      particle_color = random ();
      meatdir_x = (random () * 300.000);
      meatdir_y = (random () * 300.000);
      meatdir_z = (random () * 300.000);
      makevectors (self.v_angle);

//      if (particle_color < 0.8)
  //      Shoot_Blood (org,meatdir);

            if (trace_ent.classname != "player")
	        SpawnAlienBlood (org, vel*0.2, damage);
        else
	        SpawnBlood (org, vel*0.2, damage);

//  SpawnBlood (org,vel * 0.200,damage * 100);

      if ( (damage >= 20.000) ) {

       //  Shoot_Blood ((org + '10.000 10.000 0.000'),(v_forward * 2000.000));
         //Shoot_Blood (org,(v_forward * 2000.000));
         sound (trace_ent,CHAN_AUTO,"weapons/mk23gib.wav",AS_STRAIGHT,ATTN_NORM);
//if (trace_ent.classname == "player" || trace_ent.flags & FL_MONSTER) {

      trace_ent.flags = trace_ent.flags - (trace_ent.flags & FL_ONGROUND);

         if (trace_ent.health > damage) {

            trace_ent.velocity = (v_forward * 100.000);
            trace_ent.velocity_z = (trace_ent.velocity_z + ((random () + 0.500) * 50.000));

         }
         if (trace_ent.health <= damage) {

            trace_ent.velocity = (v_forward * 140.000);
            trace_ent.velocity_z = (trace_ent.velocity_z + ((random () + 0.500) * 160.000));

         }

      }
      if ((damage <= 20.000) && (damage > MSG_BROADCAST)) {

         if ( (trace_ent.health > damage) ) {

            trace_ent.velocity = (v_forward * 100.000);
            trace_ent.velocity_z = (trace_ent.velocity_z + ((random () + 0.500) * 50.000));

         }
         if (trace_ent.health <= damage) {

            trace_ent.velocity = (v_forward * 140.000);
            trace_ent.velocity_z = (trace_ent.velocity_z + ((random () + 0.500) * 160.000));

         }

      }
      if ((damage > 20.000) && (damage <= 40.000)) {

         if ( (trace_ent.health > damage) ) {

            trace_ent.velocity = (v_forward * 100.000);
            trace_ent.velocity_z = (trace_ent.velocity_z + ((random () + 0.500) * 50.000));

         }
         if (trace_ent.health <= damage) {

            trace_ent.velocity = (v_forward * 200.000);
            trace_ent.velocity_z = (trace_ent.velocity_z + ((random () + 0.500) * 220.000));

         }

      }
//}
//      AddMultiDamage (trace_ent,damage);
      T_Damage (trace_ent, self, self, damage);
   } else {

      WriteByte (MSG_BROADCAST,SVC_TEMPENTITY);
      WriteByte (MSG_BROADCAST,TE_GUNSHOT);
      WriteCoord (MSG_BROADCAST,org_x);
      WriteCoord (MSG_BROADCAST,org_y);
      WriteCoord (MSG_BROADCAST,org_z);



      particle (org,'3.000 2.000 7.000',192.000,TE_WIZSPIKE);
      particle (org,'7.000 6.000 8.000',192.000,TE_WIZSPIKE);
      particle (org,'9.000 8.000 4.000',192.000,TE_WIZSPIKE);
      particle (org,'17.000 8.000 10.000',192.000,TE_WIZSPIKE);
//      particle (org,'0 0 0',111,5);
  //    particle (org,'0 0 3',2,5);
    
     // CG_puff(org,vel);

      particle_color = random ();
      if ( (particle_color <= 0.200) ) {

         sound (self,CHAN_AUTO,"weapons/mk23ric.wav",TRUE,ATTN_NORM);

      }
      if ( ((particle_color <= 0.400) && (particle_color > 0.200)) ) {

         sound (self,CHAN_AUTO,"weapons/mk23ric2.wav",TRUE,ATTN_NORM);

      }

   }
};
//.float lastshot;
//.float iterations;

void () W_FireMK23 = {

   local vector dir;
   local vector src;
   local float r;
   local float temp;

   sound (self,CHAN_WEAPON,"weapons/mk23fire.wav",TRUE,ATTN_NORM);
	self.ammo_shells = self.ammo_shells - 1;
self.bondo = self.bondo + 1;
   self.currentammo = self.ammo_shells - 1;
//   makevectors (self.v_angle);
   makevectors (self.v_angle);
   dir = aim (self,1000.000);
   src = (self.origin + (v_forward * TE_LAVASPLASH));
   src_z = (self.absmin_z + (self.size_z * 0.800));
   src_y = (self.absmin_y + (self.size_y * 0.400));
//   ClearMultiDamage ();
   r = random ();

/*
   if ( ((time - self.lastshot) > 0.200) ) {

      traceline (src,(src + (dir * IT_CELLS)),FALSE,self);

   }
   if ( ((time - self.lastshot) <= 0.300) ) {

      traceline (src,((src + (dir * IT_CELLS)) - (v_up * (r * 70.000)) - (v_right * (r * 70.000))),FALSE,self);

   }
*/
      traceline (src,(src + (dir * IT_CELLS)),FALSE,self); //bondo changes

   temp = vlen ((trace_endpos - self.origin));
   if (temp < 120) {

      MK23_TraceAttack (25,dir);

   }
   if ((temp < 200) && (temp >= 120)) {

      MK23_TraceAttack (20,dir);

   }
   if ( ((temp < 250.000) && (temp >= 200.000)) ) {

      MK23_TraceAttack (17,dir);

   }
   if ( ((temp < 300.000) && (temp >= 250.000)) ) {

      MK23_TraceAttack (14,dir);

   }
   if ( ((temp < 450.000) && (temp >= 300.000)) ) {

      MK23_TraceAttack (10,dir);

   }
   if ( (temp >= 450.000) ) {

      MK23_TraceAttack (8,dir);

   }
//   ApplyMultiDamage ();
  // self.lastshot = time;
//   eject_shell ((((self.origin + (v_forward * 14.000)) - (v_right * TE_LIGHTNING3)) + (v_up * 14.000)),'0 0 0');

};
/*

void() mk23_reload3;
void() mk23_reload5;
void() mk23_reload7;
void() mk23_reload9;
void() mk23_reload11;
void() mk23_reload13;
void() mk23_reload15;
void() mk23_reload25;
void() mk23_reload27;
void() mk23_reload29;
void() mk23_reload31;
void() mk23_reload33;
void() mk23_reload35;
void() mk23_reload37;
void() mk23_reload39;
void() mk23_reload31;
void() mk23_reload33;
void() mk23_reload35;
void() mk23_reload37;
void() mk23_reload39;
void() mk23_reload41;
void() mk23_reload43;
void() mk23_reload45;
void() mk23_reload46;
void() mk23_reload47;
void() mk23_reload48;
void() mk23_reload49;
void() mk23_reload50;
void() mk23_reload51;
void() mk23_reload52;
void() mk23_reload53;
void() mk23_reload54;
void() mk23_reload55;
void() mk23_reload56;
void() mk23_reload57;
void() mk23_reload58;
void() mk23_reload59;
void() mk23_reload60;
void() mk23_reload61;
void() mk23_reload62;
void() mk23_reload63;
void() mk23_reload64;
void() mk23_reload65;
void() mk23_reload66;
void() mk23_reload67;
void() mk23_reload68;
void() mk23_reload69;
void() mk23_reload70;
void() mk23_reload71;
void() mk23_reload72;
void() mk23_reload73;
void() mk23_reload74;
void() mk23_reload75;
void() mk23_reload76;
void() mk23_reload77;
void() mk23_reload78;
void() mk23_reload79;
*/ 					  

void () mk23_reload = [1, mk23_reload1] {self.weaponframe = 9;};
void () mk23_reload1 = [1, mk23_reload2] {

self.weaponframe = 11;

};
void () mk23_reload2 = [1, mk23_reload3] {self.weaponframe = 13;};
void () mk23_reload3 = [1, mk23_reload4] {self.weaponframe = 15;};
void () mk23_reload4 = [1, mk23_reload5] {self.weaponframe = 17;};
void () mk23_reload5 = [1, mk23_reload6] {self.weaponframe = 19;};
void () mk23_reload6 = [1, mk23_reload7] {self.weaponframe = 21;};
void () mk23_reload7 = [1, mk23_reload8] {self.weaponframe = 23;};

void () mk23_reload8 = [1, mk23_reload9] {
self.weaponframe = 25;
          sound (self,CHAN_WEAPON,"weapons/mk23in.wav",TRUE,ATTN_NORM);
};

void () mk23_reload9 = [1, mk23_reload10] {self.weaponframe = 27;};
void () mk23_reload10 = [1, mk23_reload11] {self.weaponframe = 29;};
void () mk23_reload11 = [1, mk23_reload12] {self.weaponframe = 31;};
void () mk23_reload12 = [1, mk23_reload13] {self.weaponframe = 33;};
void () mk23_reload13 = [1, mk23_reload14] {self.weaponframe = 35;};
void () mk23_reload14 = [1, mk23_reload15] {self.weaponframe = 37;};
void () mk23_reload15 = [1, mk23_reload16] {self.weaponframe = 39;};
void () mk23_reload16 = [1, mk23_reload17] {self.weaponframe = 41;};
void () mk23_reload17 = [1, mk23_reload18] {self.weaponframe = 43;};
void () mk23_reload18 = [1, mk23_reload19] {self.weaponframe = 45;};
void () mk23_reload19 = [1, mk23_reload20] {self.weaponframe = 47;};
void () mk23_reload20 = [1, mk23_reload21] {self.weaponframe = 49;};
void () mk23_reload21 = [1, mk23_reload22] {self.weaponframe = 51;};
void () mk23_reload22 = [1, mk23_reload23] {self.weaponframe = 53;};
void () mk23_reload23 = [1, mk23_reload24] {self.weaponframe = 55;};
void () mk23_reload24 = [1, player_run] {self.weaponframe = 1;};

/*
void () player_reload_mk23 =
//[ 1, mk23_reload3 ]
{
	sprint(self,"testing\n");
	self.frame = 1;
	self.think = mk23_reload3;
	self.weaponframe = 9;
	self.nextthink = (time + 0.030);
//	self.reload = 1;
};

void () mk23_reload3 =
//[ 1, mk23_reload5 ]
{
	self.frame = 1;
	self.think = mk23_reload5;
	sprint(self,"testing\n");

	self.weaponframe = 11;
	self.nextthink = (time + 0.030);

};
void () mk23_reload5 =
//[ 1, mk23_reload7 ]
{
	self.frame = 1;
	self.think = mk23_reload7;

	self.weaponframe = 13;
	self.nextthink = (time + 0.030);

};
void () mk23_reload7 =
//[ 1, mk23_reload9 ]
{
	self.frame = 1;
	self.think = mk23_reload9;

	self.weaponframe = 15;
	self.nextthink = (time + 0.030);

};
void () mk23_reload9 =
//[ 1, mk23_reload11 ]
{
	self.frame = 1;
	self.think = mk23_reload11;

	self.weaponframe = 17;
	self.nextthink = (time + 0.030);

};
void () mk23_reload11 =
//[ 1, mk23_reload13 ]
{
	sprint(self,"testing\n");
	self.frame = 1;
	self.think = mk23_reload13;

	self.weaponframe = 19;
	self.nextthink = (time + 0.030);

};
void () mk23_reload13 =
//[ 1, mk23_reload15 ]
{
	sprint(self,"testing4\n");
	self.frame = 1;
	self.think = mk23_reload15;

	self.weaponframe = 21;
	self.nextthink = (time + 0.030);
 self.iterations = 0;
};                   

void () mk23_reload25;

void() mk23_reload15 =
{
       self.frame = 1;
	sprint(self,"testing\n");

		if (self.iterations <= 3)
          self.weaponframe = 23 + self.iterations; 
       else
          self.weaponframe = 27 - (self.iterations - 4);
          
       if (self.iterations == 0)
          sound (self,CHAN_WEAPON,"weapons/mp5out.wav",TRUE,ATTN_NORM);
       //self.think = mk23_reload15;
       self.think = mk23_reload15;
          sound (self,CHAN_WEAPON,"weapons/mk23in.wav",TRUE,ATTN_NORM);

       if (self.iterations == 9) 
       {
          self.think = mk23_reload25;
          sound (self,CHAN_WEAPON,"weapons/mk23in.wav",TRUE,ATTN_NORM);
       }
        
       if (self.iterations >= 3)
          self.nextthink = time + 0.015;
       else
          self.nextthink = time + 0.030;
       self.iterations = self.iterations + 1;
};
void () mk23_reload15 =
//[ 1, mk23_reload16 ]
{
	self.frame = 1;
	self.think = mk23_reload16;

	self.weaponframe = 23;
	sound (self,CHAN_WEAPON,"weapons/mp5out.wav",TRUE,ATTN_NORM);
	self.nextthink = (time + 0.030);

};

void () mk23_reload16 =
//[ 1, mk23_reload17 ]
{
	self.frame = 1;
	self.think = mk23_reload17;

	self.weaponframe = 24;
	self.nextthink = (time + 0.030);

};

void () mk23_reload17 =
//[ 1, mk23_reload18 ]
{
	self.frame = 1;
	self.think = mk23_reload18;

	self.weaponframe = 25;
	self.nextthink = (time + 0.030);

};

void () mk23_reload18 =
//[ 1, mk23_reload19 ]
{
	self.frame = 1;
	self.think = mk23_reload19;

	self.weaponframe = 26;
	self.nextthink = (time + 0.030);

};

void () mk23_reload19 =
//[ 1, mk23_reload20 ]
{
	self.frame = 1;
	self.think = mk23_reload20;

	self.weaponframe = 27;
	self.nextthink = (time + 0.030);

};

void () mk23_reload20 =
//[ 1, mk23_reload21 ]
{
	self.frame = 1;
	self.think = mk23_reload21;

	self.weaponframe = 27;
	self.nextthink = (time + 0.030);

};

void () mk23_reload21 =
//[ 1, mk23_reload22 ]
{
	self.frame = 1;
	self.think = mk23_reload22;

	self.weaponframe = 26;
	self.nextthink = (time + 0.015);

};

void () mk23_reload22 =
// 1, mk23_reload23 ]
{
	self.frame = 1;
	self.think = mk23_reload23;

	self.weaponframe = 25;
	self.nextthink = (time + 0.015);

};

void () mk23_reload23 =
//[ 1, mk23_reload24 ]
{
	self.frame = 1;
	self.think = mk23_reload24;

	self.weaponframe = 24;
	self.nextthink = (time + 0.015);

};

void () mk23_reload24 =
//[ 1, mk23_reload25 ]
{
	self.frame = 1;
	self.think = mk23_reload25;

	self.weaponframe = 23;
	sound (self,CHAN_WEAPON,"weapons/mk23in.wav",TRUE,ATTN_NORM);
	self.nextthink = (time + 0.015);

};

void () mk23_reload25 =
//[ 1, mk23_reload27 ]
{
	self.frame = 1;
	self.think = mk23_reload27;

	self.weaponframe = 22;
	self.nextthink = (time + 0.030);

};
void () mk23_reload27 =
//[ 1, mk23_reload29 ]
{
	self.frame = 1;
	self.think = mk23_reload29;

	self.weaponframe = 20;
	self.nextthink = (time + 0.030);

};








void () mk23_reload29 =
//[ 1, mk23_reload31 ]
{
	self.frame = 1;
	self.think = mk23_reload31;

	self.weaponframe = 18;
	self.nextthink = (time + 0.030);

};
void () mk23_reload31 =
//[ 1, mk23_reload33 ]
{
	self.frame = 1;
	self.think = mk23_reload33;

	self.weaponframe = 16;
	self.nextthink = (time + 0.030);

};
void () mk23_reload33 =
//[ 1, mk23_reload35 ]
{
	self.frame = 1;
	self.think = mk23_reload35;

	self.weaponframe = SVC_INTERMISSION;
	self.nextthink = (time + 0.030);

};
void () mk23_reload35 =
//[ 1, mk23_reload37 ]
{
	self.frame = 1;
	self.think = mk23_reload37;

	self.weaponframe = SVC_CDTRACK;
	self.nextthink = (time + 0.030);

};

void () mk23_reload37 =
//[ 1, mk23_reload39 ]
{
	self.frame = 1;
	self.think = mk23_reload39;

	self.weaponframe = 34;
	self.nextthink = (time + 0.030);

};
void () mk23_reload39 =
//[ 1, mk23_reload41 ]
{
	self.frame = 1;
	self.think = mk23_reload41;

	self.weaponframe = 36;
	self.nextthink = (time + 0.030);

};

void () mk23_reload41 =
//[ 1, mk23_reload43 ]
{
	self.frame = 1;
	self.think = mk23_reload43;
	self.weaponframe = 38;
	self.nextthink = (time + 0.030);

};
void () mk23_reload43 =
//[ 1, mk23_reload45 ]
{
	self.frame = 1;
	self.think = mk23_reload45;

	self.weaponframe = 40;
	self.nextthink = (time + 0.030);

};
void () mk23_reload45 =
//[ 1, mk23_reload46 ]
{
	self.frame = 1;
	self.think = mk23_reload46;

	self.weaponframe = 42;
	self.nextthink = (time + 0.030);

};

void () mk23_reload46 =
[ 1, mk23_reload47 ]
{
	self.frame = 1;
	self.think = mk23_reload47;

	self.weaponframe = 43;
	self.nextthink = (time + 0.030);

};

void () mk23_reload47 =
//[ 1, mk23_reload48 ]
{
	self.frame = 1;
	self.think = mk23_reload48;

	self.weaponframe = 44;
	self.nextthink = (time + 0.015);

};

void () mk23_reload48 =
//[ 1, mk23_reload49 ]
{
	self.frame = 1;
	self.think = mk23_reload49;

	self.weaponframe = 45;
	sound (self,CHAN_WEAPON,"weapons/mk23sld.wav",TRUE,ATTN_NORM);
	self.nextthink = (time + 0.015);

};

void () mk23_reload49 =
//[ 1, mk23_reload50 ]
{

	self.frame = 1;
	self.think = mk23_reload50;

	self.weaponframe = 46;
	self.nextthink = (time + 0.015);

};

void () mk23_reload50 =
//[ 1, mk23_reload51 ]
{
	self.frame = 1;
	self.think = mk23_reload51;

	self.weaponframe = 47;
	self.nextthink = (time + 0.015);

};

void () mk23_reload51 =
//[ 1, mk23_reload52 ]
{
	self.frame = 1;
	self.think = mk23_reload52;

	self.weaponframe = 48;
	self.nextthink = (time + 0.015);

};

void () mk23_reload52 =
//[ 1, mk23_reload53 ]
{
	self.frame = 1;
	self.think = mk23_reload53;

	self.weaponframe = 49;
	self.nextthink = (time + 0.015);

};

void () mk23_reload53 =
//[ 1, mk23_reload54 ]
{
	self.frame = 1;
	self.think = mk23_reload54;

	self.weaponframe = 50;
	self.nextthink = (time + 0.015);

};

void () mk23_reload54 =
//[ 1, mk23_reload55 ]
{
	self.frame = 1;
	self.think = mk23_reload55;

	self.weaponframe = 51;
	self.nextthink = (time + 0.015);

};

void () mk23_reload55 =
//[ 1, mk23_reload56 ]
{
	self.frame = 1;
	self.think = mk23_reload56;

	self.weaponframe = 52;
	self.nextthink = (time + 0.015);

};

void () mk23_reload56 =
[ 1, mk23_reload57 ]
{
	self.frame = 1;
	self.think = mk23_reload57;

	self.weaponframe = 42;
	self.nextthink = (time + 0.015);

};

void () mk23_reload57 =
//[ 1, mk23_reload58 ]
{
	self.frame = 1;
	self.think = mk23_reload58;

	self.weaponframe = 41;
	self.nextthink = (time + 0.030);

};

void () mk23_reload58 =
//[ 1, mk23_reload59 ]
{
	self.frame = 1;
	self.think = mk23_reload59;

	self.weaponframe = 40;
	self.nextthink = (time + 0.030);

};

void () mk23_reload59 =
//[ 1, mk23_reload60 ]
{
	self.frame = 1;
	self.think = mk23_reload60;

	self.weaponframe = 39;
	self.nextthink = (time + 0.030);

};

void () mk23_reload60 =
//[ 1, mk23_reload61 ]
{
	self.frame = 1;
	self.think = mk23_reload61;

	self.weaponframe = 38;
	self.nextthink = (time + 0.030);

};

void () mk23_reload61 =
//[ 1, mk23_reload62 ]
{
	self.frame = 1;
	self.think = mk23_reload62;

	self.weaponframe = 37;
	self.nextthink = (time + 0.030);

};

void () mk23_reload62 =
//[ 1, mk23_reload63 ]
{
	self.frame = 1;
	self.think = mk23_reload63;

	self.weaponframe = 36;
	self.nextthink = (time + 0.030);

};

void () mk23_reload63 =
//[ 1, mk23_reload64 ]
{
	self.frame = 1;
	self.think = mk23_reload64;

	self.weaponframe = 35;
	self.nextthink = (time + 0.030);

};

void () mk23_reload64 =
//[ 1, mk23_reload65 ]
{
	self.frame = 1;
	self.think = mk23_reload65;

	self.weaponframe = 34;
	self.nextthink = (time + 0.030);

};

void () mk23_reload65 =
//[ 1, mk23_reload66 ]
{
	self.frame = 1;
	self.think = mk23_reload66;

	self.weaponframe = SVC_SELLSCREEN;
	self.nextthink = (time + 0.030);

};

void () mk23_reload66 =
//[ 1, mk23_reload67 ]
{
	self.frame = 1;
	self.think = mk23_reload67;

	self.weaponframe = SVC_CDTRACK;
	self.nextthink = (time + 0.030);

};

void () mk23_reload67 =
//[ 1, mk23_reload68 ]
{
	self.frame = 1;
	self.think = mk23_reload68;

	self.weaponframe = SVC_FINALE;
	self.nextthink = (time + 0.030);

};

void () mk23_reload68 =
//[ 1, mk23_reload69 ]
{
	self.frame = 1;
	self.think = mk23_reload69;

	self.weaponframe = SVC_INTERMISSION;
	self.nextthink = (time + 0.030);

};

void () mk23_reload69 =
//[ 1, mk23_reload70 ]
{
	self.frame = 1;
	self.think = mk23_reload70;

	self.weaponframe = 29;
	self.nextthink = (time + 0.030);

};

void () mk23_reload70 =
//[ 1, mk23_reload71 ]
{
	self.frame = 1;
	self.think = mk23_reload71;

	self.weaponframe = SVC_FOUNDSECRET;
	self.nextthink = (time + 0.030);
	self.iterations = 0;
};

void () mk23_reload71 = [ 1, mk23_reload71 ]
{
	self.weaponframe = 17 - self.iterations;
	self.nextthink = time + 0.015;
	if (self.weaponframe == 9) self.think = player_run;
	self.iterations = self.iterations + 1;
};
*/

void() player_mk23a2;

void () player_mk23a =
//[ 1, player_mk23a2 ]
{
	self.frame = 103;
	self.think = player_mk23a2;

	self.effects = (self.effects | EF_MUZZLEFLASH);
	self.weaponframe = 1;
	self.nextthink = (time + 0.050);
	W_FireMK23 ();

};

void () player_mk23a2 =
//[ 1, player_mk23a3 ]
{
	if (self.weaponframe < 3)
	{
		  self.weaponframe = self.weaponframe + 1;
		  self.think = player_mk23a2;
	}
	else
	{
		  self.weaponframe = 4;
		  self.think = player_run;
	}
	self.nextthink = (time + 0.050);

};
/*
void () player_mk23a3 = [ 1, player_mk23a4 ] {

	self.weaponframe = 3;
	self.nextthink = (time + 0.050);

};

void () player_mk23a4 = [ 1, player_run ] {

	self.weaponframe = 4;
	self.nextthink = (time + 0.050);

};
*/
void() player_mk23b2;

void () player_mk23b =
//[ 1, player_mk23b2 ]
{
	self.frame = 103;
	self.think = player_mk23b2;
	self.effects = (self.effects | EF_MUZZLEFLASH);
	self.weaponframe = 5;
	self.nextthink = (time + 0.050);
	W_FireMK23 ();

};

void () player_mk23b2 =
//[ 1, player_mk23b3 ]
{
	if (self.weaponframe < 7)
	{
		  self.weaponframe = self.weaponframe + 1;
		  self.think = player_mk23b2;
	}
	else
	{
		  self.weaponframe = 8;
		  self.think = player_run;
	}

//   self.weaponframe = 6;
	self.nextthink = (time + 0.050);

};

