]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/client/helpers.c
add csqc skeleton for Nexuiz
[divverent/nexuiz.git] / data / qcsrc / client / helpers.c
1 void RegisterCvar (string name, string defvalue, float save)
2 {
3         if(registercvar(name, defvalue) && save)
4                 localcmd("seta ", name, " ", cvar_string(name), "\n");
5 }
6
7 float DotProduct (vector x, vector y)
8 {
9         return (x_x*y_x + x_y*y_y + x_z*y_z);
10 }
11
12 // dummy function to shut up compiler warnings
13 void foo()
14 {
15         self.alpha = 0;
16         self.renderflags = 0;
17         self = NULL;
18 }