by Shpuld » Wed Jun 03, 2015 8:08 pm
FTE has the ability to automatically generate defs files with the engine supported stuff in it, try "pr_dumpplatform -O my_new_defs -Tcs -Ffte" for example, it's gonna output a csqc specific my_new_defs.qc (somewhere in the game folders, can't remember where). The autogenerated defs also has short and sweet documentation in comments for most of the functions in it.
Available options for the pr_dumpplatform are the following:
-Ffte - target only FTE (optimations and additional extensions)
-Tnq - dump specifically NQ fields
-Tqw - dump specifically QW fields
-Tcs - dump specifically CSQC fields
-Tmenu - dump specifically menuqc fields
-Fdefines - generate #defines instead of constants
-Faccessors - use accessors instead of basic types via defines
-O - write to a different qc file
Personally I like to get rid of original defs.qc completely, then create separate csdefs.qc with -Tcs and then a ssdefs.qc with -Tqw, and then keep server-side and client-side stuff separate from eachothers.