]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/mutators/mutator/buffs/all.inc
Merge branch 'master' into terencehill/less_entities
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / buffs / all.inc
1 string Buff_UndeprecateName(string buffname)
2 {
3     switch(buffname)
4     {
5         case "ammoregen": return "ammo";
6         case "haste": case "scout": return "speed";
7         case "guard": return "resistance";
8         case "revival": case "regen": return "medic";
9         case "invis": return "invisible";
10         case "jumper": return "jump";
11         default: return buffname;
12     }
13 }
14
15 REGISTER_BUFF(AMMO) {
16     this.m_name = _("Ammo");
17     this.netname = "ammo";
18     this.m_skin = 3;
19     this.m_color = '0.76 1 0.1';
20 }
21 BUFF_SPAWNFUNCS(ammo, BUFF_AMMO)
22 BUFF_SPAWNFUNC_Q3TA_COMPAT(ammoregen, BUFF_AMMO)
23
24 REGISTER_BUFF(RESISTANCE) {
25     this.m_name = _("Resistance");
26     this.netname = "resistance";
27     this.m_skin = 0;
28     this.m_color = '0.36 1 0.07';
29 }
30 BUFF_SPAWNFUNCS(resistance, BUFF_RESISTANCE)
31 BUFF_SPAWNFUNC_Q3TA_COMPAT(guard, BUFF_RESISTANCE)
32
33 REGISTER_BUFF(SPEED) {
34     this.m_name = _("Speed");
35     this.netname = "speed";
36     this.m_skin = 9;
37     this.m_color = '0.1 1 0.84';
38 }
39 BUFF_SPAWNFUNCS(speed, BUFF_SPEED)
40 BUFF_SPAWNFUNC_Q3TA_COMPAT(haste, BUFF_SPEED)
41 BUFF_SPAWNFUNC_Q3TA_COMPAT(scout, BUFF_SPEED)
42
43 REGISTER_BUFF(MEDIC) {
44     this.m_name = _("Medic");
45     this.netname = "medic";
46     this.m_skin = 1;
47     this.m_color = '1 0.12 0';
48 }
49 BUFF_SPAWNFUNCS(medic, BUFF_MEDIC)
50 BUFF_SPAWNFUNC_Q3TA_COMPAT(regen, BUFF_MEDIC)
51 BUFF_SPAWNFUNC_Q3TA_COMPAT(revival, BUFF_MEDIC)
52
53 REGISTER_BUFF(BASH) {
54     this.m_name = _("Bash");
55     this.netname = "bash";
56     this.m_skin = 5;
57     this.m_color = '1 0.39 0';
58 }
59 BUFF_SPAWNFUNCS(bash, BUFF_BASH)
60 BUFF_SPAWNFUNC_Q3TA_COMPAT(doubler, BUFF_BASH)
61
62 REGISTER_BUFF(VAMPIRE) {
63     this.m_name = _("Vampire");
64     this.netname = "vampire";
65     this.m_skin = 2;
66     this.m_color = '1 0 0.24';
67 }
68 BUFF_SPAWNFUNCS(vampire, BUFF_VAMPIRE)
69
70 REGISTER_BUFF(DISABILITY) {
71     this.m_name = _("Disability");
72     this.netname = "disability";
73     this.m_skin = 7;
74     this.m_color = '0.94 0.3 1';
75 }
76 BUFF_SPAWNFUNCS(disability, BUFF_DISABILITY)
77
78 REGISTER_BUFF(VENGEANCE) {
79     this.m_name = _("Vengeance");
80     this.netname = "vengeance";
81     this.m_skin = 15;
82     this.m_color = '1 0.23 0.61';
83 }
84 BUFF_SPAWNFUNCS(vengeance, BUFF_VENGEANCE)
85
86 REGISTER_BUFF(JUMP) {
87     this.m_name = _("Jump");
88     this.netname = "jump";
89     this.m_skin = 10;
90     this.m_color = '0.24 0.78 1';
91 }
92 BUFF_SPAWNFUNCS(jump, BUFF_JUMP)
93 BUFF_SPAWNFUNC_Q3TA_COMPAT(jumper, BUFF_JUMP)
94
95 REGISTER_BUFF(INVISIBLE) {
96     this.m_name = _("Invisible");
97     this.netname = "invisible";
98     this.m_skin = 12;
99     this.m_color = '0.5 0.5 1';
100 }
101 BUFF_SPAWNFUNCS(invisible, BUFF_INVISIBLE)
102 BUFF_SPAWNFUNC_Q3TA_COMPAT(invis, BUFF_INVISIBLE)
103
104 REGISTER_BUFF(INFERNO) {
105     this.m_name = _("Inferno");
106     this.netname = "inferno";
107     this.m_skin = 16;
108     this.m_color = '1 0.62 0';
109 }
110 BUFF_SPAWNFUNCS(inferno, BUFF_INFERNO)
111
112 REGISTER_BUFF(SWAPPER) {
113     this.m_name = _("Swapper");
114     this.netname = "swapper";
115     this.m_skin = 17;
116     this.m_color = '0.63 0.36 1';
117 }
118 BUFF_SPAWNFUNCS(swapper, BUFF_SWAPPER)
119
120 REGISTER_BUFF(MAGNET) {
121     this.m_name = _("Magnet");
122     this.netname = "magnet";
123     this.m_skin = 18;
124     this.m_color = '1 0.95 0.18';
125 }
126 BUFF_SPAWNFUNCS(magnet, BUFF_MAGNET)
127
128 REGISTER_BUFF(LUCK) {
129     this.m_name = _("Luck");
130     this.netname = "luck";
131     this.m_skin = 19;
132     this.m_color = '1 0.23 0.44';
133 }
134 BUFF_SPAWNFUNCS(luck, BUFF_LUCK)
135
136 REGISTER_BUFF(FLIGHT) {
137     this.m_name = _("Flight");
138     this.netname = "flight";
139     this.m_skin = 11;
140     this.m_color = '0.23 0.44 1';
141 }
142 BUFF_SPAWNFUNCS(flight, BUFF_FLIGHT)
143 BUFF_SPAWNFUNC_Q3TA_COMPAT(flight, BUFF_FLIGHT)