018D
Description
- Adds a continuous looping sound effect at a point
Syntax
- 018D: [var] = create_sound [int] at [flt1] [flt2] [flt3]
Parameter
- [var]
- Variable to store the handle of the sound
- [int]
- Sound index
- [flt1]
- X-coordinate
- [flt2]
- Y-coordinate
- [flt3]
- Z-coordinate
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.
GTA III
Index | Enum | SFX | Notes |
---|---|---|---|
4 | 390 | unused | |
5 | 390 | Hepburn Heights northeast tower | |
6 | 391 | unused | |
7 | 391 | Hepburn Heights south tower | |
8 | 392 | unused | |
30 | SOUND_STRIP_CLUB_LOOP_1_S | Meeouch Sex Kitten Club | |
32 | SOUND_STRIP_CLUB_LOOP_2_S | Sex Club Seven | |
37 | SOUND_SAWMILL_LOOP_L | 407/408 | Liberty City Sawmills/Bitch'N' Dog Food |
41 | 410-411 | Mr. Wong's Laundrette | |
42 | 412 | Roast Peking Duck | |
44 | 413 | Cipriani's Ristorante | |
48 | Marco's Bistro (no sound) | ||
51 | 416-419 | Francis International Terminal B | |
53 | Chinatown (no sound) | ||
57 | Portland Docks (no sound) | ||
59 | 427-431 | Hepburn Heights north tower | |
60 | 406 | Salvatore's place | |
62 | SOUND_PORN_CINEMA_1_S | South of Sex Club Seven | |
64 | SOUND_PORN_CINEMA_2_S | East of Portland Pay 'N' Spray | |
66 | SOUND_PORN_CINEMA_3_S | Executive Relief | |
69 | SOUND_BANK_ALARM_LOOP_L | 442 | Bank of Liberty/Staunton police HQ alarm |
70 | 441 | unused | |
71 | SOUND_POLICE_BALL_LOOP_L | 441 | Old school hall |
72 | 443 | unused | |
73 | SOUND_RAVE_LOOP_INDUSTRIAL_L | 443 | Warehouse rave |
76 | 179-184 | unused | |
77 | SOUND_POLICE_CELL_BEATING_LOOP_L | 179-184 | Staunton police HQ |
91 | 339-440 | Hepburn Heights BF Injection | |
102 | SOUND_PRETEND_FIRE_LOOP | 157 | Callahan Bridge fire |
Vice City
Index | Enum[1] | SFX[2] | Range | Notes |
---|---|---|---|---|
0 | SOUND_BANK_ALARM_LOOP | 470 | 80.0 | alarm |
2 | SOUND_POLICE_CELL_DOOR_SLIDING_LOOP | 176 | 80.0 | gate open/close |
4 | SOUND_GARAGE_DOOR_SLIDING_LOOP | 176 | 80.0 | gate open/close |
6 | SOUND_SNORING_LOOP | 471 | 6.0 | "No Escape?" snoring |
11 | SOUND_SHOOTING_RANGE_TARGET_MOVING_LOOP | 331 | 40.0 | Moving shooting range target |
36 | SOUND_NEW_BUILDING_BAR_1 | 472 | 80.0 | Greasy Choppers "Alloy Wheels of Steel" |
37 | SOUND_NEW_BUILDING_BAR_2 | 473 | 80.0 | Greasy Choppers "Messing with the Man" |
38 | SOUND_NEW_BUILDING_BAR_3 | 474 | 80.0 | Greasy Choppers "Hog Tied" |
39 | SOUND_NEW_BUILDING_BAR_4 | 475 | 80.0 | Greasy Choppers (unused) |
40 | SOUND_NEW_BUILDING_MALIBU_1 | 476 | 80.0 | Malibu Club night, will not play if Malibu.mp3 is playing in the background |
41 | SOUND_NEW_BUILDING_MALIBU_2 | 477 | 80.0 | Malibu Club day, will not play if Malibu.mp3 is playing in the background |
42 | SOUND_NEW_BUILDING_MALIBU_3 | 478 | 80.0 | Malibu Club evening, will not play if Malibu.mp3 is playing in the background |
43 | SOUND_NEW_BUILDING_STRIP_1 | 479 | 80.0 | Pole Position night, will not play if Strip.mp3 is playing in the background |
44 | SOUND_NEW_BUILDING_STRIP_2 | 480 | 80.0 | Pole Position day, will not play if Strip.mp3 is playing in the background |
45 | SOUND_NEW_BUILDING_STRIP_3 | 481 | 80.0 | Pole Position evening, will not play if Strip.mp3 is playing in the background |
46 | SOUND_NEW_BUILDING_CHURCH | 482 | 80.0 | South Washington Beach church |
51 | SOUND_NEW_WATERFALL | 316 | 80.0 | Fountain |
- ^ Enums are from Wesser's GTA III/VC definitions.
- ^ 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
See also
- 018C, add one off sound