]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/mutators/gamemode_td.qh
Merge branch 'master' into mario/monsters
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_td.qh
1 // Counters
2 float monster_count, totalmonsters;
3 float n_knights, n_dogs, n_ogres, n_shamblers, n_wizards, n_shalraths, n_soldiers, n_hknights, n_enforcers, n_demons, n_zombies, n_tarbabies, n_fish, n_spiders;
4 float current_monsters;
5 float waterspawns_count, flyspawns_count;
6 float wave_count, max_waves;
7 float max_turrets;
8
9 // Monster defs
10 .float drop_size;
11
12 // Turret defs
13 .float turret_buff;
14
15 // TD defs
16 .float stat_current_wave;
17 .float stat_totalwaves;
18 .float spawntype;
19 float SWARM_NORMAL      = 0;
20 float SWARM_WEAK        = 1;
21 float SWARM_STRONG      = 2;
22 float SWARM_FLY         = 3;
23 float SWARM_SWIM        = 4;
24 float build_time;
25 float td_dont_end;
26 void(float starting) wave_end;
27 .float turret_cnt;
28 float td_gencount;
29 void() spawnfunc_td_controller;
30 float current_phase;
31 #define PHASE_BUILD     1
32 #define PHASE_COMBAT    2
33
34 // Scores
35 #define SP_TD_KILLS     0
36 #define SP_TD_TURKILLS  2
37 #define SP_TD_SCORE     4
38 #define SP_TD_DEATHS    6
39 #define SP_TD_SUICIDES  8
40
41 // Controller
42 .float maxwaves;
43 .float monstercount;
44 .float startwave;
45 .float dontend;
46 .float maxturrets;
47 .float buildtime;
48
49 // Generator
50 float gendestroyed;
51 #define GENERATOR_MIN '-52 -52 -14'
52 #define GENERATOR_MAX '52 52 75'