Inside3D tutorials.

Inside3D
 • Front Page
 • Articles
 • Downloads
 • Forums
 • Hosting
 • Help Wanted
 • Interviews
 • Reviews
 • Staff

 
Allied Sites
 - AI Cafe
 - Bot Epidemic
 - Dark Places
 - Flat Earth
 - FrikBot
 - Ghoulish Art
 - Kilbert3D
 - Quake Info Pool
 - QSG: Quake Standards
 - Rusted Fork
 - Stroggs Gone Mad
 - More...
 
Quake
 - Getting Started
 - QuakeC Specs v1.0
 - QuakeC Tutorials
 - Quake Mod Index
 
Quake II
 - Getting Started
 - dll Sourcecode
 - Coding Tutorials
 
.dll Central
 - Getting Started
 - Learning
 - dll Primer
 - dll in C
 - dll in Delphi
 - Compilers
 
Jedi Knight
 - Getting Started
 - COG Specs
 - Sound Specs
 - Tutorials
 
Level Editing
 - Tutorials/Tips
 
 
Telefragged!!!
Created By: Timm 'Mr?' Stokke
eMail: hestokke@online.no
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.
/*
================
W_FireShotgun
================
*/
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!






The Inside3D content and design is copyrighted by the Inside3D team, and may not be re-produced or copied without proper consent. All rights reserved. Any work credited to any author not part of InsideQC is copyrighted by that author. If you have any feedback, suggestions or flames please send it in to the author. Inside3D is hosted by telefragged and the design was originated by project-9.