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