Difference between revisions of "018D"

From GTAMods Wiki
Jump to navigation Jump to search
(changes to table)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__{{Icon|3}} {{Icon|VC}} '''ADD_CONTINUOUS_SOUND'''
+
{{TocRight}}
<hr />
+
{{OpCode
'''Description'''
+
| games      = {{Icon|3}} {{Icon|VC}}
: Adds a continuous looping sound effect at a point
+
| command    = ADD_CONTINUOUS_SOUND
'''Syntax'''
+
| description = Adds a continuous looping sound effect at the location
: 018D: [''var''] = create_sound [''int''] at [''flt1''] [''flt2''] [''flt3'']
+
| syntax1    = 018D: [''var''] = create_sound [''int''] at [''flt1''] [''flt2''] [''flt3'']
'''Parameter'''
+
| p1t        = [''flt1'']
: [''var'']
+
| p1d        = X-coordinate
:: Variable to store the handle of the sound
+
| p2t        = [''flt2'']
: [''int'']
+
| p2d        = Y-coordinate
:: Sound index
+
| p3t        = [''flt3'']
: [''flt1'']
+
| p3d        = Z-coordinate
:: X-coordinate
+
| p4t        = [''int'']
: [''flt2'']
+
| p4d        = Sound index ([[#Sounds|see below]])
:: Y-coordinate
+
| p5t        = [''var'']
: [''flt3'']
+
| p5d        = Variable to store the handle of the sound
:: 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]].
+
This opcode adds a continuous looping sound effect at the coordinates point. The sound index does not match the [[SFX]] table; it is based on a list [[hardcoded]] within the game. GTA III has a wide variety of different behaviors depending on the sound index, including but not limited to playing more than one sounds separately and intermittently. Vice City, however, is limited to only playing sounds continuously. Sounds can be stopped by calling opcode [[018E]].
  
== GTA III ==
+
== Sounds ==
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 [http://www.3dhole.com/gtafiles/ghost_bear/GTA%203%20Source%20code%20classes.htm source code classes].
+
The following tables list all continuous sounds available in both games, including silent and unused ones. The value in the "SFX" column corresponds to an [[SFX]] entry. The value in the "Range" column is how far the player can be in units before the sound diminishes. The association between the sound index and its behavior is hardcoded. For III v1.0 the array containing this data starts at 0x60938C, and for VC v1.0 at 0x6B2AEC.
{| class="wikitable sortable"
+
 
! Index || Enum{{ref|1}} || SFX{{ref|2}} || Range || style="width: 4em;" | Used in original SCM || Notes
+
=== 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 (viewable at [http://gtamodding.ru/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F%3A%D0%98%D1%81%D1%85%D0%BE%D0%B4%D0%BD%D0%B8%D0%BA%D0%B8 GTAModding.ru]) are based on a pattern or from the [http://www.3dhole.com/gtafiles/ghost_bear/GTA%203%20Source%20code%20classes.htm source code classes].
 +
{|class="wikitable sortable center-col-1"
 +
!Id ||Enum ||SFX ||Range ||Usage in original SCM ||Notes
 
|-
 
|-
| 4 || || 390 || 30.0 || ||
+
|4 ||||rowspan="2" |390 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 5 || || 390 || 80.0 || {{a|c}} | &#x2713; || Hepburn Heights northeast tower
+
|5 ||||80.0 ||Hepburn Heights southwest tower
 
|-
 
|-
| 6 || || 391 || 30.0 || ||
+
|6 ||||rowspan="2" |391 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 7 || || 391 || 80.0 || {{a|c}} | &#x2713; || Hepburn Heights south tower
+
|7 ||||80.0 ||Hepburn Heights north tower
 
|-
 
|-
| 8 || || 392 || 30.0 || ||
+
|8 ||||rowspan="2" |392 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 9 || || 392 || 80.0 || ||
+
|9 ||||80.0 ||
 
|-
 
|-
| 10 || || 393 || 30.0 || ||
+
|10 ||||rowspan="2" |393 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 11 || || 393 || 80.0 || ||
+
|11 ||||80.0 ||
 
|-
 
|-
| 12 || || 394 || 30.0 || ||
+
|12 ||||rowspan="2" |394 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 13 || || 394 || 80.0 || ||
+
|13 ||||80.0 ||
 
|-
 
|-
| 14 || || 395 || 30.0 || ||
+
|14 ||||rowspan="2" |395 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 15 || || 395 || 80.0 || ||
+
|15 ||||80.0 ||
 
|-
 
|-
| 16 || || 396 || 30.0 || ||
+
|16 ||||rowspan="2" |396 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 17 || || 396 || 80.0 || ||
+
|17 ||||80.0 ||
 
|-
 
|-
| 18 || || 397 || 30.0 || ||
+
|18 ||||rowspan="2" |397 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 19 || || 397 || 80.0 || ||
+
|19 ||||80.0 ||
 
|-
 
|-
| 20 || || 398 || 30.0 || ||
+
|20 ||||rowspan="2" |398 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 21 || || 398 || 80.0 || ||
+
|21 ||||80.0 ||
 
|-
 
|-
| 22 || || 399 || 30.0 || ||
+
|22 ||||rowspan="2" |399 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 23 || || 399 || 80.0 || ||
+
|23 ||||80.0 ||
 
|-
 
|-
| 24 || || 390 || 30.0 || ||
+
|24 ||||rowspan="2" |390 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 25 || || 390 || 80.0 || ||
+
|25 ||||80.0 ||
 
|-
 
|-
| 26 || || 391 || 30.0 || ||
+
|26 ||||rowspan="2" |391 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 27 || || 391 || 80.0 || ||
+
|27 ||||80.0 ||
 
|-
 
|-
| 28 || || 392 || 30.0 || ||
+
|28 ||||rowspan="2" |392 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 29 || || 392 || 80.0 || ||
+
|29 ||||80.0 ||
 
|-
 
|-
| 30 || SOUND_<wbr>STRIP_<wbr>CLUB_<wbr>LOOP_<wbr>1_<wbr>S || 403 || 30.0 || {{a|c}} | &#x2713; || Meeouch Sex Kitten Club
+
|30 ||SOUND_<wbr>STRIP_<wbr>CLUB_<wbr>LOOP_<wbr>1_<wbr>S ||rowspan="2" |403 ||30.0 ||Meeouch Sex Kitten Club ||rowspan="2" |
 
|-
 
|-
| 31 || SOUND_<wbr>STRIP_<wbr>CLUB_<wbr>LOOP_<wbr>1_<wbr>L || 403 || 80.0 || ||
+
|31 ||SOUND_<wbr>STRIP_<wbr>CLUB_<wbr>LOOP_<wbr>1_<wbr>L ||80.0 ||
 
|-
 
|-
| 32 || SOUND_<wbr>STRIP_<wbr>CLUB_<wbr>LOOP_<wbr>2_<wbr>S || 404 || 30.0 || {{a|c}} | &#x2713; || Sex Club Seven
+
|32 ||SOUND_<wbr>STRIP_<wbr>CLUB_<wbr>LOOP_<wbr>2_<wbr>S ||rowspan="2" |404 ||30.0 ||Sex Club Seven ||rowspan="2" |
 
|-
 
|-
| 33 || SOUND_<wbr>STRIP_<wbr>CLUB_<wbr>LOOP_<wbr>2_<wbr>L || 404 || 80.0 || ||
+
|33 ||SOUND_<wbr>STRIP_<wbr>CLUB_<wbr>LOOP_<wbr>2_<wbr>L ||80.0 ||
 
|-
 
|-
| 34 || SOUND_WORK_SHOP_LOOP_S || 405 || 30.0 || ||
+
|34 ||SOUND_<wbr>WORK_<wbr>SHOP_<wbr>LOOP_<wbr>S ||rowspan="2" |405 ||rowspan="2" |30.0 ||||rowspan="2" |
 
|-
 
|-
| 35 || SOUND_WORK_SHOP_LOOP_L || 405 || 30.0 || ||
+
|35 ||SOUND_<wbr>WORK_<wbr>SHOP_<wbr>LOOP_<wbr>L ||
 
|-
 
|-
| 36 || SOUND_<wbr>SAWMILL_<wbr>LOOP_<wbr>S || 407-408 || 30.0 || || Combinations of sounds with pauses between playing 408
+
|36 ||SOUND_<wbr>SAWMILL_<wbr>LOOP_<wbr>S ||rowspan="2" |407-408 ||rowspan="2" |30.0 ||||rowspan="2" |407 plays continuously while 408 plays intermittently
 
|-
 
|-
| 37 || SOUND_<wbr>SAWMILL_<wbr>LOOP_<wbr>L || 407-408 || 30.0 || {{a|c}} | &#x2713; || Liberty City Sawmills/Bitch'N' Dog Food, same behavior as index 36
+
|37 ||SOUND_<wbr>SAWMILL_<wbr>LOOP_<wbr>L ||Liberty City Sawmills/Bitch'N' Dog Food
 
|-
 
|-
| 38 || || 409 || 30.0 || ||
+
|38 ||||rowspan="2" |409 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 39 || || 409 || 80.0 || ||
+
|39 ||||80.0 ||
 
|-
 
|-
| 40 || SOUND_LAUNDERETTE_LOOP_S || 410-411 || 30.0 || || Combinations of sounds
+
|40 ||SOUND_<wbr>LAUNDERETTE_<wbr>LOOP_<wbr>S ||rowspan="2" |410-411 ||rowspan="2" |30.0 ||||rowspan="2" |Both plays continuously
 
|-
 
|-
| 41 || SOUND_LAUNDERETTE_LOOP_L || 410-411 || 30.0 || {{a|c}} | &#x2713; || Mr. Wong's Laundrette, combinations of sounds
+
|41 ||SOUND_<wbr>LAUNDERETTE_<wbr>LOOP_<wbr>L ||Mr. Wong's Laundrette
 
|-
 
|-
| 42 || || 412 || 30.0 || {{a|c}} | &#x2713; || Roast Peking Duck
+
|42 ||||rowspan="2" |412 ||30.0 ||Roast Peking Duck ||rowspan="2" |
 
|-
 
|-
| 43 || || 412 || 80.0 || ||
+
|43 ||||80.0 ||
 
|-
 
|-
| 44 || || 413 || 30.0 || {{a|c}} | &#x2713; || Cipriani's Ristorante
+
|44 ||||rowspan="2" |413 ||30.0 ||Cipriani's Ristorante ||rowspan="2" |
 
|-
 
|-
| 45 || || 413 || 80.0 || ||
+
|45 ||||80.0 ||
 
|-
 
|-
| 46 || || 414 || 30.0 || ||
+
|46 ||||rowspan="2" |414 ||rowspan="2" |30.0 ||||rowspan="2" |
 
|-
 
|-
| 47 || || 414 || 30.0 || ||
+
|47 ||||
 
|-
 
|-
| 48 || || 415 || 30.0 || {{a|c}} | &#x2713; || Marco's Bistro (no sound)
+
|48 ||||rowspan="2" |415 ||30.0 ||Marco's Bistro (no sound) ||rowspan="2" |
 
|-
 
|-
| 49 || || 415 || 80.0 || ||
+
|49 ||||80.0 ||
 
|-
 
|-
| 50 || SOUND_AIRPORT_LOOP_S || 416-419 || 30.0 || || Plays occasionally
+
|50 ||SOUND_<wbr>AIRPORT_<wbr>LOOP_<wbr>S ||rowspan="2" |416-419 ||30.0 ||||rowspan="2" |Plays separately and intermittently
 
|-
 
|-
| 51 || SOUND_AIRPORT_LOOP_L || 416-419 || 80.0 || {{a|c}} | &#x2713; || Francis International Terminal B, plays occasionally
+
|51 ||SOUND_<wbr>AIRPORT_<wbr>LOOP_<wbr>L ||80.0 ||Francis International Terminal B
 
|-
 
|-
| 52 || SOUND_SHOP_LOOP_S || 420-422 || 30.0 || ||
+
|52 ||SOUND_<wbr>SHOP_<wbr>LOOP_<wbr>S ||rowspan="2" |420-422 ||rowspan="2" |30.0 ||||rowspan="2" |
 
|-
 
|-
| 53 || SOUND_SHOP_LOOP_L || 420-422 || 30.0 || {{a|c}} | &#x2713; || Chinatown (no sound)
+
|53 ||SOUND_<wbr>SHOP_<wbr>LOOP_<wbr>L ||Chinatown (no sound)
 
|-
 
|-
| 54 || SOUND_CINEMA_LOOP_S || 423-425 || 30.0 || || Plays sounds separately with pauses in between
+
|54 ||SOUND_<wbr>CINEMA_<wbr>LOOP_<wbr>S ||rowspan="2" |423-425 ||30.0 ||||rowspan="2" |Plays separately and intermittently
 
|-
 
|-
| 55 || SOUND_CINEMA_LOOP_L || 423-425 || 80.0 || || Plays sounds separately with pauses in between
+
|55 ||SOUND_<wbr>CINEMA_<wbr>LOOP_<wbr>L ||80.0 ||
 
|-
 
|-
| 56 || SOUND_DOCKS_LOOP_S || 426 || 30.0 ||
+
|56 ||SOUND_<wbr>DOCKS_<wbr>LOOP_<wbr>S ||rowspan="2" |426 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 57 || SOUND_DOCKS_LOOP_L || 426 || 80.0 || {{a|c}} | &#x2713; || Portland Docks (no sound)
+
|57 ||SOUND_<wbr>DOCKS_<wbr>LOOP_<wbr>L ||80.0 ||Portland Docks (no sound)
 
|-
 
|-
| 58 || SOUND_HOME_LOOP_S || 427-431 || 30.0 || || Plays sounds separately with pauses in between
+
|58 ||SOUND_<wbr>HOME_<wbr>LOOP_<wbr>S ||rowspan="2" |427-431 ||30.0 ||||rowspan="2" |Plays separately and intermittently
 
|-
 
|-
| 59 || SOUND_HOME_LOOP_L || 427-431 || 80.0 || {{a|c}} | &#x2713; || Hepburn Heights north tower, plays sounds separately with pauses in between
+
|59 ||SOUND_<wbr>HOME_<wbr>LOOP_<wbr>L ||80.0 ||Left side of Misty's apartment
 
|-
 
|-
| 60 || || 406 || 30.0 || {{a|c}} | &#x2713; || Salvatore's place
+
|60 ||||rowspan="2" |406 ||30.0 ||Salvatore's place ||rowspan="2" |
 
|-
 
|-
| 61 || || 406 || 80.0 || ||
+
|61 ||||80.0 ||
 
|-
 
|-
| 62 || SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>1_<wbr>S || 432-434 || 20.0 || {{a|c}} | &#x2713; || South of Sex Club Seven, 432 plays constantly while 433-434 plays intermittently
+
|62 ||SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>1_<wbr>S ||rowspan="2" |432-434 ||20.0 ||South of Sex Club Seven ||rowspan="2" |432 plays continuously while 433-434 plays separately and intermittently
 
|-
 
|-
| 63 || SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>1_<wbr>L || 432-434 || 80.0 || || Same behavior as index 62
+
|63 ||SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>1_<wbr>L ||80.0 ||
 
|-
 
|-
| 64 || SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>2_<wbr>S || 435-437 || 20.0 || {{a|c}} | &#x2713; || East of Portland Pay 'N' Spray, 435 plays constantly while 436-437 plays intermittently
+
|64 ||SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>2_<wbr>S ||rowspan="2" |435-437 ||20.0 ||East of Portland Pay 'N' Spray ||rowspan="2" |435 plays continuously while 436-437 plays separately and intermittently
 
|-
 
|-
| 65 || SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>2_<wbr>L || 435-437 || 80.0 || || Same behavior as index 64
+
|65 ||SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>2_<wbr>L ||80.0 ||
 
|-
 
|-
| 66 || SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>3_<wbr>S || 438-440 || 20.0 || {{a|c}} | &#x2713; || Executive Relief, 438 plays constantly while 439-440 plays intermittently
+
|66 ||SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>3_<wbr>S ||rowspan="2" |438-440 ||20.0 ||Executive Relief ||rowspan="2" |438 plays continuously while 439-440 plays separately and intermittently
 
|-
 
|-
| 67 || SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>3_<wbr>L || 438-440 || 80.0 || || Same behavior as index 66
+
|67 ||SOUND_<wbr>PORN_<wbr>CINEMA_<wbr>3_<wbr>L ||80.0 ||
 
|-
 
|-
| 68 || SOUND_<wbr>BANK_<wbr>ALARM_<wbr>LOOP_<wbr>S || 442 || 30.0 || ||
+
|68 ||SOUND_<wbr>BANK_<wbr>ALARM_<wbr>LOOP_<wbr>S ||rowspan="2" |442 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 69 || SOUND_<wbr>BANK_<wbr>ALARM_<wbr>LOOP_<wbr>L || 442 || 80.0 || {{a|c}} | &#x2713; || Bank of Liberty/Staunton police HQ alarm
+
|69 ||SOUND_<wbr>BANK_<wbr>ALARM_<wbr>LOOP_<wbr>L ||80.0 ||Bank of Liberty/Staunton police HQ alarm
 
|-
 
|-
| 70 || SOUND_<wbr>POLICE_<wbr>BALL_<wbr>LOOP_<wbr>S || 441 || 30.0 || ||
+
|70 ||SOUND_<wbr>POLICE_<wbr>BALL_<wbr>LOOP_<wbr>S ||rowspan="2" |441 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 71 || SOUND_<wbr>POLICE_<wbr>BALL_<wbr>LOOP_<wbr>L || 441 || 80.0 || {{a|c}} | &#x2713; || Old school hall
+
|71 ||SOUND_<wbr>POLICE_<wbr>BALL_<wbr>LOOP_<wbr>L ||80.0 ||Old school hall
 
|-
 
|-
| 72 || SOUND_<wbr>RAVE_<wbr>LOOP_<wbr>INDUSTRIAL_<wbr>S || 443 || 30.0 || ||
+
|72 ||SOUND_<wbr>RAVE_<wbr>LOOP_<wbr>INDUSTRIAL_<wbr>S ||rowspan="2" |443 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 73 || SOUND_<wbr>RAVE_<wbr>LOOP_<wbr>INDUSTRIAL_<wbr>L || 443 || 80.0 || {{a|c}} | &#x2713; || Warehouse rave
+
|73 ||SOUND_<wbr>RAVE_<wbr>LOOP_<wbr>INDUSTRIAL_<wbr>L ||80.0 ||Warehouse rave
 
|-
 
|-
| 76 || SOUND_<wbr>POLICE_<wbr>CELL_<wbr>BEATING_<wbr>LOOP_<wbr>S || 179-184 || 30.0 || ||
+
|76 ||SOUND_<wbr>POLICE_<wbr>CELL_<wbr>BEATING_<wbr>LOOP_<wbr>S ||rowspan="2" |179-184 ||30.0 ||||rowspan="2" |Plays separately and intermittently
 
|-
 
|-
| 77 || SOUND_<wbr>POLICE_<wbr>CELL_<wbr>BEATING_<wbr>LOOP_<wbr>L || 179-184 || 80.0 || {{a|c}} | &#x2713; || Staunton police HQ
+
|77 ||SOUND_<wbr>POLICE_<wbr>CELL_<wbr>BEATING_<wbr>LOOP_<wbr>L ||80.0 ||Staunton police HQ
 
|-
 
|-
| 84 || || 444 || 30.0 || ||
+
|84 ||||rowspan="2" |444 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 85 || || 444 || 80.0 || ||
+
|85 ||||80.0 ||
 
|-
 
|-
| 86 || || 444 || 30.0 || ||
+
|86 ||||rowspan="2" |444 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 87 || || 444 || 80.0 || ||
+
|87 ||||80.0 ||
 
|-
 
|-
| 88 || || 445 || 30.0 || ||
+
|88 ||||rowspan="2" |445 ||30.0 ||||rowspan="2" |
 
|-
 
|-
| 89 || || 445 || 80.0 || ||
+
|89 ||||80.0 ||
 
|-
 
|-
| 90 || || 433-434 || 20.0 || || Plays intermittently
+
|90 ||||rowspan="2" |433-434 ||20.0 ||||rowspan="2" |Plays separately and intermittently
 
|-
 
|-
| 91 || || 433-434 || 80.0 || {{a|c}} | &#x2713; || Hepburn Heights BF Injection, plays intermittently
+
|91 ||||80.0 ||Right side of Misty's apartment
 
|-
 
|-
| 102 || SOUND_<wbr>PRETEND_<wbr>FIRE_<wbr>LOOP || 157 || 50.0 || {{a|c}} | &#x2713; || Callahan Bridge fire
+
|102 ||SOUND_<wbr>PRETEND_<wbr>FIRE_<wbr>LOOP ||157 ||50.0 ||Callahan Bridge fire ||
 
|}
 
|}
  
== Vice City ==
+
=== Vice City ===
{| class="wikitable sortable"
+
{|class="wikitable sortable center-col-1"
! Index || [[SCM_language_III/VC_definitions#SOUND|Enum]] || SFX{{ref|2}} || Range || Notes
+
!Id ||[[SCM language III/VC definitions#SOUND|Enum]] ||SFX ||Range ||Notes
 
|-
 
|-
| 0 || SOUND_<wbr>BANK_<wbr>ALARM_<wbr>LOOP || 470 || 80.0 || alarm
+
|0 ||SOUND_<wbr>BANK_<wbr>ALARM_<wbr>LOOP ||470 ||80.0 ||alarm
 
|-
 
|-
| 2 || SOUND_<wbr>POLICE_<wbr>CELL_<wbr>DOOR_<wbr>SLIDING_<wbr>LOOP || 176 || 80.0 || gate open/close
+
|2 ||SOUND_<wbr>POLICE_<wbr>CELL_<wbr>DOOR_<wbr>SLIDING_<wbr>LOOP ||176 ||80.0 ||gate open/close
 
|-
 
|-
| 4 || SOUND_<wbr>GARAGE_<wbr>DOOR_<wbr>SLIDING_<wbr>LOOP || 176 || 80.0 || gate open/close
+
|4 ||SOUND_<wbr>GARAGE_<wbr>DOOR_<wbr>SLIDING_<wbr>LOOP ||176 ||80.0 ||gate open/close
 
|-
 
|-
| 6 || SOUND_<wbr>SNORING_<wbr>LOOP || 471 || 6.0 || "No Escape?" snoring
+
|6 ||SOUND_<wbr>SNORING_<wbr>LOOP ||471 ||6.0 ||"No Escape?" snoring
 
|-
 
|-
| 11 || SOUND_<wbr>SHOOTING_<wbr>RANGE_<wbr>TARGET_<wbr>MOVING_<wbr>LOOP || 331 || 40.0 || Moving shooting range target
+
|11 ||SOUND_<wbr>SHOOTING_<wbr>RANGE_<wbr>TARGET_<wbr>MOVING_<wbr>LOOP ||331 ||40.0 ||Moving shooting range target
 
|-
 
|-
| 36 || SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>BAR_<wbr>1 || 472 || 80.0 || Greasy Choppers "Alloy Wheels of Steel"
+
|36 ||SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>BAR_<wbr>1 ||472 ||80.0 ||Greasy Choppers "Alloy Wheels of Steel"
 
|-
 
|-
| 37 || SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>BAR_<wbr>2 || 473 || 80.0 || Greasy Choppers "Messing with the Man"
+
|37 ||SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>BAR_<wbr>2 ||473 ||80.0 ||Greasy Choppers "Messing with the Man"
 
|-
 
|-
| 38 || SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>BAR_<wbr>3 || 474 || 80.0 || Greasy Choppers "Hog Tied"
+
|38 ||SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>BAR_<wbr>3 ||474 ||80.0 ||Greasy Choppers "Hog Tied"
 
|-
 
|-
| 39 || SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>BAR_<wbr>4 || 475 || 80.0 || Greasy Choppers (unused)
+
|39 ||SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>BAR_<wbr>4 ||475 ||80.0 ||Greasy Choppers (unused)
 
|-
 
|-
| 40 || SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>MALIBU_<wbr>1 || 476 || 80.0 || Malibu Club night, will not play if [[Audio (folder, VC)|Malibu.mp3]] is playing in the background
+
|40 ||SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>MALIBU_<wbr>1 ||476 ||80.0 ||Malibu Club night, will not play if [[Audio directory (VC)|Malibu.mp3]] is playing in the background
 
|-
 
|-
| 41 || SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>MALIBU_<wbr>2 || 477 || 80.0 || Malibu Club day, same behavior as index 40
+
|41 ||SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>MALIBU_<wbr>2 ||477 ||80.0 ||Malibu Club day, same behavior as index 40
 
|-
 
|-
| 42 || SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>MALIBU_<wbr>3 || 478 || 80.0 || Malibu Club evening, same behavior as index 40
+
|42 ||SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>MALIBU_<wbr>3 ||478 ||80.0 ||Malibu Club evening, same behavior as index 40
 
|-
 
|-
| 43 || SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>STRIP_<wbr>1 || 479 || 80.0 || Pole Position night, will not play if [[Audio (folder, VC)|Strip.mp3]] is playing in the background
+
|43 ||SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>STRIP_<wbr>1 ||479 ||80.0 ||Pole Position night, will not play if [[Audio directory (VC)|Strip.mp3]] is playing in the background
 
|-
 
|-
| 44 || SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>STRIP_<wbr>2 || 480 || 80.0 || Pole Position day, same behavior as index 43
+
|44 ||SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>STRIP_<wbr>2 ||480 ||80.0 ||Pole Position day, same behavior as index 43
 
|-
 
|-
| 45 || SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>STRIP_<wbr>3 || 481 || 80.0 || Pole Position evening, same behavior as index 43
+
|45 ||SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>STRIP_<wbr>3 ||481 ||80.0 ||Pole Position evening, same behavior as index 43
 
|-
 
|-
| 46 || SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>CHURCH || 482 || 80.0 || South Washington Beach church
+
|46 ||SOUND_<wbr>NEW_<wbr>BUILDING_<wbr>CHURCH ||482 ||80.0 ||South Washington Beach church
 
|-
 
|-
| 51 || SOUND_<wbr>NEW_<wbr>WATERFALL || 316 || 80.0 || Fountain
+
|51 ||SOUND_<wbr>NEW_<wbr>WATERFALL ||316 ||80.0 ||Fountain
 
|}
 
|}
 
# {{note|1}} Enums are from [http://gtamodding.ru/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F%3A%D0%98%D1%81%D1%85%D0%BE%D0%B4%D0%BD%D0%B8%D0%BA%D0%B8 GTAModding.ru].
 
# {{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 ==
Line 233: Line 233:
  
 
== See also ==
 
== See also ==
* [[018C]], add one off sound
+
* {{Icon|t}} [[018C]], adds one off sound
 
+
* {{Icon|3}} {{Icon|VC}} [[018E]], removes continuous sound
[[Category:OpCodes]]
 

Latest revision as of 17:27, 26 December 2016

GTA III Vice City ADD_CONTINUOUS_SOUND


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 the coordinates point. The sound index does not match the SFX table; it is based on a list hardcoded within the game. GTA III has a wide variety of different behaviors depending on the sound index, including but not limited to playing more than one sounds separately and intermittently. Vice City, however, is limited to only playing sounds continuously. Sounds can be stopped by calling opcode 018E.

Sounds

The following tables list all continuous sounds available in both games, including silent and unused ones. The value in the "SFX" column corresponds to an SFX entry. The value in the "Range" column is how far the player can be in units before the sound diminishes. The association between the sound index and its behavior is hardcoded. For III v1.0 the array containing this data starts at 0x60938C, and for VC v1.0 at 0x6B2AEC.

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 (viewable at GTAModding.ru) are based on a pattern or from the source code classes.

Id Enum SFX Range Usage 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_STRIP_CLUB_LOOP_1_S 403 30.0 Meeouch Sex Kitten Club
31 SOUND_STRIP_CLUB_LOOP_1_L 80.0
32 SOUND_STRIP_CLUB_LOOP_2_S 404 30.0 Sex Club Seven
33 SOUND_STRIP_CLUB_LOOP_2_L 80.0
34 SOUND_WORK_SHOP_LOOP_S 405 30.0
35 SOUND_WORK_SHOP_LOOP_L
36 SOUND_SAWMILL_LOOP_S 407-408 30.0 407 plays continuously while 408 plays intermittently
37 SOUND_SAWMILL_LOOP_L Liberty City Sawmills/Bitch'N' Dog Food
38 409 30.0
39 80.0
40 SOUND_LAUNDERETTE_LOOP_S 410-411 30.0 Both plays continuously
41 SOUND_LAUNDERETTE_LOOP_L Mr. Wong's Laundrette
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_AIRPORT_LOOP_S 416-419 30.0 Plays separately and intermittently
51 SOUND_AIRPORT_LOOP_L 80.0 Francis International Terminal B
52 SOUND_SHOP_LOOP_S 420-422 30.0
53 SOUND_SHOP_LOOP_L Chinatown (no sound)
54 SOUND_CINEMA_LOOP_S 423-425 30.0 Plays separately and intermittently
55 SOUND_CINEMA_LOOP_L 80.0
56 SOUND_DOCKS_LOOP_S 426 30.0
57 SOUND_DOCKS_LOOP_L 80.0 Portland Docks (no sound)
58 SOUND_HOME_LOOP_S 427-431 30.0 Plays separately and intermittently
59 SOUND_HOME_LOOP_L 80.0 Left side of Misty's apartment
60 406 30.0 Salvatore's place
61 80.0
62 SOUND_PORN_CINEMA_1_S 432-434 20.0 South of Sex Club Seven 432 plays continuously while 433-434 plays separately and intermittently
63 SOUND_PORN_CINEMA_1_L 80.0
64 SOUND_PORN_CINEMA_2_S 435-437 20.0 East of Portland Pay 'N' Spray 435 plays continuously while 436-437 plays separately and intermittently
65 SOUND_PORN_CINEMA_2_L 80.0
66 SOUND_PORN_CINEMA_3_S 438-440 20.0 Executive Relief 438 plays continuously while 439-440 plays separately and intermittently
67 SOUND_PORN_CINEMA_3_L 80.0
68 SOUND_BANK_ALARM_LOOP_S 442 30.0
69 SOUND_BANK_ALARM_LOOP_L 80.0 Bank of Liberty/Staunton police HQ alarm
70 SOUND_POLICE_BALL_LOOP_S 441 30.0
71 SOUND_POLICE_BALL_LOOP_L 80.0 Old school hall
72 SOUND_RAVE_LOOP_INDUSTRIAL_S 443 30.0
73 SOUND_RAVE_LOOP_INDUSTRIAL_L 80.0 Warehouse rave
76 SOUND_POLICE_CELL_BEATING_LOOP_S 179-184 30.0 Plays separately and intermittently
77 SOUND_POLICE_CELL_BEATING_LOOP_L 80.0 Staunton police HQ
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
102 SOUND_PRETEND_FIRE_LOOP 157 50.0 Callahan Bridge fire

Vice City

Id Enum SFX 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, same behavior as index 40
42 SOUND_NEW_BUILDING_MALIBU_3 478 80.0 Malibu Club evening, same behavior as index 40
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, same behavior as index 43
45 SOUND_NEW_BUILDING_STRIP_3 481 80.0 Pole Position evening, same behavior as index 43
46 SOUND_NEW_BUILDING_CHURCH 482 80.0 South Washington Beach church
51 SOUND_NEW_WATERFALL 316 80.0 Fountain

Keywords

add, create, sound, loop, sfx

See also

  • GTA III Vice City San Andreas 018C, adds one off sound
  • GTA III Vice City 018E, removes continuous sound