Drunk Rocket

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: CheapAlert
eMail: cheapalert@yahoo.com
Difficulty Scale: Easy


Today, we're gonna screw up the everyday over-predictable rocket. This is VERY easy to do, it's so easy even Caterina Bandini can do it. Let's go over to WEAPONS.QC.

Head on down to W_FireRocket. Paste this above the W_FireRocket function:

void() RocketScrewUp = 
{
        self.velocity = ((self.velocity + ((v_right * 121.000) * crandom ())) + ((v_up * 121.000) * crandom ()));
        self.nextthink = time + 0.08; // screw up fast
        self.think = RocketScrewUp;
};

Obviously this puts this rocket randomly off course. Can work for other projectiles. Works great for insect guns like the HornetGun from Half-Life.

Go into the W_FireRocket function and find this:

// set missile duration
	missile.nextthink = time + 5;
	missile.think = SUB_Remove;
and change it to something like this

 // set missile drunkation
        missile.nextthink = time + 0.1; // Assume it's safe to screw away....
        missile.think = RocketScrewUp;

And..........we are done. Compile and run. Fire the rocket. That wasn't so overwhelming was it? Now you can play fair with n00bs. Now autoaim won't serve a purpose.

Have fun - CheapAlert






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.