Quake 1, the father of true 3D First Person Shooter games. One of the fastest gameplay titles ever, which see's you bouncing around levels be you bunny hopping or rocket jumping.Been such as awesome early game, the mod supply is endless and full of awesome titles such as Requiem, nothing hasn't been done to the Quake engine so be sure to check out it's bountiful mod supply
Setting up a small q1 mod, then adding a simple piece of code to the grunt's pain function, which checks if the grunt's energy gets under a certain amount (1/2 of his energy in this tut). Skin changing and .mdl modifying also...
Posted by Baart on Sep 26th, 2004 digg this super bookmark
Intermediate Client Side Coding.
[page=Requirements]
Be sure that you've got:
- The full Qme version (the shareware one doesn't want to save a model file with 20+ frames)
- Frikqcc compiler
- QuakeC sourcecode
- Grunt model
- A painskin for the model
[page=First steps]
A Standard Quake QuakeC mod directory tree looks like that:
Quake - Your Quake1 Directory
Set up a painskin directory inside your Quake 1 directory. Make two subdirectories inside the painskin directory: src and progs. Unpack the FrikQCC compiler and the QuakeC sourcecode into the src directory, and copy the soldier.mdl file into the progs directory.
[page=Adding a painskin to the soldier model]
In the next step, we'll add a new skin to the normal soldier model.
Start up Qme 3.0 and load the soldier.mdl file into the program.
In the upper-left corner of Qme, there should be an available skin list for the model. It should look like that:

Click with your right mouse button on the list, and import the new painskin into the model. If the new painskin will appear over the original skin, move the painskin below it. Save the file. The model's painskin will be in the slot 1, and the normal soldier's skin will be in the default slot 0.
[page=Adding the new painskin code to the soldier]
Every .qc file in the QuakeC Sourcecode is like a normal text file, just with a different extension.
Open the soldier.qc file with wordpad or notepad, and find the army_pain function - it should be somewhere in the center of the file. The army_pain function itself is called every time the monster is hurt by something, ex. the player, or an other monster. Basically its purpose is to randomise the pain animation, but it'll also check the soldier's health amount and change the skin to the damaged one in our small mod when needed.
Add this just under the r variable declaration:
Close the file. Compile the code with the FrikQCC compiler (frikqcc.exe).
[page=Ending]
Make a shortcut to your Quake executable (i recommend using a modern source port, like DarkPlaces) and add "-game painskin" as a command line parameter.
Start up Quake using the shortcut, and experience the new thrilling and brutal mod you've just made for the always living classic :)
Only registered members can share their thoughts. So come on! Join the Mod DB community today (totally free) and do things you never thought possible.
Why not use QuakeME 2.3 instead?
Ftp.sunet.se
erm... i didn't know about it :paranoid: