]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/Defs.qc
Merge remote branch 'origin/divVerent/virtual-mirror-damage' into fruitiex/hud_damage...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / Defs.qc
1 #pragma flag off fastarrays // make dp behave with new fteqcc versions. remove when dp bug with fteqcc fastarrays is fixed
2
3
4 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
5 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
6 //YOU HAVE BEEN WARNED.
7
8 //feel free to look though. :)
9
10
11
12
13
14 /*
15 ==============================================================================
16
17                         SOURCE FOR GLOBALVARS_T C STRUCTURE
18
19 ==============================================================================
20 */
21
22 //
23 // system globals
24 //
25 entity          self;
26 entity          other;
27 entity          world;
28 float           time;
29 float           frametime;
30
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?
34
35 float           clientcommandframe;     //player movement
36 float           servercommandframe;     //clientframe echoed off the server
37
38 string          mapname;
39
40 //
41 // global variables set by built in functions
42 //
43 vector          v_forward, v_up, v_right;       // set by makevectors()
44
45 // set by traceline / tracebox
46 float           trace_allsolid;
47 float           trace_startsolid;
48 float           trace_fraction;
49 vector          trace_endpos;
50 vector          trace_plane_normal;
51 float           trace_plane_dist;
52 entity          trace_ent;
53 float           trace_inopen;
54 float           trace_inwater;
55
56 //
57 // required prog functions
58 //
59 void()          CSQC_Init;
60 void()          CSQC_Shutdown;
61 float(float f, float t, float n)        CSQC_InputEvent;
62 void(float w, float h)          CSQC_UpdateView;
63 float(string s) CSQC_ConsoleCommand;
64
65 //these fields are read and set by the default player physics
66 vector          pmove_org;
67 vector          pmove_vel;
68 vector          pmove_mins;
69 vector          pmove_maxs;
70 //retrieved from the current movement commands (read by player physics)
71 float           input_timelength;
72 vector          input_angles;
73 vector          input_movevalues;       //forwards, right, up.
74 float           input_buttons;          //attack, use, jump (default physics only uses jump)
75
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)
86
87 //================================================
88 void            end_sys_globals;                // flag for structure dumping
89 //================================================
90
91 /*
92 ==============================================================================
93
94                         SOURCE FOR ENTVARS_T C STRUCTURE
95
96 ==============================================================================
97 */
98
99 //
100 // system fields (*** = do not set in prog code, maintained by C code)
101 //
102 .float          modelindex;             // *** model index in the precached list
103 .vector         absmin, absmax; // *** origin + mins / maxs
104
105 .float          entnum; // *** the ent number as on the server
106 .float          drawmask;
107 .void()         predraw;
108
109 .float          movetype;
110 .float          solid;
111
112 .vector         origin;                 // ***
113 .vector         oldorigin;              // ***
114 .vector         velocity;
115 .vector         angles;
116 .vector         avelocity;
117
118 .string         classname;              // spawn function
119 .string         model;
120 .float          frame;
121 .float          skin;
122 .float          effects;
123
124 .vector         mins, maxs;             // bounding box extents reletive to origin
125 .vector         size;                   // maxs - mins
126
127 .void()         touch;
128 .void()         use;
129 .void()         think;
130 .void()         blocked;                // for doors or plats, called when can't push other
131
132 .float          nextthink;
133
134 .entity         chain;
135
136 .string         netname;
137
138 .entity         enemy;
139
140 .float          flags;
141
142 .float          colormap;
143
144 .entity         owner;          // who launched a missile
145
146 //================================================
147 void            end_sys_fields;                 // flag for structure dumping
148 //================================================
149
150 // Additional OPTIONAL Fields and Globals
151 float           intermission;
152 float           scoreboard_showscores;
153 float           scoreboard_showaccuracy;
154 .string         message;
155 .float renderflags;
156 // float                coop;
157 // float                deathmatch;
158
159 float           dmg_take;
160 // float                dmg_save;
161 // vector               dmg_origin;
162
163 // Darkplaces Render Modifications
164 #if 0
165 .float alpha;
166 .float renderflags;
167 .vector colormod;
168 .float scale;
169 #endif
170
171 // Basic variables
172 .float enttype; // entity type sent from server
173 .float sv_entnum; // entity number sent from server
174 .float team;
175 .float team_size;
176
177 float vid_conwidth, vid_conheight;
178 float binddb;
179
180 //      Announcer
181 string announce_snd;
182
183 // QUALIFYING
184 float race_checkpoint;
185 float race_time;
186 float race_laptime;
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;
202
203 // RACE
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;
215 float race_status;
216 string race_status_name;
217 float race_myrank;
218
219 // Nexball
220 float nb_pb_period;
221
222 // Spectating
223 float spectatee_status;
224
225 // short mapname
226 string shortmapname;
227
228 //remaining maptime announcer sounds, true when sound was already played
229 float announcer_1min;
230 float announcer_5min;
231
232 // database for misc stuff
233 float tempdb;
234 float ClientProgsDB;
235 vector hook_shotorigin[4];
236 vector electro_shotorigin[4];
237 vector gauntlet_shotorigin[4];
238
239 #ifdef BLURTEST
240 float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
241 #endif
242
243 float servertime, serverprevtime, serverdeltatime;
244
245 float ticrate;
246
247 .float damageforcescale;
248 .void(float thisdmg, float hittype, vector org, vector thisforce) event_damage;
249
250 // only for Porto
251 float angles_held_status;
252 vector angles_held;
253
254 // weapons
255 .float silent;
256
257 float w_deathtype, w_issilent, w_random;
258 string w_deathtypestring;
259 vector w_org, w_backoff;
260
261 float campingrifle_scope;
262 float nex_scope;
263
264 float cr_maxbullets;
265
266 float bgmtime;
267
268 string weaponorder_byimpulse;
269 string weaponorder_bypriority;
270
271 float nex_charge_movingavg;
272
273 float serverflags;
274
275 float uid2name_dialog;