void(string gibname, float dm) ThrowGib;
float() random;

void() SUB_Gib =
{
        local vector x, y, v;
        x='1 0 0';
        y='0 1 0';
        v=x*(50-random()*100)+y*(50-random()*100);
        if (random() < 0.8)                 
           SpawnMeatSpray(self.origin, v);
       
        else if (random() < 0.3)
                ThrowGib("progs/gib1.mdl", self.health*3);
        else if (random() < 0.5)
                ThrowGib("progs/gib2.mdl", self.health*3);
        else 
                ThrowGib("progs/gib3.mdl", self.health*3);
};      

///////
void() SUB_Gib1 =
{
       local vector x, y, v;
        x='1 0 0';
        y='0 1 0';
        v=x*(50-random()*100)+y*(50-random()*100);
        if (random() < 0.8)                 
           SpawnMeatSpray(self.origin, v);

        else if (random() < 0.3)
                ThrowGib("progs/gib3.mdl", self.health*3);
        else if (random() < 0.5)
                ThrowGib("progs/zom_gib.mdl", self.health*3);
        else
                ThrowGib("progs/gib3.mdl", self.health*3);
};


///////
void() SUB_Gib2 =
{
        local vector x, y, v;
        x='1 0 0';
        y='0 1 0';
        v=x*(50-random()*100)+y*(50-random()*100);
        if (random() < 0.8)                 
           SpawnMeatSpray(self.origin, v);

        else if (random() < 0.3)
                ThrowGib("progs/zom_gib.mdl", self.health*3);
        else if (random() < 0.5)
                ThrowGib("progs/zom_gib.mdl", self.health*3);
        else
                ThrowGib("progs/gib3.mdl", self.health);
};


