Monday, January 7, 2013

GreyBear's Quake 2 Tutorials Chapter 4: Creating Realistic Weapons

This is another great tutorial. I am getting a feel for the quake 2 engine with these tutorials. This tutorial is broken down into 3 parts. Part 1 brings a pistol into the game to replace the blaster. One problem that I had with this part of the tutorial was with this line of code
//
//
#define MOD_Mk23      34
//
//
the problem is that you cannot use 34 for the Mk23 because 34 is in use by another MOD. so you have to change this to 35.
There is a zip file with additional resource that I downloaded and extracted into my baseq2 folder. make sure that you add the folders inside the zip file to the baseq2 directory (models, pics, sounds) and not the folder directory above them.

Part 2 is a tutorial for firing and reloading the pistol that was introduced in part 1. I am not sure which version of the quake2 engine was used for these tutorials but I am following along with version 3.21. In this version the "PutClientInServer()" is slightly different than the one used in the tutorial. When you are modifying the "PutClienntInServer()" place the following code close to the bottom of entire function:
//+BD   ...and set the max clip size, then fill the current mag...
client->Mk23_max = 12;
client->Mk23_rds = client->Mk23_max;
//+BD end add


Part 3 will allow you pistol to fire flares. This tutorial worked the for a while. I left and came back and the pistol would no longer fire flares. It would play the fire animation, but no flares came out.

part1
part2
part3

No comments:

Post a Comment