
/*                                                     //mod
===============                                        //mod
launch_rocket                                          //mod
                                                       //mod
Used for rocketshooter                                 //mod
===============                                        //mod
*/                                                     //mod
void(vector org, vector dir) launch_rocket =           //mod
{                                                      //mod
        newmis = spawn ();                             //mod
        newmis.owner = self;                           //mod
        newmis.movetype = MOVETYPE_FLYMISSILE;         //mod
        newmis.solid = SOLID_BBOX;                     //mod
                                                       //mod
        newmis.angles = vectoangles(dir);              //mod
                                                       //mod
        newmis.touch = T_MissileTouch;                 //mod
        newmis.classname = "missile";                  //mod
        newmis.think = SUB_Remove;                     //mod
        newmis.nextthink = time + 10;                  //mod
        setmodel (newmis, "progs/missile.mdl");        //mod
        setsize (newmis, VEC_ORIGIN, VEC_ORIGIN);      //mod  
        setorigin (newmis, org);                       //mod
                                                       //mod
        newmis.velocity = dir * 1000;                  //mod
};                                                     //mod
/*                                                     //mod
===============                                        //mod
launch_grenade                                         //mod
                                                       //mod
Used for grenadeshooter                                //mod
===============                                        //mod
*/                                                     //mod
void(vector org, vector dir) launch_grenade=           //mod
{                                                      //mod
        newmis = spawn ();                             //mod
        setorigin (newmis, org);                       //mod
        setmodel (newmis, "progs/grenade.mdl");        //mod
        setsize (newmis, '0 0 0', '0 0 0');            //mod
                                                       //mod
        newmis.owner = world;                          //mod
        newmis.movetype = MOVETYPE_BOUNCE;             //mod
        newmis.solid = SOLID_BBOX;                     //mod
        newmis.angles = vectoangles(dir);              //mod
        newmis.avelocity = '300 300 300';              //mod
        newmis.angles = vectoangles(newmis.velocity);  //mod
        newmis.touch = GrenadeTouch;                   //mod
        newmis.nextthink = time + 50;                  //mod
        newmis.think = GrenadeExplode;                 //mod
        newmis.touch = GrenadeTouch;                   //mod
        newmis.classname = "grenade";                  //mod
                                                       //mod
        makevectors (self.v_angle);                    //mod
                                                       //mod
        if (self.v_angle_x)                            //mod
                newmis.velocity = v_forward*600 + v_up * 200 + crandom()*v_right*10 + crandom()*v_up*10;
        else                                           //mod
        {                                              //mod
                newmis.velocity = aim(self, 10000);    //mod
                newmis.velocity = newmis.velocity * 600;
                newmis.velocity_z = 200;               //mod
        }                                              //mod
};                                                     //mod






