018D
Contents |
- Description
- Adds a continuous looping sound effect at the location
- Syntax
- 018D: [var] = create_sound [int] at [flt1] [flt2] [flt3]
- Parameter
- [flt1]
- X-coordinate
- [flt2]
- Y-coordinate
- [flt3]
- Z-coordinate
- [int]
- Sound index (see below)
- [var]
- Variable to store the handle of the sound
This opcode adds a continuous looping sound effect at a point. The sound index does not match the SFX table; it is based on a list hardcoded within the game. Some of these sounds uses combination of SFX sounds and custom settings like different frequencies. Sounds can be stopped by calling opcode 018E.
Sounds
GTA III
Many of GTA III's continuous sounds have soft and loud versions, and a lot of sounds were never used by the game. Any enumerator names not from the source code script are based on a pattern or from the source code classes.
Id | Enum[1] | SFX[2] | Range | Used in original SCM | Notes |
---|---|---|---|---|---|
4 | 390 | 30.0 | |||
5 | 80.0 | ✓ | Hepburn Heights southwest tower | ||
6 | 391 | 30.0 | |||
7 | 80.0 | ✓ | Hepburn Heights north tower | ||
8 | 392 | 30.0 | |||
9 | 80.0 | ||||
10 | 393 | 30.0 | |||
11 | 80.0 | ||||
12 | 394 | 30.0 | |||
13 | 80.0 | ||||
14 | 395 | 30.0 | |||
15 | 80.0 | ||||
16 | 396 | 30.0 | |||
17 | 80.0 | ||||
18 | 397 | 30.0 | |||
19 | 80.0 | ||||
20 | 398 | 30.0 | |||
21 | 80.0 | ||||
22 | 399 | 30.0 | |||
23 | 80.0 | ||||
24 | 390 | 30.0 | |||
25 | 80.0 | ||||
26 | 391 | 30.0 | |||
27 | 80.0 | ||||
28 | 392 | 30.0 | |||
29 | 80.0 | ||||
30 | SOUND_ |
403 | 30.0 | ✓ | Meeouch Sex Kitten Club |
31 | SOUND_ |
80.0 | |||
32 | SOUND_ |
404 | 30.0 | ✓ | Sex Club Seven |
33 | SOUND_ |
80.0 | |||
34 | SOUND_ |
405 | 30.0 | ||
35 | SOUND_ |
||||
36 | SOUND_ |
407-408 | 30.0 | 407 plays continuously while 408 plays intermittently | |
37 | SOUND_ |
✓ | Liberty City Sawmills/Bitch'N' Dog Food, 407 plays continuously while 408 plays intermittently | ||
38 | 409 | 30.0 | |||
39 | 80.0 | ||||
40 | SOUND_ |
410-411 | 30.0 | Plays both continuously | |
41 | SOUND_ |
✓ | Mr. Wong's Laundrette, plays both continuously | ||
42 | 412 | 30.0 | ✓ | Roast Peking Duck | |
43 | 80.0 | ||||
44 | 413 | 30.0 | ✓ | Cipriani's Ristorante | |
45 | 80.0 | ||||
46 | 414 | 30.0 | |||
47 | |||||
48 | 415 | 30.0 | ✓ | Marco's Bistro (no sound) | |
49 | 80.0 | ||||
50 | SOUND_ |
416-419 | 30.0 | Plays separately and intermittently | |
51 | SOUND_ |
80.0 | ✓ | Francis International Terminal B, plays separately and intermittently | |
52 | SOUND_ |
420-422 | 30.0 | ||
53 | SOUND_ |
✓ | Chinatown (no sound) | ||
54 | SOUND_ |
423-425 | 30.0 | Plays separately and intermittently | |
55 | SOUND_ |
80.0 | |||
56 | SOUND_ |
426 | 30.0 | ||
57 | SOUND_ |
80.0 | ✓ | Portland Docks (no sound) | |
58 | SOUND_ |
427-431 | 30.0 | Plays separately and intermittently | |
59 | SOUND_ |
80.0 | ✓ | Left side of Misty's apartment, plays separately and intermittently | |
60 | 406 | 30.0 | ✓ | Salvatore's place | |
61 | 80.0 | ||||
62 | SOUND_ |
432-434 | 20.0 | ✓ | South of Sex Club Seven, 432 plays continuously while 433-434 plays separately and intermittently |
63 | SOUND_ |
80.0 | Same behavior as index 62 | ||
64 | SOUND_ |
435-437 | 20.0 | ✓ | East of Portland Pay 'N' Spray, 435 plays continuously while 436-437 plays separately and intermittently |
65 | SOUND_ |
80.0 | Same behavior as index 64 | ||
66 | SOUND_ |
438-440 | 20.0 | ✓ | Executive Relief, 438 plays continuously while 439-440 plays separately and intermittently |
67 | SOUND_ |
80.0 | Same behavior as index 66 | ||
68 | SOUND_ |
442 | 30.0 | ||
69 | SOUND_ |
80.0 | ✓ | Bank of Liberty/Staunton police HQ alarm | |
70 | SOUND_ |
441 | 30.0 | ||
71 | SOUND_ |
80.0 | ✓ | Old school hall | |
72 | SOUND_ |
443 | 30.0 | ||
73 | SOUND_ |
80.0 | ✓ | Warehouse rave | |
76 | SOUND_ |
179-184 | 30.0 | Plays separately and intermittently | |
77 | SOUND_ |
80.0 | ✓ | Staunton police HQ, plays separately and intermittently | |
84 | 444 | 30.0 | |||
85 | 80.0 | ||||
86 | 444 | 30.0 | |||
87 | 80.0 | ||||
88 | 445 | 30.0 | |||
89 | 80.0 | ||||
90 | 433-434 | 20.0 | Plays separately and intermittently | ||
91 | 80.0 | ✓ | Right side of Misty's apartment, plays separately and intermittently | ||
102 | SOUND_ |
157 | 50.0 | ✓ | Callahan Bridge fire |
Vice City
Id | Enum | SFX[2] | Range | Notes |
---|---|---|---|---|
0 | SOUND_ |
470 | 80.0 | alarm |
2 | SOUND_ |
176 | 80.0 | gate open/close |
4 | SOUND_ |
176 | 80.0 | gate open/close |
6 | SOUND_ |
471 | 6.0 | "No Escape?" snoring |
11 | SOUND_ |
331 | 40.0 | Moving shooting range target |
36 | SOUND_ |
472 | 80.0 | Greasy Choppers "Alloy Wheels of Steel" |
37 | SOUND_ |
473 | 80.0 | Greasy Choppers "Messing with the Man" |
38 | SOUND_ |
474 | 80.0 | Greasy Choppers "Hog Tied" |
39 | SOUND_ |
475 | 80.0 | Greasy Choppers (unused) |
40 | SOUND_ |
476 | 80.0 | Malibu Club night, will not play if Malibu.mp3 is playing in the background |
41 | SOUND_ |
477 | 80.0 | Malibu Club day, same behavior as index 40 |
42 | SOUND_ |
478 | 80.0 | Malibu Club evening, same behavior as index 40 |
43 | SOUND_ |
479 | 80.0 | Pole Position night, will not play if Strip.mp3 is playing in the background |
44 | SOUND_ |
480 | 80.0 | Pole Position day, same behavior as index 43 |
45 | SOUND_ |
481 | 80.0 | Pole Position evening, same behavior as index 43 |
46 | SOUND_ |
482 | 80.0 | South Washington Beach church |
51 | SOUND_ |
316 | 80.0 | Fountain |
- ^ Enums are from GTAModding.ru.
- ^ These values correspond to an SFX entry. The range is how far the player can be in meters before the sound diminishes. The association between the sound and SFX is hardcoded. For VC v1.0, the location of the array starts at 0x6B2AEC.
Keywords
add, create, sound, loop, sfx