Created By: dmgoober
eMail: alexander.jhin@yale.edu
Difficulty Scale: Easy


Intro 
I wanted to teach QII players a lesson -- do not download random DLL's!!! They are dangerous! I was going to write a tutorial that erased QII saved games, but decided that it was too mean. Instead, I have written a tutorial that teaches people how to display a clock in the upper left hand corner of QII whenever the blaster/hyperblaster is fired. 

What you need to use this primer: 
Visual C++ 4.0 or above 
Quake 2 Source Files. 
(This is available at: ftp://ftp.idsoftware.com/idstuff/quake2/source/q2source_12_11.zip) 

General Setup 
See tutorial #1 made by me!
 
Tutorial 
 
1. Open the workspace you created above.
2. Open the "p_weapon.c" file. 
3. Find the function beginning with the line:
void fire_blaster (edict_t *self, vec3_t start, vec3_t dir, int damage, int speed, int effect)
Now, following the line:
trace_t tr;
Type or paste the following lines:
        //my silly clock
        char tmpbuf[20];
        _strtime( tmpbuf );
        gi.bprintf (PRINT_MEDIUM,"Time: %s\n", tmpbuf);
        //end my silly clock
Ending 
 
Why did I do such a useless tutorial?
I wanted to show that a QII DLL can do anything that win95 can do.
Hell, you could write an operating system using QII.
Hell, you could write something that erases hard drives or starts viruses.
Don't download random DLL's!!!!
More later.