1 #pragma flag off fastarrays // make dp behave with new fteqcc versions. remove when dp bug with fteqcc fastarrays is fixed
\r
4 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
\r
5 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
\r
6 //YOU HAVE BEEN WARNED.
\r
8 //feel free to look though. :)
\r
16 ==============================================================================
\r
18 SOURCE FOR GLOBALVARS_T C STRUCTURE
\r
20 ==============================================================================
\r
32 float player_localentnum; //the entnum
\r
33 float player_localnum; //the playernum
\r
34 float maxclients; //a constant filled in by the engine. gah, portability eh?
\r
36 float clientcommandframe; //player movement
\r
37 float servercommandframe; //clientframe echoed off the server
\r
42 // global variables set by built in functions
\r
44 vector v_forward, v_up, v_right; // set by makevectors()
\r
46 // set by traceline / tracebox
\r
47 float trace_allsolid;
\r
48 float trace_startsolid;
\r
49 float trace_fraction;
\r
50 vector trace_endpos;
\r
51 vector trace_plane_normal;
\r
52 float trace_plane_dist;
\r
55 float trace_inwater;
\r
58 // required prog functions
\r
61 void() CSQC_Shutdown;
\r
62 float(float f, float t, float n) CSQC_InputEvent;
\r
63 void() CSQC_UpdateView;
\r
64 float(string s) CSQC_ConsoleCommand;
\r
66 //these fields are read and set by the default player physics
\r
71 //retrieved from the current movement commands (read by player physics)
\r
72 float input_timelength;
\r
73 vector input_angles;
\r
74 vector input_movevalues; //forwards, right, up.
\r
75 float input_buttons; //attack, use, jump (default physics only uses jump)
\r
77 float movevar_gravity;
\r
78 float movevar_stopspeed;
\r
79 float movevar_maxspeed;
\r
80 float movevar_spectatormaxspeed; //used by NOCLIP movetypes.
\r
81 float movevar_accelerate;
\r
82 float movevar_airaccelerate;
\r
83 float movevar_wateraccelerate;
\r
84 float movevar_friction;
\r
85 float movevar_waterfriction;
\r
86 float movevar_entgravity; //the local player's gravity field. Is a multiple (1 is the normal value)
\r
88 //================================================
\r
89 void end_sys_globals; // flag for structure dumping
\r
90 //================================================
\r
93 ==============================================================================
\r
95 SOURCE FOR ENTVARS_T C STRUCTURE
\r
97 ==============================================================================
\r
101 // system fields (*** = do not set in prog code, maintained by C code)
\r
103 .float modelindex; // *** model index in the precached list
\r
104 .vector absmin, absmax; // *** origin + mins / maxs
\r
106 .float entnum; // *** the ent number as on the server
\r
113 .vector origin; // ***
\r
114 .vector oldorigin; // ***
\r
119 .string classname; // spawn function
\r
125 .vector mins, maxs; // bounding box extents reletive to origin
\r
126 .vector size; // maxs - mins
\r
131 .void() blocked; // for doors or plats, called when can't push other
\r
145 .entity owner; // who launched a missile
\r
147 //================================================
\r
148 void end_sys_fields; // flag for structure dumping
\r
149 //================================================
\r
151 // Additional OPTIONAL Fields and Globals
\r
152 float intermission;
\r
153 float sb_showscores;
\r
162 // Darkplaces Render Modifications
\r
164 .float renderflags;
\r
169 .float enttype; // entity type sent from server
\r
170 .float sv_entnum; // entity number sent from server
\r
171 float vid_conwidth, vid_conheight;