https://dl.dropboxusercontent.com/u/177 ... orials.zip
Start here. It has the shell of the mod, all you have to do is fill in updateStats(), drawHud(), and add the apropriate
clientstat() and globalstat() to worldspawn.
The following tutorials should explain pretty well just how to do that.
View.qc:
the weaponFrame() of csqc.
that is, its the function I abuse to get shit done every single frame.
I call all of my hud drawing functions at the ass end of csqc_updateview()
also has options to turn off crosshairs and the default hud (very useful)
and drawmasks for people who know what they're doing.
main.qc
most of the things I dare not touch are here!
If you just want a hud, you can leave this file alone completely.
If you want to intercept te_effects, events, print messages, input events
and console commands though, this is your shangri la.
#DEFINES are needed for some of those functions. I forget which ones, I'll
try to answer that later.
csplat.qc
This file can be regenerated by issuing the following command:
pr_dumpplatform -fdefines -tcs -o csplat
contains tons of function prototypes for engine builtins and the like.
a trove of information.
Read it, it'll give you ideas fo sho.