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