1 string Buff_UndeprecateName(string buffname)
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;
21 this.m_name = _("Ammo");
22 this.netname = "ammo";
24 this.m_color = '0.76 1 0.1';
26 BUFF_SPAWNFUNCS(ammo, BUFF_AMMO)
27 BUFF_SPAWNFUNC_Q3COMPAT(item_ammoregen, BUFF_AMMO)
29 REGISTER_BUFF(RESISTANCE) {
30 this.m_name = _("Resistance");
31 this.netname = "resistance";
33 this.m_color = '0.36 1 0.07';
35 BUFF_SPAWNFUNCS(resistance, BUFF_RESISTANCE)
36 BUFF_SPAWNFUNC_Q3COMPAT(item_guard, BUFF_RESISTANCE)
38 REGISTER_BUFF(SPEED) {
39 this.m_name = _("Speed");
40 this.netname = "speed";
42 this.m_color = '0.1 1 0.84';
44 BUFF_SPAWNFUNCS(speed, BUFF_SPEED)
45 BUFF_SPAWNFUNC_Q3COMPAT(item_haste, BUFF_SPEED)
47 REGISTER_BUFF(MEDIC) {
48 this.m_name = _("Medic");
49 this.netname = "medic";
51 this.m_color = '1 0.12 0';
53 BUFF_SPAWNFUNCS(medic, BUFF_MEDIC)
54 BUFF_SPAWNFUNC_Q3COMPAT(item_regen, BUFF_MEDIC)
55 BUFF_SPAWNFUNC_Q3COMPAT(item_revival, BUFF_MEDIC)
58 this.m_name = _("Bash");
59 this.netname = "bash";
61 this.m_color = '1 0.39 0';
63 BUFF_SPAWNFUNCS(bash, BUFF_BASH)
64 BUFF_SPAWNFUNC_Q3COMPAT(item_scout, BUFF_BASH)
66 REGISTER_BUFF(VAMPIRE) {
67 this.m_name = _("Vampire");
68 this.netname = "vampire";
70 this.m_color = '1 0 0.24';
72 BUFF_SPAWNFUNCS(vampire, BUFF_VAMPIRE)
73 BUFF_SPAWNFUNC_Q3COMPAT(holdable_invulnerability, BUFF_VAMPIRE)
75 REGISTER_BUFF(DISABILITY) {
76 this.m_name = _("Disability");
77 this.netname = "disability";
79 this.m_color = '0.94 0.3 1';
81 BUFF_SPAWNFUNCS(disability, BUFF_DISABILITY)
83 REGISTER_BUFF(VENGEANCE) {
84 this.m_name = _("Vengeance");
85 this.netname = "vengeance";
87 this.m_color = '1 0.23 0.61';
89 BUFF_SPAWNFUNCS(vengeance, BUFF_VENGEANCE)
90 BUFF_SPAWNFUNC_Q3COMPAT(holdable_kamikaze, BUFF_VENGEANCE)
93 this.m_name = _("Jump");
94 this.netname = "jump";
96 this.m_color = '0.24 0.78 1';
98 BUFF_SPAWNFUNCS(jump, BUFF_JUMP)
99 BUFF_SPAWNFUNC_Q3COMPAT(item_jumper, BUFF_JUMP)
101 REGISTER_BUFF(INVISIBLE) {
102 this.m_name = _("Invisible");
103 this.netname = "invisible";
105 this.m_color = '0.5 0.5 1';
107 BUFF_SPAWNFUNCS(invisible, BUFF_INVISIBLE)
108 BUFF_SPAWNFUNC_Q3COMPAT(item_invis, BUFF_INVISIBLE)
110 REGISTER_BUFF(INFERNO) {
111 this.m_name = _("Inferno");
112 this.netname = "inferno";
114 this.m_color = '1 0.62 0';
116 BUFF_SPAWNFUNCS(inferno, BUFF_INFERNO)
117 BUFF_SPAWNFUNC_Q3COMPAT(item_doubler, BUFF_INFERNO)
119 REGISTER_BUFF(SWAPPER) {
120 this.m_name = _("Swapper");
121 this.netname = "swapper";
123 this.m_color = '0.63 0.36 1';
125 BUFF_SPAWNFUNCS(swapper, BUFF_SWAPPER)
126 BUFF_SPAWNFUNC_Q3COMPAT(holdable_teleporter, BUFF_SWAPPER)
128 REGISTER_BUFF(MAGNET) {
129 this.m_name = _("Magnet");
130 this.netname = "magnet";
132 this.m_color = '1 0.95 0.18';
134 BUFF_SPAWNFUNCS(magnet, BUFF_MAGNET)
136 REGISTER_BUFF(LUCK) {
137 this.m_name = _("Luck");
138 this.netname = "luck";
140 this.m_color = '1 0.23 0.44';
142 BUFF_SPAWNFUNCS(luck, BUFF_LUCK)
144 REGISTER_BUFF(FLIGHT) {
145 this.m_name = _("Flight");
146 this.netname = "flight";
148 this.m_color = '0.23 0.44 1';
150 BUFF_SPAWNFUNCS(flight, BUFF_FLIGHT)
151 BUFF_SPAWNFUNC_Q3COMPAT(item_flight, BUFF_FLIGHT)