1 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
2 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
3 //YOU HAVE BEEN WARNED.
5 //feel free to look though. :)
12 ==============================================================================
14 SOURCE FOR GLOBALVARS_T C STRUCTURE
16 ==============================================================================
28 //int player_localentnum; //the entnum of the VIEW entity
29 //int player_localnum; //the playernum
30 //float maxclients; //a constant filled in by the engine. gah, portability eh?
32 //float clientcommandframe; //player movement
33 //float servercommandframe; //clientframe echoed off the server
38 // global variables set by built in functions
40 //vector v_forward, v_up, v_right; // set by makevectors()
42 // set by traceline / tracebox
43 //float trace_allsolid;
44 //float trace_startsolid;
45 //float trace_fraction;
46 //vector trace_endpos;
47 //vector trace_plane_normal;
48 //float trace_plane_dist;
51 //float trace_inwater;
54 // required prog functions
58 float(float f, float t, float n) CSQC_InputEvent;
59 void(float w, float h) CSQC_UpdateView;
60 bool(string s) CSQC_ConsoleCommand;
62 //these fields are read and set by the default player physics
67 //retrieved from the current movement commands (read by player physics)
68 //float input_timelength;
69 //vector input_angles;
70 //vector input_movevalues; //forwards, right, up.
71 //int input_buttons; //attack, use, jump (default physics only uses jump)
73 //float movevar_gravity;
74 //float movevar_stopspeed;
75 //float movevar_maxspeed;
76 //float movevar_spectatormaxspeed; //used by NOCLIP movetypes.
77 //float movevar_accelerate;
78 //float movevar_airaccelerate;
79 //float movevar_wateraccelerate;
80 //float movevar_friction;
81 //float movevar_waterfriction;
82 //float movevar_entgravity; //the local player's gravity field. Is a multiple (1 is the normal value)
84 //================================================
85 //void end_sys_globals; // flag for structure dumping
86 //================================================
89 ==============================================================================
91 SOURCE FOR ENTVARS_T C STRUCTURE
93 ==============================================================================
97 // system fields (*** = do not set in prog code, maintained by C code)
99 .int modelindex; // *** model index in the precached list
100 .vector absmin, absmax; // *** origin + mins / maxs
102 .int entnum; // *** the ent number as on the server
109 .vector origin; // ***
110 .vector oldorigin; // ***
115 .string classname; // spawn function
121 .vector mins, maxs; // bounding box extents reletive to origin
122 .vector size; // maxs - mins
127 .void() blocked; // for doors or plats, called when can't push other
141 .entity owner; // who launched a missile
143 //================================================
144 //void end_sys_fields; // flag for structure dumping
145 //================================================
147 // Additional OPTIONAL Fields and Globals
148 //float intermission;
149 float scoreboard_showscores;
150 float scoreboard_showaccuracy;
158 // vector dmg_origin;
160 // Darkplaces Render Modifications
169 .float enttype; // entity type sent from server
170 .int sv_entnum; // entity number sent from server
174 float vid_conwidth, vid_conheight;
178 float race_checkpoint;
181 float race_checkpointtime;
182 float race_previousbesttime;
183 string race_previousbestname;
184 float race_nextcheckpoint;
185 float race_nextbesttime;
186 string race_nextbestname;
187 float race_penaltyaccumulator; // qualifying: total penalty time in tenths
188 float race_penaltyeventtime; // time when the player got the penalty
189 float race_penaltytime; // duration of penalty time, in tenths
190 string race_penaltyreason; // reason for penalty
191 float race_server_record; // server record
192 float race_speedaward;
193 string race_speedaward_holder;
194 float race_speedaward_alltimebest;
195 string race_speedaward_alltimebest_holder;
198 float race_mycheckpoint;
199 float race_mycheckpointtime;
200 float race_mycheckpointdelta;
201 float race_mycheckpointlapsdelta;
202 string race_mycheckpointenemy;
203 float race_othercheckpoint;
204 float race_othercheckpointtime;
205 float race_othercheckpointdelta;
206 float race_othercheckpointlapsdelta;
207 string race_othercheckpointenemy;
208 float scoreboard_showscores_force;
210 string race_status_name;
217 float spectatee_status;
222 // database for misc stuff
225 vector hook_shotorigin[4];
226 vector lightning_shotorigin[4];
230 float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
233 float servertime, serverprevtime, serverdeltatime;
237 .float damageforcescale;
238 const float MIN_DAMAGEEXTRARADIUS = 2;
239 const float MAX_DAMAGEEXTRARADIUS = 16;
240 .float damageextraradius;
241 .void(float thisdmg, int hittype, vector org, vector thisforce) event_damage;
244 float angles_held_status;
251 float w_issilent, w_random;
252 vector w_org, w_backoff;
257 float minelayer_maxmines;
259 float hagar_maxrockets;
263 string weaponorder_byimpulse;
264 string weaponorder_bypriority;
266 float vortex_charge_movingavg;
270 float uid2name_dialog;
272 .bool csqcmodel_isdead; // used by shownames and miscfunctions (float getplayerisdead(float) {}) to know when a player is dead
274 #define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1)
276 float g_balance_porto_secondary;