
- NEXUIZ CLASSIC SERVERS HOW TO
- NEXUIZ CLASSIC SERVERS MOD
- NEXUIZ CLASSIC SERVERS SOFTWARE
- NEXUIZ CLASSIC SERVERS CODE
It is what is known as a string, but more about that on a later date. It is in speech marks, as all text in QC is.
NEXUIZ CLASSIC SERVERS MOD
The "Welcome To My Mod Server!n" is obviously the message we want to be displayed. It's a very useful variable for many situations, and you'll be using it a lot from now on. In a weapon firing function, self will refer to the player who fired the weapon etc. An entity is an object, whether it be a player, an item to pick up or a rocket in the air. self can actually refer to any entity in the game. self is a variable which here points to the player who just connected to the server, so that the engine knows who to show the message to. Firstly, centerprint is a built in function of the engine, used to print messages in the center of a player's screen. centerprint(self, 'Welcome To My Mod Server!n') void info_player_start (void), add the following line: A very simple function looks like this one from the top of the file: QC files are split into functions, which are self-contained sections of code. This QC file is comcerned with dealing with things like where players spawn, what to do when the connect and disconnect etc. Open the file nexuiz/mymod/game/gamec/cl_client.c.

Let's make a Message Of The Day, a message which appears briefly in the center of the screen when players connect to your server. But first, what do we want to do? I think for this tutorial I'll start very simple.
NEXUIZ CLASSIC SERVERS CODE
You could run this mod now, but since we've not changed any of the code yet that would be pretty daft. It should now contain a compiled progs.dat file. Assuming it hasn't reported any errors, close the DOS Box. It will list all the files in a couple of seconds then stop.

Anyway, once you run the compiler it should load a classy DOS Box and run. You'll have to ask elsewhere for help on that, I'm a Windows man for my sins. If you are a Linux or Mac user, you will have to get a copy of fteqcc, the source code for which is here. Go to the nexuiz/mymod/game directory and run QCC2.EXE to compile the code. This will of course put it in the correct directory. We want it in the nexuiz/mymod directory, so change that line to read: This tells the compiler where to put the compiled progs.dat file. At the very top of the file is a line that reads: This is the file that contains a list of all the. Next, open up the file called progs.src from the nexuiz/mymod/game directory with a text editor. Paste the directory into your new mymod folder. Go to the nexuiz/sources directory, and copy the game directory. Next you need to put the Nexuiz QC source code into this directory. Go to the Nexuiz directory, and create a new directory inside it, called mymod or something equally rubbish. The first thing you need to do is to create a new directory for our mod. The engine code is more concerned with rendering the game, netcode etc. Basically it's all code relating directly to the gameplay. What is covered by the QC code includes: The weapons, the player movement and animation, all item code etc.

Some code is handled in the DarkPlaces engine itself. The QC code doesn't cover everything about Nexuiz.

The progs.dat is read by the DarkPlaces engine, and it takes the game code from there. H files, which are compiled by a program called QCC2.EXE to a progs.dat. Since Nexuiz is based on a modified Quake engine, Nexuiz also uses QC.
NEXUIZ CLASSIC SERVERS SOFTWARE
QC stands for QuakeC, as it was a language originally designed by id software for the game Quake. By the way, if you ever get better than me at QC I'll eat your face.įirstly, let me give you a quick explaination of what QC is.
NEXUIZ CLASSIC SERVERS HOW TO
In this lesson, you will discover how to make your very first Nexuiz modification. Pay attention at the back! Put down that paper aeroplane Jenkins! We've got some learning to do. My intention in these tutorials is to teach the very basics of QC to absolute beginners. Welcome to the first in my hopefully good series of QC tutorials for Nexuiz.
