1 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
2 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
3 //YOU HAVE BEEN WARNED.
5 //feel free to look though. :)
13 ==============================================================================
15 SOURCE FOR GLOBALVARS_T C STRUCTURE
17 ==============================================================================
29 float player_localentnum; //the entnum
30 float player_localnum; //the playernum
31 float maxclients; //a constant filled in by the engine. gah, portability eh?
33 float clientcommandframe; //player movement
34 float servercommandframe; //clientframe echoed off the server
39 // global variables set by built in functions
41 vector v_forward, v_up, v_right; // set by makevectors()
43 // set by traceline / tracebox
45 float trace_startsolid;
48 vector trace_plane_normal;
49 float trace_plane_dist;
55 // required prog functions
59 float(float f, float t) CSQC_InputEvent;
60 void() CSQC_UpdateView;
61 void(string s) CSQC_ConsoleCommand;
64 //these fields are read and set by the default player physics
69 //retrieved from the current movement commands (read by player physics)
70 float input_timelength;
72 vector input_movevalues; //forwards, right, up.
73 float input_buttons; //attack, use, jump (default physics only uses jump)
75 float movevar_gravity;
76 float movevar_stopspeed;
77 float movevar_maxspeed;
78 float movevar_spectatormaxspeed; //used by NOCLIP movetypes.
79 float movevar_accelerate;
80 float movevar_airaccelerate;
81 float movevar_wateraccelerate;
82 float movevar_friction;
83 float movevar_waterfriction;
84 float movevar_entgravity; //the local player's gravity field. Is a multiple (1 is the normal value)
86 //================================================
87 void end_sys_globals; // flag for structure dumping
88 //================================================
91 ==============================================================================
93 SOURCE FOR ENTVARS_T C STRUCTURE
95 ==============================================================================
99 // system fields (*** = do not set in prog code, maintained by C code)
101 .float modelindex; // *** model index in the precached list
102 .vector absmin, absmax; // *** origin + mins / maxs
104 .float entnum; // *** the ent number as on the server
111 .vector origin; // ***
112 .vector oldorigin; // ***
117 .string classname; // spawn function
123 .vector mins, maxs; // bounding box extents reletive to origin
124 .vector size; // maxs - mins
129 .void() blocked; // for doors or plats, called when can't push other
143 .entity owner; // who launched a missile
145 //================================================
146 void end_sys_fields; // flag for structure dumping
147 //================================================