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