69a95be0cce22074d75686a5aaf52c90c017ad80
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / sounds / all.inc
1 // Global list of sounds
2 // TODO: remove uses of _sound
3
4 #include "../teams.qh"
5 string W_Sound(string w_snd);
6
7 SOUND(ARC_FIRE, W_Sound("arc_fire"));
8 SOUND(ARC_LOOP, W_Sound("arc_loop"));
9 SOUND(ARC_LOOP_OVERHEAT, W_Sound("arc_loop_overheat"));
10 SOUND(ARC_STOP, W_Sound("arc_stop"));
11 SOUND(CAMPINGRIFLE_FIRE2, W_Sound("campingrifle_fire2"));
12 SOUND(CAMPINGRIFLE_FIRE, W_Sound("campingrifle_fire"));
13 SOUND(CRYLINK_FIRE2, W_Sound("crylink_fire2"));
14 SOUND(CRYLINK_FIRE, W_Sound("crylink_fire"));
15 SOUND(CRYLINK_IMPACT2, W_Sound("crylink_impact2"));
16 SOUND(CRYLINK_IMPACT, W_Sound("crylink_impact"));
17 SOUND(CRYLINK_LINKJOIN, W_Sound("crylink_linkjoin"));
18 SOUND(DRYFIRE, W_Sound("dryfire"));
19 SOUND(ELECTRO_BOUNCE, W_Sound("electro_bounce"));
20 SOUND(ELECTRO_FIRE2, W_Sound("electro_fire2"));
21 SOUND(ELECTRO_FIRE, W_Sound("electro_fire"));
22 SOUND(ELECTRO_FLY, W_Sound("electro_fly"));
23 SOUND(ELECTRO_IMPACT, W_Sound("electro_impact"));
24 SOUND(ELECTRO_IMPACT_COMBO, W_Sound("electro_impact_combo"));
25 SOUND(FIREBALL_FIRE2, W_Sound("fireball_fire2"));
26 SOUND(FIREBALL_FIRE, W_Sound("fireball_fire"));
27 SOUND(FIREBALL_FLY2, W_Sound("fireball_fly2"));
28 SOUND(FIREBALL_FLY, W_Sound("fireball_fly"));
29 SOUND(FIREBALL_IMPACT2, W_Sound("fireball_impact2"));
30 SOUND(FIREBALL_PREFIRE2, W_Sound("fireball_prefire2"));
31 SOUND(FLAC_FIRE, W_Sound("flac_fire"));
32 SOUND(GRENADE_BOUNCE1, W_Sound("grenade_bounce1"));
33 SOUND(GRENADE_BOUNCE2, W_Sound("grenade_bounce2"));
34 SOUND(GRENADE_BOUNCE3, W_Sound("grenade_bounce3"));
35 SOUND(GRENADE_BOUNCE4, W_Sound("grenade_bounce4"));
36 SOUND(GRENADE_BOUNCE5, W_Sound("grenade_bounce5"));
37 SOUND(GRENADE_BOUNCE6, W_Sound("grenade_bounce6"));
38 Sound SND_GRENADE_BOUNCE_RANDOM() {
39     return Sounds_from(SND_GRENADE_BOUNCE1.m_id + rint(random() * 5));
40 }
41 SOUND(GRENADE_FIRE, W_Sound("grenade_fire"));
42 SOUND(GRENADE_IMPACT, W_Sound("grenade_impact"));
43 SOUND(GRENADE_STICK, W_Sound("grenade_stick"));
44 SOUND(HAGAR_BEEP, W_Sound("hagar_beep"));
45 SOUND(HAGAR_FIRE, W_Sound("hagar_fire"));
46 SOUND(HAGAR_LOAD, W_Sound("hagar_load"));
47 SOUND(HAGEXP1, W_Sound("hagexp1"));
48 SOUND(HAGEXP2, W_Sound("hagexp2"));
49 SOUND(HAGEXP3, W_Sound("hagexp3"));
50 Sound SND_HAGEXP_RANDOM() {
51     return Sounds_from(SND_HAGEXP1.m_id + rint(random() * 2));
52 }
53
54 SOUND(HOOKBOMB_FIRE, W_Sound("hookbomb_fire"));
55 SOUND(HOOKBOMB_IMPACT, W_Sound("hookbomb_impact"));
56 SOUND(HOOK_FIRE, W_Sound("hook_fire"));
57 SOUND(HOOK_IMPACT, W_Sound("hook_impact"));
58 SOUND(LASERGUN_FIRE, W_Sound("lasergun_fire"));
59 SOUND(LASERIMPACT, W_Sound("laserimpact"));
60 SOUND(LGBEAM_FLY, W_Sound("lgbeam_fly"));
61 SOUND(MINE_DET, W_Sound("mine_det"));
62 SOUND(MINE_EXP, W_Sound("mine_exp"));
63 SOUND(MINE_FIRE, W_Sound("mine_fire"));
64 SOUND(MINE_STICK, W_Sound("mine_stick"));
65 SOUND(MINE_TRIGGER, W_Sound("mine_trigger"));
66 SOUND(MINSTANEXFIRE, W_Sound("minstanexfire"));
67 SOUND(NEXCHARGE, W_Sound("nexcharge"));
68 SOUND(NEXFIRE, W_Sound("nexfire"));
69 SOUND(NEXIMPACT, W_Sound("neximpact"));
70 SOUND(NEXWHOOSH1, W_Sound("nexwhoosh1"));
71 SOUND(NEXWHOOSH2, W_Sound("nexwhoosh2"));
72 SOUND(NEXWHOOSH3, W_Sound("nexwhoosh3"));
73 Sound SND_NEXWHOOSH_RANDOM() {
74     return Sounds_from(SND_NEXWHOOSH1.m_id + rint(random() * 2));
75 }
76 SOUND(RELOAD, W_Sound("reload")); // until weapons have individual reload sounds, precache the reload sound here
77
78 SOUND(RIC1, W_Sound("ric1"));
79 SOUND(RIC2, W_Sound("ric2"));
80 SOUND(RIC3, W_Sound("ric3"));
81 Sound SND_RIC_RANDOM() {
82     return Sounds_from(SND_RIC1.m_id + rint(random() * 2));
83 }
84
85 SOUND(ROCKET_DET, W_Sound("rocket_det"));
86 SOUND(ROCKET_FIRE, W_Sound("rocket_fire"));
87 SOUND(ROCKET_FLY, W_Sound("rocket_fly"));
88 SOUND(ROCKET_IMPACT, W_Sound("rocket_impact"));
89 SOUND(ROCKET_MODE, W_Sound("rocket_mode"));
90 SOUND(SEEKEREXP1, W_Sound("seekerexp1"));
91 SOUND(SEEKEREXP2, W_Sound("seekerexp2"));
92 SOUND(SEEKEREXP3, W_Sound("seekerexp3"));
93 SOUND(SEEKER_FIRE, W_Sound("seeker_fire"));
94 SOUND(SHOTGUN_FIRE, W_Sound("shotgun_fire"));
95 SOUND(SHOTGUN_MELEE, W_Sound("shotgun_melee"));
96 SOUND(STRENGTH_FIRE, W_Sound("strength_fire"));
97 SOUND(TAGEXP1, W_Sound("tagexp1"));
98 SOUND(TAGEXP2, W_Sound("tagexp2"));
99 SOUND(TAGEXP3, W_Sound("tagexp3"));
100 SOUND(TAG_FIRE, W_Sound("tag_fire"));
101 SOUND(TAG_IMPACT, W_Sound("tag_impact"));
102 SOUND(TAG_ROCKET_FLY, W_Sound("tag_rocket_fly"));
103 SOUND(UNAVAILABLE, W_Sound("unavailable"));
104 SOUND(UZI_FIRE, W_Sound("uzi_fire"));
105 SOUND(WEAPONPICKUP, W_Sound("weaponpickup"));
106 SOUND(WEAPONPICKUP_NEW_TOYS, W_Sound("weaponpickup_new_toys"));
107 SOUND(WEAPON_SWITCH, W_Sound("weapon_switch"));
108
109 SOUND(CTF_CAPTURE_NEUTRAL, "ctf/capture");
110 SOUND(CTF_CAPTURE_RED, "ctf/red_capture");
111 SOUND(CTF_CAPTURE_BLUE, "ctf/blue_capture");
112 SOUND(CTF_CAPTURE_YELLOW, "ctf/yellow_capture");
113 SOUND(CTF_CAPTURE_PINK, "ctf/pink_capture");
114 Sound SND_CTF_CAPTURE(int teamid) {
115     switch (teamid) {
116         case NUM_TEAM_1:    return SND_CTF_CAPTURE_RED;
117         case NUM_TEAM_2:    return SND_CTF_CAPTURE_BLUE;
118         case NUM_TEAM_3:    return SND_CTF_CAPTURE_YELLOW;
119         case NUM_TEAM_4:    return SND_CTF_CAPTURE_PINK;
120         default:            return SND_CTF_CAPTURE_NEUTRAL;
121     }
122 }
123
124 SOUND(CTF_DROPPED_NEUTRAL,  "ctf/neutral_dropped");
125 SOUND(CTF_DROPPED_RED,      "ctf/red_dropped");
126 SOUND(CTF_DROPPED_BLUE,     "ctf/blue_dropped");
127 SOUND(CTF_DROPPED_YELLOW,   "ctf/yellow_dropped");
128 SOUND(CTF_DROPPED_PINK,     "ctf/pink_dropped");
129 Sound SND_CTF_DROPPED(int teamid) {
130     switch (teamid) {
131         case NUM_TEAM_1:    return SND_CTF_DROPPED_RED;
132         case NUM_TEAM_2:    return SND_CTF_DROPPED_BLUE;
133         case NUM_TEAM_3:    return SND_CTF_DROPPED_YELLOW;
134         case NUM_TEAM_4:    return SND_CTF_DROPPED_PINK;
135         default:            return SND_CTF_DROPPED_NEUTRAL;
136     }
137 }
138
139 SOUND(CTF_PASS, "ctf/pass");
140 SOUND(CTF_RESPAWN, "ctf/flag_respawn");
141
142 SOUND(CTF_RETURNED_NEUTRAL,  "ctf/return");
143 SOUND(CTF_RETURNED_RED,      "ctf/red_returned");
144 SOUND(CTF_RETURNED_BLUE,     "ctf/blue_returned");
145 SOUND(CTF_RETURNED_YELLOW,   "ctf/yellow_returned");
146 SOUND(CTF_RETURNED_PINK,     "ctf/pink_returned");
147 Sound SND_CTF_RETURNED(int teamid) {
148     switch (teamid) {
149         case NUM_TEAM_1:    return SND_CTF_RETURNED_RED;
150         case NUM_TEAM_2:    return SND_CTF_RETURNED_BLUE;
151         case NUM_TEAM_3:    return SND_CTF_RETURNED_YELLOW;
152         case NUM_TEAM_4:    return SND_CTF_RETURNED_PINK;
153         default:            return SND_CTF_RETURNED_NEUTRAL;
154     }
155 }
156
157 SOUND(CTF_TAKEN_NEUTRAL,  "ctf/neutral_taken");
158 SOUND(CTF_TAKEN_RED,      "ctf/red_taken");
159 SOUND(CTF_TAKEN_BLUE,     "ctf/blue_taken");
160 SOUND(CTF_TAKEN_YELLOW,   "ctf/yellow_taken");
161 SOUND(CTF_TAKEN_PINK,     "ctf/pink_taken");
162 Sound SND_CTF_TAKEN(int teamid) {
163     switch (teamid) {
164         case NUM_TEAM_1:    return SND_CTF_TAKEN_RED;
165         case NUM_TEAM_2:    return SND_CTF_TAKEN_BLUE;
166         case NUM_TEAM_3:    return SND_CTF_TAKEN_YELLOW;
167         case NUM_TEAM_4:    return SND_CTF_TAKEN_PINK;
168         default:            return SND_CTF_TAKEN_NEUTRAL;
169     }
170 }
171
172 SOUND(CTF_TOUCH, "ctf/touch");
173
174 SOUND(DOM_CLAIM, "domination/claim");
175
176 SOUND(KA_DROPPED, "keepaway/dropped");
177 SOUND(KA_PICKEDUP, "keepaway/pickedup");
178 SOUND(KA_RESPAWN, "keepaway/respawn");
179 SOUND(KA_TOUCH, "keepaway/touch");
180
181 SOUND(KH_ALARM, "kh/alarm");
182 SOUND(KH_CAPTURE, "kh/capture");
183 SOUND(KH_COLLECT, "kh/collect");
184 SOUND(KH_DESTROY, "kh/destroy");
185 SOUND(KH_DROP, "kh/drop");
186
187 SOUND(NB_BOUNCE, "nexball/bounce");
188 SOUND(NB_DROP, "nexball/drop");
189 SOUND(NB_SHOOT1, "nexball/shoot1");
190 SOUND(NB_SHOOT2, "nexball/shoot2");
191 SOUND(NB_STEAL, "nexball/steal");
192
193 SOUND(ONS_CONTROLPOINT_BUILD, "onslaught/controlpoint_build");
194 SOUND(ONS_CONTROLPOINT_BUILT, "onslaught/controlpoint_built");
195 SOUND(ONS_CONTROLPOINT_UNDERATTACK, "onslaught/controlpoint_underattack");
196 SOUND(ONS_DAMAGEBLOCKEDBYSHIELD, "onslaught/damageblockedbyshield");
197 SOUND(ONS_ELECTRICITY_EXPLODE, "onslaught/electricity_explode");
198 SOUND(ONS_GENERATOR_DECAY, "onslaught/generator_decay");
199 SOUND(ONS_GENERATOR_UNDERATTACK, "onslaught/generator_underattack");
200 SOUND(ONS_HIT1, "onslaught/ons_hit1");
201 SOUND(ONS_HIT2, "onslaught/ons_hit2");
202 SOUND(ONS_SPARK1, "onslaught/ons_spark1");
203 SOUND(ONS_SPARK2, "onslaught/ons_spark2");
204 SOUND(ONS_SHOCKWAVE, "onslaught/shockwave");
205
206 SOUND(PORTO_BOUNCE, "porto/bounce");
207 SOUND(PORTO_CREATE, "porto/create");
208 SOUND(PORTO_EXPIRE, "porto/expire");
209 SOUND(PORTO_EXPLODE, "porto/explode");
210 SOUND(PORTO_FIRE, "porto/fire");
211 SOUND(PORTO_UNSUPPORTED, "porto/unsupported");
212
213 SOUND(TUR_PHASER, "turrets/phaser");
214
215 SOUND(VEH_ALARM, "vehicles/alarm");
216 SOUND(VEH_ALARM_SHIELD, "vehicles/alarm_shield");
217 SOUND(VEH_MISSILE_ALARM, "vehicles/missile_alarm");
218
219 SOUND(VEH_BUMBLEBEE_FIRE, W_Sound("flacexp3"));
220
221 SOUND(VEH_RACER_BOOST, "vehicles/racer_boost");
222 SOUND(VEH_RACER_IDLE, "vehicles/racer_idle");
223 SOUND(VEH_RACER_MOVE, "vehicles/racer_move");
224
225 SOUND(VEH_RAPTOR_FLY, "vehicles/raptor_fly");
226 SOUND(VEH_RAPTOR_SPEED, "vehicles/raptor_speed");
227
228 SOUND(VEH_SPIDERBOT_DIE, "vehicles/spiderbot_die");
229 SOUND(VEH_SPIDERBOT_IDLE, "vehicles/spiderbot_idle");
230 SOUND(VEH_SPIDERBOT_JUMP, "vehicles/spiderbot_jump");
231 SOUND(VEH_SPIDERBOT_LAND, "vehicles/spiderbot_land");
232 SOUND(VEH_SPIDERBOT_STRAFE, "vehicles/spiderbot_strafe");
233 SOUND(VEH_SPIDERBOT_WALK, "vehicles/spiderbot_walk");
234
235 SOUND(NADE_BEEP, "overkill/grenadebip");
236
237 SOUND(BUFF_LOST, "relics/relic_effect");
238
239 SOUND(POWEROFF, "misc/poweroff");
240 SOUND(POWERUP, "misc/powerup");
241 SOUND(SHIELD_RESPAWN, "misc/shield_respawn");
242 SOUND(STRENGTH_RESPAWN, "misc/strength_respawn");
243
244 SOUND(ARMOR25, "misc/armor25");
245 SOUND(ARMORIMPACT, "misc/armorimpact");
246 SOUND(BODYIMPACT1, "misc/bodyimpact1");
247 SOUND(BODYIMPACT2, "misc/bodyimpact2");
248
249 SOUND(ITEMPICKUP, "misc/itempickup");
250 SOUND(ITEMRESPAWNCOUNTDOWN, "misc/itemrespawncountdown");
251 SOUND(ITEMRESPAWN, "misc/itemrespawn");
252 SOUND(MEGAHEALTH, "misc/megahealth");
253
254 SOUND(LAVA, "player/lava");
255 SOUND(SLIME, "player/slime");
256
257 SOUND(GIB, "misc/gib");
258 SOUND(GIB_SPLAT01, "misc/gib_splat01");
259 SOUND(GIB_SPLAT02, "misc/gib_splat02");
260 SOUND(GIB_SPLAT03, "misc/gib_splat03");
261 SOUND(GIB_SPLAT04, "misc/gib_splat04");
262 Sound SND_GIB_SPLAT_RANDOM() {
263     return Sounds_from(SND_GIB_SPLAT01.m_id + floor(prandom() * 4));
264 }
265
266 SOUND(HIT, "misc/hit");
267 SOUND(TYPEHIT, "misc/typehit");
268
269 SOUND(SPAWN, "misc/spawn");
270
271 SOUND(TALK, "misc/talk");
272
273 SOUND(TELEPORT, "misc/teleport");
274
275 SOUND(INVSHOT, "misc/invshot");
276
277 SOUND(JETPACK_FLY, "misc/jetpack_fly");