-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathfootsteps.dm
364 lines (356 loc) · 10.3 KB
/
footsteps.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
#define FOOTSTEP_WOOD "wood"
#define FOOTSTEP_FLOOR "floor"
#define FOOTSTEP_TILES "tiles"
#define FOOTSTEP_PLATING "plating"
#define FOOTSTEP_CARPET "carpet"
#define FOOTSTEP_SAND "sand"
#define FOOTSTEP_GRASS "grass"
#define FOOTSTEP_WATER "water"
#define FOOTSTEP_LAVA "lava"
#define FOOTSTEP_MEAT "meat"
#define FOOTSTEP_CATWALK "catwalk"
//barefoot sounds
#define FOOTSTEP_WOOD_BAREFOOT "woodbarefoot"
#define FOOTSTEP_WOOD_CLAW "woodclaw"
#define FOOTSTEP_HARD_BAREFOOT "hardbarefoot"
#define FOOTSTEP_HARD_CLAW "hardclaw"
#define FOOTSTEP_CARPET_BAREFOOT "carpetbarefoot"
//misc footstep sounds
#define FOOTSTEP_GENERIC_HEAVY "heavy"
//footstep mob defines
#define FOOTSTEP_MOB_CLAW "footstep_claw"
#define FOOTSTEP_MOB_BAREFOOT "footstep_barefoot"
#define FOOTSTEP_MOB_HEAVY "footstep_heavy"
#define FOOTSTEP_MOB_SHOE "footstep_shoe"
#define FOOTSTEP_MOB_HUMAN "footstep_human" //Warning: Only works on /mob/living/carbon/human
#define FOOTSTEP_MOB_SLIME "footstep_slime"
#define FOOTSTEP_MOB_RUST "footstep_rust"
#define FOOTSTEP_OBJ_MACHINE "footstep_machine"
#define FOOTSTEP_OBJ_ROBOT "footstep_robot"
//priority defines for the footstep_override element
#define STEP_SOUND_NO_PRIORITY 0
#define STEP_SOUND_CONVEYOR_PRIORITY 1
#define STEP_SOUND_TABLE_PRIORITY 2
///the name of the index key for priority
#define STEP_SOUND_PRIORITY "step_sound_priority"
// Indexes for footstep data
#define FOOTSTEP_SOUNDS 1
#define FOOTSTEP_VOLUME 2
#define FOOTSTEP_RANGE 3
GLOBAL_LIST_INIT(footstep, list(
FOOTSTEP_WOOD = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/wood1.ogg' = 1,
'sound/effects/footstep/wood2.ogg' = 1,
'sound/effects/footstep/wood3.ogg' = 1,
'sound/effects/footstep/wood4.ogg' = 1,
'sound/effects/footstep/wood5.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 0,
),
FOOTSTEP_FLOOR = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/floor1.ogg' = 1,
'sound/effects/footstep/floor2.ogg' = 1,
'sound/effects/footstep/floor3.ogg' = 1,
'sound/effects/footstep/floor4.ogg' = 1,
'sound/effects/footstep/floor5.ogg' = 1,
),
FOOTSTEP_VOLUME = 75,
FOOTSTEP_RANGE -1,
),
FOOTSTEP_PLATING = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/plating1.ogg' = 1,
'sound/effects/footstep/plating2.ogg' = 1,
'sound/effects/footstep/plating3.ogg' = 1,
'sound/effects/footstep/plating4.ogg' = 1,
'sound/effects/footstep/plating5.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 1,
),
FOOTSTEP_CARPET = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/carpet1.ogg' = 1,
'sound/effects/footstep/carpet2.ogg' = 1,
'sound/effects/footstep/carpet3.ogg' = 1,
'sound/effects/footstep/carpet4.ogg' = 1,
'sound/effects/footstep/carpet5.ogg' = 1,
),
FOOTSTEP_VOLUME = 75,
FOOTSTEP_RANGE = -1,
),
FOOTSTEP_SAND = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/asteroid1.ogg' = 1,
'sound/effects/footstep/asteroid2.ogg' = 1,
'sound/effects/footstep/asteroid3.ogg' = 1,
'sound/effects/footstep/asteroid4.ogg' = 1,
'sound/effects/footstep/asteroid5.ogg' = 1,
),
FOOTSTEP_VOLUME = 75,
FOOTSTEP_RANGE = 0,
),
FOOTSTEP_GRASS = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/grass1.ogg' = 1,
'sound/effects/footstep/grass2.ogg' = 1,
'sound/effects/footstep/grass3.ogg' = 1,
'sound/effects/footstep/grass4.ogg' = 1,
),
FOOTSTEP_VOLUME = 75,
FOOTSTEP_RANGE = 0,
),
FOOTSTEP_WATER = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/water1.ogg' = 1,
'sound/effects/footstep/water2.ogg' = 1,
'sound/effects/footstep/water3.ogg' = 1,
'sound/effects/footstep/water4.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 1,
),
FOOTSTEP_LAVA = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/lava1.ogg' = 1,
'sound/effects/footstep/lava2.ogg' = 1,
'sound/effects/footstep/lava3.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 0,
),
FOOTSTEP_MEAT = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/meatslap.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 0,
),
FOOTSTEP_CATWALK = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/catwalk1.ogg' = 1,
'sound/effects/footstep/catwalk2.ogg' = 1,
'sound/effects/footstep/catwalk3.ogg' = 1,
'sound/effects/footstep/catwalk4.ogg' = 1,
'sound/effects/footstep/catwalk5.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 1,
),
FOOTSTEP_TILES = list(
FOOTSTEP_SOUNDS = list(
'maplestation_modules/sound/footstep/tile1.ogg' = 6,
'maplestation_modules/sound/footstep/tile2.ogg' = 6,
'maplestation_modules/sound/footstep/tile3.ogg' = 6,
'maplestation_modules/sound/footstep/tile4.ogg' = 1,
),
FOOTSTEP_VOLUME = 25,
FOOTSTEP_RANGE = 1,
),
))
//bare footsteps lists
GLOBAL_LIST_INIT(barefootstep, list(
FOOTSTEP_WOOD_BAREFOOT = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/woodbarefoot1.ogg' = 1,
'sound/effects/footstep/woodbarefoot2.ogg' = 1,
'sound/effects/footstep/woodbarefoot3.ogg' = 1,
'sound/effects/footstep/woodbarefoot4.ogg' = 1,
'sound/effects/footstep/woodbarefoot5.ogg' = 1,
),
FOOTSTEP_VOLUME = 80,
FOOTSTEP_RANGE = -1,
),
FOOTSTEP_HARD_BAREFOOT = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/hardbarefoot1.ogg' = 1,
'sound/effects/footstep/hardbarefoot2.ogg' = 1,
'sound/effects/footstep/hardbarefoot3.ogg' = 1,
'sound/effects/footstep/hardbarefoot4.ogg' = 1,
'sound/effects/footstep/hardbarefoot5.ogg' = 1,
),
FOOTSTEP_VOLUME = 80,
FOOTSTEP_RANGE = -1,
),
FOOTSTEP_CARPET_BAREFOOT = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/carpetbarefoot1.ogg' = 1,
'sound/effects/footstep/carpetbarefoot2.ogg' = 1,
'sound/effects/footstep/carpetbarefoot3.ogg' = 1,
'sound/effects/footstep/carpetbarefoot4.ogg' = 1,
'sound/effects/footstep/carpetbarefoot5.ogg' = 1,
),
FOOTSTEP_VOLUME = 75,
FOOTSTEP_RANGE = -2,
),
FOOTSTEP_SAND = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/asteroid1.ogg' = 1,
'sound/effects/footstep/asteroid2.ogg' = 1,
'sound/effects/footstep/asteroid3.ogg' = 1,
'sound/effects/footstep/asteroid4.ogg' = 1,
'sound/effects/footstep/asteroid5.ogg' = 1,
),
FOOTSTEP_VOLUME = 75,
FOOTSTEP_RANGE = 0,
),
FOOTSTEP_GRASS = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/grass1.ogg' = 1,
'sound/effects/footstep/grass2.ogg' = 1,
'sound/effects/footstep/grass3.ogg' = 1,
'sound/effects/footstep/grass4.ogg' = 1,
),
FOOTSTEP_VOLUME = 75,
FOOTSTEP_RANGE = 0,
),
FOOTSTEP_WATER = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/water1.ogg' = 1,
'sound/effects/footstep/water2.ogg' = 1,
'sound/effects/footstep/water3.ogg' = 1,
'sound/effects/footstep/water4.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 1,
),
FOOTSTEP_LAVA = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/lava1.ogg' = 1,
'sound/effects/footstep/lava2.ogg' = 1,
'sound/effects/footstep/lava3.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 0,
),
FOOTSTEP_MEAT = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/meatslap.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 0,
),
))
//claw footsteps lists
GLOBAL_LIST_INIT(clawfootstep, list(
FOOTSTEP_WOOD_CLAW = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/woodclaw1.ogg' = 1,
'sound/effects/footstep/woodclaw2.ogg' = 1,
'sound/effects/footstep/woodclaw3.ogg' = 1,
'sound/effects/footstep/woodclaw2.ogg' = 1,
'sound/effects/footstep/woodclaw1.ogg' = 1,
),
FOOTSTEP_VOLUME = 90,
FOOTSTEP_RANGE = 1,
),
FOOTSTEP_HARD_CLAW = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/hardclaw1.ogg' = 1,
'sound/effects/footstep/hardclaw2.ogg' = 1,
'sound/effects/footstep/hardclaw3.ogg' = 1,
'sound/effects/footstep/hardclaw4.ogg' = 1,
'sound/effects/footstep/hardclaw1.ogg' = 1,
),
FOOTSTEP_VOLUME = 90,
FOOTSTEP_RANGE = 1,
),
FOOTSTEP_CARPET_BAREFOOT = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/carpetbarefoot1.ogg' = 1,
'sound/effects/footstep/carpetbarefoot2.ogg' = 1,
'sound/effects/footstep/carpetbarefoot3.ogg' = 1,
'sound/effects/footstep/carpetbarefoot4.ogg' = 1,
'sound/effects/footstep/carpetbarefoot5.ogg' = 1,
),
FOOTSTEP_VOLUME = 75,
FOOTSTEP_RANGE = -2,
),
FOOTSTEP_SAND = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/asteroid1.ogg' = 1,
'sound/effects/footstep/asteroid2.ogg' = 1,
'sound/effects/footstep/asteroid3.ogg' = 1,
'sound/effects/footstep/asteroid4.ogg' = 1,
'sound/effects/footstep/asteroid5.ogg' = 1,
),
FOOTSTEP_VOLUME = 75,
FOOTSTEP_RANGE = 0,
),
FOOTSTEP_GRASS = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/grass1.ogg' = 1,
'sound/effects/footstep/grass2.ogg' = 1,
'sound/effects/footstep/grass3.ogg' = 1,
'sound/effects/footstep/grass4.ogg' = 1,
),
FOOTSTEP_VOLUME = 75,
FOOTSTEP_RANGE = 0,
),
FOOTSTEP_WATER = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/water1.ogg' = 1,
'sound/effects/footstep/water2.ogg' = 1,
'sound/effects/footstep/water3.ogg' = 1,
'sound/effects/footstep/water4.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 1,
),
FOOTSTEP_LAVA = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/lava1.ogg' = 1,
'sound/effects/footstep/lava2.ogg' = 1,
'sound/effects/footstep/lava3.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 0),
,
FOOTSTEP_MEAT = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/meatslap.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 0,
),
))
//heavy footsteps list
GLOBAL_LIST_INIT(heavyfootstep, list(
FOOTSTEP_GENERIC_HEAVY = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/heavy1.ogg' = 1,
'sound/effects/footstep/heavy2.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 2,
),
FOOTSTEP_WATER = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/water1.ogg' = 1,
'sound/effects/footstep/water2.ogg' = 1,
'sound/effects/footstep/water3.ogg' = 1,
'sound/effects/footstep/water4.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 2,
),
FOOTSTEP_LAVA = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/footstep/lava1.ogg' = 1,
'sound/effects/footstep/lava2.ogg' = 1,
'sound/effects/footstep/lava3.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 0,
),
FOOTSTEP_MEAT = list(
FOOTSTEP_SOUNDS = list(
'sound/effects/meatslap.ogg' = 1,
),
FOOTSTEP_VOLUME = 100,
FOOTSTEP_RANGE = 0,
),
))