9 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
10 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
11 //YOU HAVE BEEN WARNED.
13 //feel free to look though. :)
20 ==============================================================================
22 SOURCE FOR GLOBALVARS_T C STRUCTURE
24 ==============================================================================
36 //int player_localentnum; //the entnum of the VIEW entity
37 //int player_localnum; //the playernum
38 //float maxclients; //a constant filled in by the engine. gah, portability eh?
40 //float clientcommandframe; //player movement
41 //float servercommandframe; //clientframe echoed off the server
46 // global variables set by built in functions
48 //vector v_forward, v_up, v_right; // set by makevectors()
50 // set by traceline / tracebox
51 //float trace_allsolid;
52 //float trace_startsolid;
53 //float trace_fraction;
54 //vector trace_endpos;
55 //vector trace_plane_normal;
56 //float trace_plane_dist;
59 //float trace_inwater;
62 // required prog functions
66 float(float f, float t, float n) CSQC_InputEvent;
67 void(float w, float h) CSQC_UpdateView;
68 bool(string s) CSQC_ConsoleCommand;
70 //these fields are read and set by the default player physics
75 //retrieved from the current movement commands (read by player physics)
76 //float input_timelength;
77 //vector input_angles;
78 //vector input_movevalues; //forwards, right, up.
79 //int input_buttons; //attack, use, jump (default physics only uses jump)
81 //float movevar_gravity;
82 //float movevar_stopspeed;
83 //float movevar_maxspeed;
84 //float movevar_spectatormaxspeed; //used by NOCLIP movetypes.
85 //float movevar_accelerate;
86 //float movevar_airaccelerate;
87 //float movevar_wateraccelerate;
88 //float movevar_friction;
89 //float movevar_waterfriction;
90 //float movevar_entgravity; //the local player's gravity field. Is a multiple (1 is the normal value)
92 //================================================
93 //void end_sys_globals; // flag for structure dumping
94 //================================================
97 ==============================================================================
99 SOURCE FOR ENTVARS_T C STRUCTURE
101 ==============================================================================
105 // system fields (*** = do not set in prog code, maintained by C code)
107 .int modelindex; // *** model index in the precached list
108 .vector absmin, absmax; // *** origin + mins / maxs
110 .int entnum; // *** the ent number as on the server
117 .vector origin; // ***
118 .vector oldorigin; // ***
123 .string classname; // spawn function
129 .vector mins, maxs; // bounding box extents reletive to origin
130 .vector size; // maxs - mins
135 .void() blocked; // for doors or plats, called when can't push other
149 .entity owner; // who launched a missile
151 //================================================
152 //void end_sys_fields; // flag for structure dumping
153 //================================================
155 // Additional OPTIONAL Fields and Globals
156 //float intermission;
157 float scoreboard_showscores;
158 float scoreboard_showaccuracy;
166 // vector dmg_origin;
168 // Darkplaces Render Modifications
177 .float enttype; // entity type sent from server
178 .int sv_entnum; // entity number sent from server
182 float vid_conwidth, vid_conheight;
186 float race_checkpoint;
189 float race_checkpointtime;
190 float race_previousbesttime;
191 string race_previousbestname;
192 float race_nextcheckpoint;
193 float race_nextbesttime;
194 string race_nextbestname;
195 float race_penaltyaccumulator; // qualifying: total penalty time in tenths
196 float race_penaltyeventtime; // time when the player got the penalty
197 float race_penaltytime; // duration of penalty time, in tenths
198 string race_penaltyreason; // reason for penalty
199 float race_server_record; // server record
200 float race_speedaward;
201 string race_speedaward_holder;
202 float race_speedaward_alltimebest;
203 string race_speedaward_alltimebest_holder;
206 float race_mycheckpoint;
207 float race_mycheckpointtime;
208 float race_mycheckpointdelta;
209 float race_mycheckpointlapsdelta;
210 string race_mycheckpointenemy;
211 float race_othercheckpoint;
212 float race_othercheckpointtime;
213 float race_othercheckpointdelta;
214 float race_othercheckpointlapsdelta;
215 string race_othercheckpointenemy;
216 float scoreboard_showscores_force;
218 string race_status_name;
225 float spectatee_status;
230 // database for misc stuff
233 vector hook_shotorigin[4];
234 vector lightning_shotorigin[4];
238 float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
241 float servertime, serverprevtime, serverdeltatime;
245 .float damageforcescale;
246 const float MIN_DAMAGEEXTRARADIUS = 2;
247 const float MAX_DAMAGEEXTRARADIUS = 16;
248 .float damageextraradius;
249 .void(float thisdmg, int hittype, vector org, vector thisforce) event_damage;
252 float angles_held_status;
259 float w_issilent, w_random;
260 vector w_org, w_backoff;
265 float minelayer_maxmines;
267 float hagar_maxrockets;
271 string weaponorder_byimpulse;
272 string weaponorder_bypriority;
274 float vortex_charge_movingavg;
278 float uid2name_dialog;
280 .bool csqcmodel_isdead; // used by shownames and miscfunctions (float getplayerisdead(float) {}) to know when a player is dead
282 #define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1)
284 float g_balance_porto_secondary;