1 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
\r
2 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
\r
3 //YOU HAVE BEEN WARNED.
\r
5 //feel free to look though. :)
\r
12 ==============================================================================
\r
14 SOURCE FOR GLOBALVARS_T C STRUCTURE
\r
16 ==============================================================================
\r
28 float player_localentnum; //the entnum
\r
29 float player_localnum; //the playernum
\r
30 float maxclients; //a constant filled in by the engine. gah, portability eh?
\r
32 float clientcommandframe; //player movement
\r
33 float servercommandframe; //clientframe echoed off the server
\r
38 // global variables set by built in functions
\r
40 vector v_forward, v_up, v_right; // set by makevectors()
\r
42 // set by traceline / tracebox
\r
43 float trace_allsolid;
\r
44 float trace_startsolid;
\r
45 float trace_fraction;
\r
46 vector trace_endpos;
\r
47 vector trace_plane_normal;
\r
48 float trace_plane_dist;
\r
51 float trace_inwater;
\r
54 // required prog functions
\r
57 void() CSQC_Shutdown;
\r
58 float(float f, float t, float n) CSQC_InputEvent;
\r
59 void(float w, float h) CSQC_UpdateView;
\r
60 float(string s) CSQC_ConsoleCommand;
\r
62 //these fields are read and set by the default player physics
\r
67 //retrieved from the current movement commands (read by player physics)
\r
68 float input_timelength;
\r
69 vector input_angles;
\r
70 vector input_movevalues; //forwards, right, up.
\r
71 float input_buttons; //attack, use, jump (default physics only uses jump)
\r
73 float movevar_gravity;
\r
74 float movevar_stopspeed;
\r
75 float movevar_maxspeed;
\r
76 float movevar_spectatormaxspeed; //used by NOCLIP movetypes.
\r
77 float movevar_accelerate;
\r
78 float movevar_airaccelerate;
\r
79 float movevar_wateraccelerate;
\r
80 float movevar_friction;
\r
81 float movevar_waterfriction;
\r
82 float movevar_entgravity; //the local player's gravity field. Is a multiple (1 is the normal value)
\r
84 //================================================
\r
85 void end_sys_globals; // flag for structure dumping
\r
86 //================================================
\r
89 ==============================================================================
\r
91 SOURCE FOR ENTVARS_T C STRUCTURE
\r
93 ==============================================================================
\r
97 // system fields (*** = do not set in prog code, maintained by C code)
\r
99 .float modelindex; // *** model index in the precached list
\r
100 .vector absmin, absmax; // *** origin + mins / maxs
\r
102 .float entnum; // *** the ent number as on the server
\r
109 .vector origin; // ***
\r
110 .vector oldorigin; // ***
\r
115 .string classname; // spawn function
\r
121 .vector mins, maxs; // bounding box extents reletive to origin
\r
122 .vector size; // maxs - mins
\r
127 .void() blocked; // for doors or plats, called when can't push other
\r
141 .entity owner; // who launched a missile
\r
143 //================================================
\r
144 void end_sys_fields; // flag for structure dumping
\r
145 //================================================
\r
147 // Additional OPTIONAL Fields and Globals
\r
148 float intermission;
\r
149 float sb_showscores;
\r
150 float sb_showaccuracy;
\r
152 .float renderflags;
\r
154 // float deathmatch;
\r
158 // vector dmg_origin;
\r
160 // Darkplaces Render Modifications
\r
163 .float renderflags;
\r
169 .float enttype; // entity type sent from server
\r
170 .float sv_entnum; // entity number sent from server
\r
174 float vid_conwidth, vid_conheight;
\r
178 string announce_snd;
\r
181 float race_checkpoint;
\r
183 float race_laptime;
\r
184 float race_checkpointtime;
\r
185 float race_previousbesttime;
\r
186 string race_previousbestname;
\r
187 float race_nextcheckpoint;
\r
188 float race_nextbesttime;
\r
189 string race_nextbestname;
\r
190 float race_penaltyaccumulator; // qualifying: total penalty time in tenths
\r
191 float race_penaltyeventtime; // time when the player got the penalty
\r
192 float race_penaltytime; // duration of penalty time, in tenths
\r
193 string race_penaltyreason; // reason for penalty
\r
194 float race_server_record; // server record
\r
195 float race_speedaward;
\r
196 string race_speedaward_holder;
\r
197 float race_speedaward_alltimebest;
\r
198 string race_speedaward_alltimebest_holder;
\r
201 float race_mycheckpoint;
\r
202 float race_mycheckpointtime;
\r
203 float race_mycheckpointdelta;
\r
204 float race_mycheckpointlapsdelta;
\r
205 string race_mycheckpointenemy;
\r
206 float race_othercheckpoint;
\r
207 float race_othercheckpointtime;
\r
208 float race_othercheckpointdelta;
\r
209 float race_othercheckpointlapsdelta;
\r
210 string race_othercheckpointenemy;
\r
211 float sb_showscores_force;
\r
213 string race_status_name;
\r
217 float spectatee_status;
\r
220 string shortmapname;
\r
222 //remaining maptime announcer sounds, true when sound was already played
\r
223 float announcer_1min;
\r
224 float announcer_5min;
\r
226 // database for misc stuff
\r
228 float ClientProgsDB;
\r
229 vector grabber_shotorigin;
\r
232 float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
\r
235 float servertime, serverprevtime, serverdeltatime;
\r
239 .float damageforcescale;
\r
240 .void(float thisdmg, float hittype, vector org, vector thisforce) event_damage;
\r
243 float angles_held_status;
\r
244 vector angles_held;
\r
248 float hud_total_prey;
\r