]> de.git.xonotic.org Git - voretournament/voretournament.git/blob - data/qcsrc/client/Defs.qc
e9ba774fcb08300ecd8431554628b806035f44cd
[voretournament/voretournament.git] / data / 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\r
2 \r
3 \r
4 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.\r
5 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.\r
6 //YOU HAVE BEEN WARNED.\r
7 \r
8 //feel free to look though. :)\r
9 \r
10 \r
11 \r
12 \r
13 \r
14 /*\r
15 ==============================================================================\r
16 \r
17                         SOURCE FOR GLOBALVARS_T C STRUCTURE\r
18 \r
19 ==============================================================================\r
20 */\r
21 \r
22 //\r
23 // system globals\r
24 //\r
25 entity          self;\r
26 entity          other;\r
27 entity          world;\r
28 float           time;\r
29 float           frametime;\r
30 \r
31 float           player_localentnum;     //the entnum\r
32 float           player_localnum;        //the playernum\r
33 float           maxclients;     //a constant filled in by the engine. gah, portability eh?\r
34 \r
35 float           clientcommandframe;     //player movement\r
36 float           servercommandframe;     //clientframe echoed off the server\r
37 \r
38 string          mapname;\r
39 \r
40 //\r
41 // global variables set by built in functions\r
42 //\r
43 vector          v_forward, v_up, v_right;       // set by makevectors()\r
44 \r
45 // set by traceline / tracebox\r
46 float           trace_allsolid;\r
47 float           trace_startsolid;\r
48 float           trace_fraction;\r
49 vector          trace_endpos;\r
50 vector          trace_plane_normal;\r
51 float           trace_plane_dist;\r
52 entity          trace_ent;\r
53 float           trace_inopen;\r
54 float           trace_inwater;\r
55 \r
56 //\r
57 // required prog functions\r
58 //\r
59 void()          CSQC_Init;\r
60 void()          CSQC_Shutdown;\r
61 float(float f, float t, float n)        CSQC_InputEvent;\r
62 void(float w, float h)          CSQC_UpdateView;\r
63 float(string s) CSQC_ConsoleCommand;\r
64 \r
65 //these fields are read and set by the default player physics\r
66 vector          pmove_org;\r
67 vector          pmove_vel;\r
68 vector          pmove_mins;\r
69 vector          pmove_maxs;\r
70 //retrieved from the current movement commands (read by player physics)\r
71 float           input_timelength;\r
72 vector          input_angles;\r
73 vector          input_movevalues;       //forwards, right, up.\r
74 float           input_buttons;          //attack, use, jump (default physics only uses jump)\r
75 \r
76 float           movevar_gravity;\r
77 float           movevar_stopspeed;\r
78 float           movevar_maxspeed;\r
79 float           movevar_spectatormaxspeed;      //used by NOCLIP movetypes.\r
80 float           movevar_accelerate;\r
81 float           movevar_airaccelerate;\r
82 float           movevar_wateraccelerate;\r
83 float           movevar_friction;\r
84 float           movevar_waterfriction;\r
85 float           movevar_entgravity;     //the local player's gravity field. Is a multiple (1 is the normal value)\r
86 \r
87 //================================================\r
88 void            end_sys_globals;                // flag for structure dumping\r
89 //================================================\r
90 \r
91 /*\r
92 ==============================================================================\r
93 \r
94                         SOURCE FOR ENTVARS_T C STRUCTURE\r
95 \r
96 ==============================================================================\r
97 */\r
98 \r
99 //\r
100 // system fields (*** = do not set in prog code, maintained by C code)\r
101 //\r
102 .float          modelindex;             // *** model index in the precached list\r
103 .vector         absmin, absmax; // *** origin + mins / maxs\r
104 \r
105 .float          entnum; // *** the ent number as on the server\r
106 .float          drawmask;\r
107 .void()         predraw;\r
108 \r
109 .float          movetype;\r
110 .float          solid;\r
111 \r
112 .vector         origin;                 // ***\r
113 .vector         oldorigin;              // ***\r
114 .vector         velocity;\r
115 .vector         angles;\r
116 .vector         avelocity;\r
117 \r
118 .string         classname;              // spawn function\r
119 .string         model;\r
120 .float          frame;\r
121 .float          skin;\r
122 .float          effects;\r
123 \r
124 .vector         mins, maxs;             // bounding box extents reletive to origin\r
125 .vector         size;                   // maxs - mins\r
126 \r
127 .void()         touch;\r
128 .void()         use;\r
129 .void()         think;\r
130 .void()         blocked;                // for doors or plats, called when can't push other\r
131 \r
132 .float          nextthink;\r
133 \r
134 .entity         chain;\r
135 \r
136 .string         netname;\r
137 \r
138 .entity         enemy;\r
139 \r
140 .float          flags;\r
141 \r
142 .float          colormap;\r
143 \r
144 .entity         owner;          // who launched a missile\r
145 \r
146 //================================================\r
147 void            end_sys_fields;                 // flag for structure dumping\r
148 //================================================\r
149 \r
150 // Additional OPTIONAL Fields and Globals\r
151 float           intermission;\r
152 float           sb_showscores;\r
153 float           sb_showaccuracy;\r
154 .string         message;\r
155 .float renderflags;\r
156 // float                coop;\r
157 // float                deathmatch;\r
158 \r
159 float           dmg_take;\r
160 // float                dmg_save;\r
161 // vector               dmg_origin;\r
162 \r
163 // Darkplaces Render Modifications\r
164 #if 0\r
165 .float alpha;\r
166 .float renderflags;\r
167 .vector colormod;\r
168 .float scale;\r
169 #endif\r
170 \r
171 // Basic variables\r
172 .float enttype; // entity type sent from server\r
173 .float sv_entnum; // entity number sent from server\r
174 .float team;\r
175 .float team_size;\r
176 \r
177 float vid_conwidth, vid_conheight;\r
178 float binddb;\r
179 \r
180 //      Announcer\r
181 string announce_snd;\r
182 \r
183 // QUALIFYING\r
184 float race_checkpoint;\r
185 float race_time;\r
186 float race_laptime;\r
187 float race_checkpointtime;\r
188 float race_previousbesttime;\r
189 string race_previousbestname;\r
190 float race_nextcheckpoint;\r
191 float race_nextbesttime;\r
192 string race_nextbestname;\r
193 float race_penaltyaccumulator; // qualifying: total penalty time in tenths\r
194 float race_penaltyeventtime; // time when the player got the penalty\r
195 float race_penaltytime; // duration of penalty time, in tenths\r
196 string race_penaltyreason; // reason for penalty\r
197 float race_server_record; // server record\r
198 float race_speedaward;\r
199 string race_speedaward_holder;\r
200 float race_speedaward_alltimebest;\r
201 string race_speedaward_alltimebest_holder;\r
202 \r
203 // RACE\r
204 float race_mycheckpoint;\r
205 float race_mycheckpointtime;\r
206 float race_mycheckpointdelta;\r
207 float race_mycheckpointlapsdelta;\r
208 string race_mycheckpointenemy;\r
209 float race_othercheckpoint;\r
210 float race_othercheckpointtime;\r
211 float race_othercheckpointdelta;\r
212 float race_othercheckpointlapsdelta;\r
213 string race_othercheckpointenemy;\r
214 float sb_showscores_force;\r
215 float race_status;\r
216 string race_status_name;\r
217 float race_myrank;\r
218 \r
219 // Spectating\r
220 float spectatee_status;\r
221 \r
222 // short mapname\r
223 string shortmapname;\r
224 \r
225 //remaining maptime announcer sounds, true when sound was already played\r
226 float announcer_1min;\r
227 float announcer_5min;\r
228 \r
229 // database for misc stuff\r
230 float tempdb;\r
231 float ClientProgsDB;\r
232 vector grabber_shotorigin;\r
233 \r
234 #ifdef BLURTEST\r
235 float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;\r
236 #endif\r
237 \r
238 float servertime, serverprevtime, serverdeltatime;\r
239 \r
240 float ticrate;\r
241 \r
242 .float damageforcescale;\r
243 .void(float thisdmg, float hittype, vector org, vector thisforce) event_damage;\r
244 \r
245 // only for Porto\r
246 float angles_held_status;\r
247 vector angles_held;\r
248 \r
249 float power_boot;\r
250 \r
251 float hud_total_prey;\r