]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/mutators/gamemode_towerdefense.qh
2086ee60eece723359ade3e28afbef4b1c39b133
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_towerdefense.qh
1 // Counters
2 float monster_count, totalmonsters;
3 float n_bruisers, n_cerberuses, n_ogres, n_shamblers, n_wyverns, n_mages, n_marines, n_knights, n_animuses, n_zombies, n_slimes, 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 float m_speed_run;
12 float m_speed_walk;
13
14 // Turret defs
15 .float turret_buff;
16
17 // TD defs
18 .float stat_current_wave;
19 .float stat_totalwaves;
20 .float spawntype;
21 float spawn_delay;
22 float max_current;
23 float ignore_turrets;
24 float SWARM_NORMAL      = 0;
25 float SWARM_WEAK        = 1;
26 float SWARM_STRONG      = 2;
27 float SWARM_FLY         = 3;
28 float SWARM_SWIM        = 4;
29 float build_time;
30 float td_dont_end;
31 void(float starting) wave_end;
32 .float turret_cnt;
33 float td_gencount;
34 void() spawnfunc_td_controller;
35 float current_phase;
36 #define PHASE_BUILD     1
37 #define PHASE_COMBAT    2
38
39 // Scores
40 #define SP_TD_KILLS     0
41 #define SP_TD_TURKILLS  2
42 #define SP_TD_SCORE     4
43 #define SP_TD_DEATHS    6
44 #define SP_TD_SUICIDES  8
45
46 // Controller
47 .float maxwaves;
48 .float monstercount;
49 .float startwave;
50 .float dontend;
51 .float maxturrets;
52 .float buildtime;
53 .float mspeed_run;
54 .float mspeed_walk;
55 .float spawndelay;
56 .float maxcurrent;
57 .float ignoreturrets;
58
59 // Generator
60 float gendestroyed;
61 float FL_GENERATOR = 2048;