-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqw.qc
399 lines (363 loc) · 7.79 KB
/
qw.qc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
/*
* QW-TF2003-qc
* Copyright (C) 2003-2004 [sd] angel
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
void () SUB_CalcMoveDone;
void () SUB_CalcAngleMoveDone;
void () SUB_Null;
void () SUB_UseTargets;
void () SUB_Remove;
void (entity targ, entity inflictor, entity attacker, float damage) T_Damage;
float (entity e, float healamount, float ignore) T_Heal;
float (entity targ, entity inflictor) CanDamage;
void (entity Goal, entity AP, entity ActivatingGoal) AttemptToActivate;
.float playerclass;
.float nextpc;
.float last_impulse;
.float armorclass;
.float tf_items;
.float tf_items_flags;
.float no_grenades_1;
.float no_grenades_2;
.float tp_grenades_1;
.float tp_grenades_2;
.float got_aliases;
.float cheat_check;
.float is_removed;
.float is_undercover;
.float is_building;
.float is_detpacking;
.float is_feigning;
.float is_unabletospy;
.float has_disconnected;
.float tfstate;
.entity linked_list;
.entity observer_list;
.float maxammo_shells;
.float maxammo_nails;
.float maxammo_cells;
.float maxammo_rockets;
.float items_allowed;
.float armor_allowed;
.float maxarmor;
.float maxfbspeed;
.float maxstrafespeed;
.float weaponmode;
.float motd;
.float current_menu;
.float menu_count;
.float menu_displaytime;
float toggleflags;
float respawn_delay_time;
float number_of_teams;
float illegalclasses;
float illegalclasses1;
float illegalclasses2;
float illegalclasses3;
float illegalclasses4;
float civilianteams;
float team1col;
float team2col;
float team3col;
float team4col;
float team1score;
float team2score;
float team3score;
float team4score;
float team1lives;
float team2lives;
float team3lives;
float team4lives;
float team1maxplayers;
float team2maxplayers;
float team3maxplayers;
float team4maxplayers;
float team1advantage;
float team2advantage;
float team3advantage;
float team4advantage;
.float team_no;
.float lives;
.float infection_team_no;
float CTF_Map = 0;
float coop;
float rj;
.entity building;
.float building_wait;
.entity real_owner;
.float has_dispenser;
.float has_sentry;
.float real_frags;
.float respawn_time;
.float suicide_time;
.float weapons_carried;
.float current_weapon;
.float last_weapon;
.float last_weaponmode;
.float ammo_medikit;
.float maxammo_medikit;
.float ammo_detpack;
.float maxammo_detpack;
.float reload_shotgun;
.float reload_super_shotgun;
.float reload_grenade_launcher;
.float reload_rocket_launcher;
.float heat;
.float immune_to_check;
.float last_saveme_sound;
.float no_active_nail_grens;
.float goal_no;
.float group_no;
.float goal_state;
.float owned_by;
.float goal_activation;
.float goal_effects;
.float goal_result;
.float goal_group;
.float else_goal;
.float if_goal_is_active;
.float if_goal_is_inactive;
.float if_goal_is_removed;
.float if_group_is_active;
.float if_group_is_inactive;
.float if_group_is_removed;
.float activate_goal_no;
.float inactivate_goal_no;
.float remove_goal_no;
.float restore_goal_no;
.float activate_group_no;
.float inactivate_group_no;
.float remove_group_no;
.float restore_group_no;
.vector goal_min;
.vector goal_max;
.float has_item_from_group;
.float hasnt_item_from_group;
.float remove_item_group;
.float return_item_no;
.float if_item_has_moved;
.float if_item_hasnt_moved;
.float remove_spawnpoint;
.float restore_spawnpoint;
.float remove_spawngroup;
.float restore_spawngroup;
.float display_item_status1;
.float display_item_status2;
.float display_item_status3;
.float display_item_status4;
.string team_str_home;
.string team_str_moved;
.string team_str_carried;
.string non_team_str_home;
.string non_team_str_moved;
.string non_team_str_carried;
.float ex_skill_min;
.float ex_skill_max;
.float increase_team1;
.float increase_team2;
.float increase_team3;
.float increase_team4;
.string broadcast;
.string team_broadcast;
.string non_team_broadcast;
.string owners_team_broadcast;
.string netname_broadcast;
.string netname_team_broadcast;
.string netname_non_team_broadcast;
.string netname_owners_team_broadcast;
.string team_drop;
.string non_team_drop;
.string netname_team_drop;
.string netname_non_team_drop;
string team_menu_string;
.float all_active;
.float item_list;
float item_list_bit;
.float delay_time;
.float dont_do_triggerwork;
.float g_a;
.float g_e;
.string t_s_h;
.string t_s_m;
.string t_s_c;
.string n_s_h;
.string n_s_m;
.string n_s_c;
.string b_b;
.string b_t;
.string b_n;
.string b_o;
.string n_b;
.string n_t;
.string n_n;
.string n_o;
.string d_t;
.string d_n;
.string d_n_t;
.string d_n_n;
.float h_i_g;
.float hn_i_g;
.float r_i_g;
.float a_s;
.float a_n;
.float a_r;
.float a_c;
.float rv_s_h;
.float rs_s_h;
.float rv_gr;
.float rs_gr;
.float rv_g;
.float rs_g;
.float has_abbreviated;
float num_world_flames;
.float numflames;
.string flame_id;
float num_world_pipebombs;
float num_team_pipebombs_1;
float num_team_pipebombs_2;
float num_team_pipebombs_3;
float num_team_pipebombs_4;
float num_world_flares;
float num_team_flares_1;
float num_team_flares_2;
float num_team_flares_3;
float num_team_flares_4;
float num_world_ammoboxes;
float num_team_ammoboxes_1;
float num_team_ammoboxes_2;
float num_team_ammoboxes_3;
float num_team_ammoboxes_4;
.float undercover_team;
.float undercover_skin;
.string undercover_name;
.float hook_out;
float live_camera;
.float camdist;
.vector camangle;
.entity camera_list;
float already_chosen_map;
.entity hook;
.float on_hook;
.float fire_held_down;
.vector head_shot_vector;
.float leg_damage;
.float cheat_level;
.float FlashTime;
.float nailpos;
.float StatusRefreshTime;
.float StatusBarSize;
.float StatusBarRes;
.float ScannerOn;
.float ScanRange;
float clanbattle;
float clan_scores_dumped;
float cb_prematch_time;
float cb_ceasefire_time;
float game_locked;
float team1frags;
float team2frags;
float team3frags;
float team4frags;
float last_id;
.float tf_id;
float spy_off;
float old_grens;
float invis_only;
float allow_hook;
float flagem_checked;
float cease_fire;
.float teamkills;
float autokick_time;
float autokick_kills;
.float is_admin;
.float admin_mode;
.entity admin_use;
float deathmsg;
float birthday;
//angel fix
float sentry_type;
float disable_grens;
float disable_powerups;
float detpack_block;
float flag_timer;
float snip_fps;
float snip_range_fix;
float snip_ammo;
float snip_time;
float gren2box;
float sgppl;
float random_tf_spawn;
float new_flash;
float allow_drop_goal;
float add_pipe;
float new_gas;
float topcolor_check;
float tc1;
float tc2;
float tc3;
float tc4;
float cheat_pause;
#ifdef TG
///Cheats
float unlimit_ammo;
float unlimit_grens;
float godmode;
float gren_effect;
float gren_time;
float fullflash_for_self;
.float gren_eff_time;
///SG
float sg_allow_fire;
float sg_allow_find;
float sg_fire_type;
//detpacks
float detpack_clip;
float detpack_disarm;
float detpack_drop;
vector saved_position;
vector saved_angle;
vector saved_velocity;
float tg_sbar;
float disable_reload;
#endif
.float tf_impulse;
.float imp1;
.float imp2;
.float imp3;
.float imp4;
.float allow_snip_time;
.float assault_min_shells;
float firstplayer;
float new_build_check;
float sv262;
float mtfl;
void (float psize, entity p) KickPlayer =
{
msg_entity = p;
if (psize > -3)
WriteByte(1, 34);
else
WriteByte(1, 35);
};
void () muzzleflash =
{
WriteByte(4, 39);
WriteEntity(4, self);
multicast(self.origin, 2);
};