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