Inside3D tutorials.
Created By: Timm 'Mr?' Stokke
Difficulty Scale: Easy

Step 1
Sorry 'bout this lesson, but i just had to, since many people have been asking me to do it. It's a Machine Gun, which shoots bullet's really, really fast. (Suprise!) I also made a few more steps for those who would like to get shells when they shoot! (Really Lame :)

Step 2
It's time to start editing. Open up the weapons.qc file, and scroll down to line 906 (Try using dos edit if you have problems finding the part we're gonna edit) Now, change the attack_finished time to 0.15. This tell's the shotgun to fire over 3 times as fast.
	else if (self.weapon == IT_SHOTGUN)
		player_shot1 ();
		W_FireShotgun ();
		self.attack_finished = time + 0.15;  //Changed from 0.5;
And that's all you have to do if you don't want to add the "rambo" stuff. (ie. Get more shells when you shoot) If you DO want to play Rambo, though, please follow the 2 next steps.

Step 3
Scroll down to line 260, where you'll find the text I've shown below. Mess around with the numbers like i've done.
void() W_FireShotgun =
	local vector dir;

	sound (self, CHAN_WEAPON, "weapons/guncock.wav", 1, ATTN_NORM);	

	self.punchangle_x = -2;
	self.currentammo = self.ammo_shells = self.ammo_shells +1; //Changed from -1; Set to "0" if you don't want any shells
	dir = aim (self, 100000);
	FireBullets (6, dir, '0.01 0.01 0');  //changed from '0.04 0.04 0' . Makes more of a MachineGun effect

Step 4
And i guess that's it! Compile it, and load it up the usual way. Note: I haven't tested this in multiplayer, but i have a feeling it would be quite a boring patch to play with. Make it more fair before inviting you're friend over for DM!