5 case "ammoregen":
return "ammo";
6 case "doubler":
return "inferno";
7 case "scout":
return "bash";
8 case "guard":
return "resistance";
9 case "revival":
case "regen":
return "medic";
10 case "jumper":
return "jump";
11 case "invulnerability":
return "vampire";
12 case "kamikaze":
return "vengeance";
13 case "teleporter":
return "swapper";
14 default:
return buffname;
21 ATTRIB(AmmoBuff, m_icon,
string, "buff_ammo");
30 ATTRIB(ResistanceBuff, m_name,
string, _("Resistance"));
31 ATTRIB(ResistanceBuff, netname,
string, "resistance");
32 ATTRIB(ResistanceBuff, m_icon,
string, "buff_resistance");
33 ATTRIB(ResistanceBuff, m_skin,
int, 0);
34 ATTRIB(ResistanceBuff, m_color, vector, '0.36 1 0.07');
41 ATTRIB(MedicBuff, m_name,
string, _("Medic"));
42 ATTRIB(MedicBuff, netname,
string, "medic");
43 ATTRIB(MedicBuff, m_icon,
string, "buff_medic");
45 ATTRIB(MedicBuff, m_color, vector, '1 0.12 0');
53 ATTRIB(BashBuff, m_name,
string, _("Bash"));
54 ATTRIB(BashBuff, netname,
string, "bash");
55 ATTRIB(BashBuff, m_icon,
string, "buff_bash");
57 ATTRIB(BashBuff, m_color, vector, '1 0.39 0');
64 ATTRIB(VampireBuff, m_name,
string, _("Vampire"));
65 ATTRIB(VampireBuff, netname,
string, "vampire");
66 ATTRIB(VampireBuff, m_icon,
string, "buff_vampire");
68 ATTRIB(VampireBuff, m_color, vector, '1 0 0.24');
75 ATTRIB(DisabilityBuff, m_name,
string, _("Disability"));
76 ATTRIB(DisabilityBuff, netname,
string, "disability");
77 ATTRIB(DisabilityBuff, m_icon,
string, "buff_disability");
78 ATTRIB(DisabilityBuff, m_skin,
int, 7);
79 ATTRIB(DisabilityBuff, m_color, vector, '0.94 0.3 1');
89 ATTRIB(Disabled, m_name,
string, _(
"Disabled"));
90 ATTRIB(Disabled, m_icon,
string,
"buff_disability");
92 ATTRIB(Disabled, m_color, vector,
'0.94 0.3 1');
93 ATTRIB(Disabled, m_hidden,
bool,
true);
94 ATTRIB(Disabled, m_lifetime,
float, 10);
95 ATTRIB(Disabled, disabled_effect_time,
float, 0);
101 ATTRIB(VengeanceBuff, netname,
string, "vengeance");
102 ATTRIB(VengeanceBuff, m_icon,
string, "buff_vengeance");
104 ATTRIB(VengeanceBuff, m_color, vector, '1 0.23 0.61');
111 ATTRIB(JumpBuff, m_name,
string, _("Jump"));
112 ATTRIB(JumpBuff, netname,
string, "jump");
113 ATTRIB(JumpBuff, m_icon,
string, "buff_jump");
115 ATTRIB(JumpBuff, m_color, vector, '0.24 0.78 1');
122 ATTRIB(InfernoBuff, m_name,
string, _("Inferno"));
123 ATTRIB(InfernoBuff, netname,
string, "inferno");
124 ATTRIB(InfernoBuff, m_icon,
string, "buff_inferno");
126 ATTRIB(InfernoBuff, m_color, vector, '1 0.62 0');
133 ATTRIB(SwapperBuff, m_name,
string, _("Swapper"));
134 ATTRIB(SwapperBuff, netname,
string, "swapper");
135 ATTRIB(SwapperBuff, m_icon,
string, "buff_swapper");
137 ATTRIB(SwapperBuff, m_color, vector, '0.63 0.36 1');
144 ATTRIB(MagnetBuff, m_name,
string, _("Magnet"));
145 ATTRIB(MagnetBuff, netname,
string, "magnet");
146 ATTRIB(MagnetBuff, m_icon,
string, "buff_magnet");
148 ATTRIB(MagnetBuff, m_color, vector, '1 0.95 0.18');
154 ATTRIB(LuckBuff, m_name,
string, _("Luck"));
155 ATTRIB(LuckBuff, netname,
string, "luck");
156 ATTRIB(LuckBuff, m_icon,
string, "buff_luck");
158 ATTRIB(LuckBuff, m_color, vector, '1 0.23 0.44');
164 ATTRIB(FlightBuff, m_name,
string, _("Flight"));
165 ATTRIB(FlightBuff, netname,
string, "flight");
166 ATTRIB(FlightBuff, m_icon,
string, "buff_flight");
168 ATTRIB(FlightBuff, m_color, vector, '0.23 0.44 1');
REGISTER_STATUSEFFECT(Disabled, NEW(Disabled))
string Buff_UndeprecateName(string buffname)
#define BUFF_SPAWNFUNCS(e, b)
#define BUFF_SPAWNFUNC_Q3COMPAT(o, r)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
REGISTER_BUFF(AMMO, NEW(AmmoBuff))