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
153 float sb_showaccuracy;
154 float sbar_currentammo;
162 // vector dmg_origin;
164 // Darkplaces Render Modifications
173 .float enttype; // entity type sent from server
174 .float sv_entnum; // entity number sent from server
178 float vid_conwidth, vid_conheight;
182 float race_checkpoint;
185 float race_checkpointtime;
186 float race_previousbesttime;
187 string race_previousbestname;
188 float race_nextcheckpoint;
189 float race_nextbesttime;
190 string race_nextbestname;
191 float race_penaltyaccumulator; // qualifying: total penalty time in tenths
192 float race_penaltyeventtime; // time when the player got the penalty
193 float race_penaltytime; // duration of penalty time, in tenths
194 string race_penaltyreason; // reason for penalty
197 float race_mycheckpoint;
198 float race_mycheckpointtime;
199 float race_mycheckpointdelta;
200 float race_mycheckpointlapsdelta;
201 string race_mycheckpointenemy;
202 float race_othercheckpoint;
203 float race_othercheckpointtime;
204 float race_othercheckpointdelta;
205 float race_othercheckpointlapsdelta;
206 string race_othercheckpointenemy;
207 float sb_showscores_force;
213 float spectatee_status;
218 //remaining maptime announcer sounds, true when sound was already played
219 float announcer_1min;
220 float announcer_5min;
222 // database for misc stuff
224 vector hook_shotorigin;
227 float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
230 float servertime, serverprevtime, serverdeltatime;
234 .float damageforcescale;
235 .void(float thisdmg, float hittype, vector org, vector thisforce) event_damage;
238 float angles_held_status;