Difference between revisions of "018D"
Jump to navigation
Jump to search
(all values named for VC) |
(sound range and more notes) |
||
Line 1: | Line 1: | ||
− | {{Icon|3}} {{Icon|VC}} '''ADD_CONTINUOUS_SOUND''' | + | __NOTOC__{{Icon|3}} {{Icon|VC}} '''ADD_CONTINUOUS_SOUND''' |
<hr /> | <hr /> | ||
− | |||
'''Description''' | '''Description''' | ||
: Adds a continuous looping sound effect at a point | : Adds a continuous looping sound effect at a point | ||
Line 19: | Line 18: | ||
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]]. | 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 == | == GTA III == | ||
{| class="wikitable" | {| class="wikitable" | ||
! Index | ! Index | ||
+ | ! Enum | ||
! SFX | ! SFX | ||
− | |||
! Notes | ! Notes | ||
|- | |- | ||
| 4 | | 4 | ||
− | | | + | | |
− | | | + | | 390 |
| unused | | unused | ||
|- | |- | ||
| 5 | | 5 | ||
− | | | + | | |
− | | | + | | 390 |
| Hepburn Heights northeast tower | | Hepburn Heights northeast tower | ||
|- | |- | ||
| 6 | | 6 | ||
− | | | + | | |
− | | | + | | 391 |
| unused | | unused | ||
|- | |- | ||
| 7 | | 7 | ||
− | | | + | | |
− | | | + | | 391 |
| Hepburn Heights south tower | | Hepburn Heights south tower | ||
|- | |- | ||
| 8 | | 8 | ||
− | | | + | | |
− | | | + | | 392 |
| unused | | unused | ||
|- | |- | ||
| 30 | | 30 | ||
+ | | SOUND_STRIP_CLUB_LOOP_1_S | ||
| | | | ||
− | |||
| Meeouch Sex Kitten Club | | Meeouch Sex Kitten Club | ||
|- | |- | ||
| 32 | | 32 | ||
+ | | SOUND_STRIP_CLUB_LOOP_2_S | ||
| | | | ||
− | |||
| Sex Club Seven | | Sex Club Seven | ||
|- | |- | ||
| 37 | | 37 | ||
+ | | SOUND_SAWMILL_LOOP_L | ||
| 407/408 | | 407/408 | ||
− | |||
| Liberty City Sawmills/Bitch'N' Dog Food | | Liberty City Sawmills/Bitch'N' Dog Food | ||
|- | |- | ||
| 41 | | 41 | ||
− | | 410-411 | + | | |
− | + | | 410-411 | |
| Mr. Wong's Laundrette | | Mr. Wong's Laundrette | ||
|- | |- | ||
| 42 | | 42 | ||
− | | | + | | |
− | | | + | | 412 |
| Roast Peking Duck | | Roast Peking Duck | ||
|- | |- | ||
| 44 | | 44 | ||
− | | | + | | |
− | | | + | | 413 |
| Cipriani's Ristorante | | Cipriani's Ristorante | ||
|- | |- | ||
Line 89: | Line 87: | ||
|- | |- | ||
| 51 | | 51 | ||
− | | 416-419 | + | | |
− | + | | 416-419 | |
| Francis International Terminal B | | Francis International Terminal B | ||
|- | |- | ||
Line 104: | Line 102: | ||
|- | |- | ||
| 59 | | 59 | ||
− | | 427-431 | + | | |
− | + | | 427-431 | |
| Hepburn Heights north tower | | Hepburn Heights north tower | ||
|- | |- | ||
| 60 | | 60 | ||
− | | | + | | |
− | | | + | | 406 |
| Salvatore's place | | Salvatore's place | ||
|- | |- | ||
| 62 | | 62 | ||
+ | | SOUND_PORN_CINEMA_1_S | ||
| | | | ||
− | |||
| South of Sex Club Seven | | South of Sex Club Seven | ||
|- | |- | ||
| 64 | | 64 | ||
+ | | SOUND_PORN_CINEMA_2_S | ||
| | | | ||
− | |||
| East of Portland Pay 'N' Spray | | East of Portland Pay 'N' Spray | ||
|- | |- | ||
| 66 | | 66 | ||
+ | | SOUND_PORN_CINEMA_3_S | ||
| | | | ||
− | |||
| Executive Relief | | Executive Relief | ||
|- | |- | ||
| 69 | | 69 | ||
+ | | SOUND_BANK_ALARM_LOOP_L | ||
| 442 | | 442 | ||
− | |||
| Bank of Liberty/Staunton police HQ alarm | | Bank of Liberty/Staunton police HQ alarm | ||
|- | |- | ||
| 70 | | 70 | ||
− | | | + | | |
− | | | + | | 441 |
| unused | | unused | ||
|- | |- | ||
| 71 | | 71 | ||
+ | | SOUND_POLICE_BALL_LOOP_L | ||
| 441 | | 441 | ||
− | |||
| Old school hall | | Old school hall | ||
|- | |- | ||
| 72 | | 72 | ||
− | | | + | | |
− | | | + | | 443 |
| unused | | unused | ||
|- | |- | ||
| 73 | | 73 | ||
+ | | SOUND_RAVE_LOOP_INDUSTRIAL_L | ||
| 443 | | 443 | ||
− | |||
| Warehouse rave | | Warehouse rave | ||
|- | |- | ||
| 76 | | 76 | ||
− | | 179-184 | + | | |
− | + | | 179-184 | |
| unused | | unused | ||
|- | |- | ||
| 77 | | 77 | ||
+ | | SOUND_POLICE_CELL_BEATING_LOOP_L | ||
| 179-184 | | 179-184 | ||
− | |||
| Staunton police HQ | | Staunton police HQ | ||
|- | |- | ||
| 91 | | 91 | ||
− | | 339-440 | + | | |
− | + | | 339-440 | |
| Hepburn Heights BF Injection | | Hepburn Heights BF Injection | ||
|- | |- | ||
| 102 | | 102 | ||
+ | | SOUND_PRETEND_FIRE_LOOP | ||
| 157 | | 157 | ||
− | |||
| Callahan Bridge fire | | Callahan Bridge fire | ||
|} | |} | ||
== Vice City == | == Vice City == | ||
− | {| class="wikitable" | + | {| class="wikitable sortable" |
− | ! Index || SFX || | + | ! Index || Enum{{ref|1}} || SFX{{ref|2}} || Range || Notes |
|- | |- | ||
− | | 0 || 470 || | + | | 0 || SOUND_BANK_ALARM_LOOP || 470 || 80.0 || alarm |
|- | |- | ||
− | | 2 || 176 || | + | | 2 || SOUND_POLICE_CELL_DOOR_SLIDING_LOOP || 176 || 80.0 || gate open/close |
|- | |- | ||
− | | 4 || 176 || | + | | 4 || SOUND_GARAGE_DOOR_SLIDING_LOOP || 176 || 80.0 || gate open/close |
|- | |- | ||
− | | 6 || 471 || | + | | 6 || SOUND_SNORING_LOOP || 471 || 6.0 || "No Escape?" snoring |
|- | |- | ||
− | | 11 || 331 || | + | | 11 || SOUND_SHOOTING_RANGE_TARGET_MOVING_LOOP || 331 || 40.0 || Moving shooting range target |
|- | |- | ||
− | | 36 || 472 || | + | | 36 || SOUND_NEW_BUILDING_BAR_1 || 472 || 80.0 || Greasy Choppers "Alloy Wheels of Steel" |
|- | |- | ||
− | | 37 || 473 || | + | | 37 || SOUND_NEW_BUILDING_BAR_2 || 473 || 80.0 || Greasy Choppers "Messing with the Man" |
|- | |- | ||
− | | 38 || 474 || | + | | 38 || SOUND_NEW_BUILDING_BAR_3 || 474 || 80.0 || Greasy Choppers "Hog Tied" |
|- | |- | ||
− | | 39 || 475 || | + | | 39 || SOUND_NEW_BUILDING_BAR_4 || 475 || 80.0 || Greasy Choppers (unused) |
|- | |- | ||
− | | 40 || 476 || | + | | 40 || SOUND_NEW_BUILDING_MALIBU_1 || 476 || 80.0 || Malibu Club night, will not play if [[Audio (folder, VC)|Malibu.mp3]] is playing in the background |
|- | |- | ||
− | | 41 || 477 || | + | | 41 || SOUND_NEW_BUILDING_MALIBU_2 || 477 || 80.0 || Malibu Club day, will not play if Malibu.mp3 is playing in the background |
|- | |- | ||
− | | 42 || 478 || | + | | 42 || SOUND_NEW_BUILDING_MALIBU_3 || 478 || 80.0 || Malibu Club evening, will not play if Malibu.mp3 is playing in the background |
|- | |- | ||
− | | 43 || 479 || | + | | 43 || SOUND_NEW_BUILDING_STRIP_1 || 479 || 80.0 || Pole Position night, will not play if [[Audio (folder, VC)|Strip.mp3]] is playing in the background |
|- | |- | ||
− | | 44 || 480 || | + | | 44 || SOUND_NEW_BUILDING_STRIP_2 || 480 || 80.0 || Pole Position day, will not play if Strip.mp3 is playing in the background |
|- | |- | ||
− | | 45 || 481 || | + | | 45 || SOUND_NEW_BUILDING_STRIP_3 || 481 || 80.0 || Pole Position evening, will not play if Strip.mp3 is playing in the background |
|- | |- | ||
− | | 46 || 482 || | + | | 46 || SOUND_NEW_BUILDING_CHURCH || 482 || 80.0 || South Washington Beach church |
|- | |- | ||
− | | 51 || 316 || | + | | 51 || SOUND_NEW_WATERFALL || 316 || 80.0 || Fountain |
|} | |} | ||
+ | |||
+ | # {{note|1}} Enums are from {{U|Wesser}}'s [https://www.dropbox.com/s/nhdia6yokgmi0bo/gta3vc_defines.rar GTA III/VC definitions]. | ||
+ | # {{note|2}} 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 == | == Keywords == | ||
add, create, sound, loop, sfx | add, create, sound, loop, sfx | ||
+ | |||
+ | == See also == | ||
+ | * [[018C]], add one off sound | ||
[[Category:OpCodes]] | [[Category:OpCodes]] |
Revision as of 05:37, 16 March 2015
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