//////////////////////////////////////////////////////////////////////////////////////////
//Weapon Start Code, for creating a weapon to start with at the beginning of a game     //
//											//
//By: The Fang										//
//											//
//E-Mail @ the.fang@lineone.net with any comments suggestions etc.			//
//											//
//Call 'weapon_restore();' in the main() function					//
//											//
//Edit startgun_1 to your own custom gun						//
//////////////////////////////////////////////////////////////////////////////////////////

function weapon_restore()
{
 create(<automag.mdl>,nullskill,startgun_1);
}

function startgun_1()
{
 my.__ROTATE = on; // gun rotates
 my.__REPEAT = off; // pistol-like firing, not automatic
 my.__BOB = on; // hopefully the pistol 'bobs' when moving
 my._ammotype = 0.0; // type of ammo, rounds to start off with in gun

 my._WEAPONNUMBER == 1; // hopefully press '1' to equip
 my._BULLETSPEED = 250.1; // bulletspeed and recoil
 my._FIRETIME = 1;
 my.flag8 = on;

 my._FIREMODE = damage_shoot + hit_hole + gunfx_brass + gunfx_animate + 0.35;
 my.skill11 = 1;
 my.skill12 = 20;
 my.skill13 = 20;

 my.scale_x = 1.75;
 my.scale_y = 1.75;
 my.scale_z = 1.75;

 gun_givePlayer();
}