]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/server/gamec/miscfunctions.c
sv_logspam_console - logs events such as frags, captures, suicides to the console.
[divverent/nexuiz.git] / data / qcsrc / server / gamec / miscfunctions.c
1 string W_Name(float weaponid);
2 void(string s) ServerConsoleEcho;
3 float(float index) weapon_translateindextoflag;
4
5 float math_mod(float a, float b)
6 {
7         return a - (floor(a / b) * b);
8 }
9
10 string linewrap(string s, float l)
11 {
12         string t;
13
14         t = "";
15         while(l < strlen(s))
16         {
17                 t = strcat(t, substring(s, 0, l), "\n");
18                 s = substring(s, l+1, strlen(s));
19         }
20         return strcat(t, s);
21 }