1 #pragma flag off fastarrays // make dp behave with new fteqcc versions. remove when dp bug with fteqcc fastarrays is fixed
4 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
5 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
6 //YOU HAVE BEEN WARNED.
8 //feel free to look though. :)
15 ==============================================================================
17 SOURCE FOR GLOBALVARS_T C STRUCTURE
19 ==============================================================================
31 float player_localentnum; //the entnum
32 float player_localnum; //the playernum
33 float maxclients; //a constant filled in by the engine. gah, portability eh?
35 float clientcommandframe; //player movement
36 float servercommandframe; //clientframe echoed off the server
41 // global variables set by built in functions
43 vector v_forward, v_up, v_right; // set by makevectors()
45 // set by traceline / tracebox
47 float trace_startsolid;
50 vector trace_plane_normal;
51 float trace_plane_dist;
57 // required prog functions
61 float(float f, float t, float n) CSQC_InputEvent;
62 void(float w, float h) CSQC_UpdateView;
63 float(string s) CSQC_ConsoleCommand;
65 //these fields are read and set by the default player physics
70 //retrieved from the current movement commands (read by player physics)
71 float input_timelength;
73 vector input_movevalues; //forwards, right, up.
74 float input_buttons; //attack, use, jump (default physics only uses jump)
76 float movevar_gravity;
77 float movevar_stopspeed;
78 float movevar_maxspeed;
79 float movevar_spectatormaxspeed; //used by NOCLIP movetypes.
80 float movevar_accelerate;
81 float movevar_airaccelerate;
82 float movevar_wateraccelerate;
83 float movevar_friction;
84 float movevar_waterfriction;
85 float movevar_entgravity; //the local player's gravity field. Is a multiple (1 is the normal value)
87 //================================================
88 void end_sys_globals; // flag for structure dumping
89 //================================================
92 ==============================================================================
94 SOURCE FOR ENTVARS_T C STRUCTURE
96 ==============================================================================
100 // system fields (*** = do not set in prog code, maintained by C code)
102 .float modelindex; // *** model index in the precached list
103 .vector absmin, absmax; // *** origin + mins / maxs
105 .float entnum; // *** the ent number as on the server
112 .vector origin; // ***
113 .vector oldorigin; // ***
118 .string classname; // spawn function
124 .vector mins, maxs; // bounding box extents reletive to origin
125 .vector size; // maxs - mins
130 .void() blocked; // for doors or plats, called when can't push other
144 .entity owner; // who launched a missile
146 //================================================
147 void end_sys_fields; // flag for structure dumping
148 //================================================
150 // Additional OPTIONAL Fields and Globals
152 float scoreboard_showscores;
153 float scoreboard_showaccuracy;
161 // vector dmg_origin;
163 // Darkplaces Render Modifications
172 .float enttype; // entity type sent from server
173 .float sv_entnum; // entity number sent from server
177 float vid_conwidth, vid_conheight;
184 float race_checkpoint;
187 float race_checkpointtime;
188 float race_previousbesttime;
189 string race_previousbestname;
190 float race_nextcheckpoint;
191 float race_nextbesttime;
192 string race_nextbestname;
193 float race_penaltyaccumulator; // qualifying: total penalty time in tenths
194 float race_penaltyeventtime; // time when the player got the penalty
195 float race_penaltytime; // duration of penalty time, in tenths
196 string race_penaltyreason; // reason for penalty
197 float race_server_record; // server record
198 float race_speedaward;
199 string race_speedaward_holder;
200 float race_speedaward_alltimebest;
201 string race_speedaward_alltimebest_holder;
204 float race_mycheckpoint;
205 float race_mycheckpointtime;
206 float race_mycheckpointdelta;
207 float race_mycheckpointlapsdelta;
208 string race_mycheckpointenemy;
209 float race_othercheckpoint;
210 float race_othercheckpointtime;
211 float race_othercheckpointdelta;
212 float race_othercheckpointlapsdelta;
213 string race_othercheckpointenemy;
214 float scoreboard_showscores_force;
216 string race_status_name;
223 float spectatee_status;
228 //remaining maptime announcer sounds, true when sound was already played
229 float announcer_1min;
230 float announcer_5min;
232 // database for misc stuff
235 vector hook_shotorigin[4];
236 vector electro_shotorigin[4];
237 vector gauntlet_shotorigin[4];
240 float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
243 float servertime, serverprevtime, serverdeltatime;
247 .float damageforcescale;
248 .void(float thisdmg, float hittype, vector org, vector thisforce) event_damage;
251 float angles_held_status;
257 float w_deathtype, w_issilent, w_random;
258 string w_deathtypestring;
259 vector w_org, w_backoff;
264 float minelayer_maxmines;
266 float hagar_maxrockets;
270 string weaponorder_byimpulse;
271 string weaponorder_bypriority;
273 float nex_charge_movingavg;
277 float uid2name_dialog;