Difference between revisions of "018D"

From GTAMods Wiki
Jump to navigation Jump to search
Line 18: Line 18:
 
:: Z-coordinate
 
:: 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. Sounds can be stopped through 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 through opcode [[018E]].
 
}}</onlyinclude>
 
}}</onlyinclude>
  
Line 25: Line 25:
 
! Index
 
! Index
 
! Sfx
 
! Sfx
 +
! Name
 
! Notes
 
! Notes
 
|-
 
|-
 
| 4
 
| 4
 
| 390
 
| 390
 +
|
 
| unused
 
| unused
 
|-
 
|-
 
| 5
 
| 5
 
| 390
 
| 390
 +
|
 
| Hepburn Heights northeast tower
 
| Hepburn Heights northeast tower
 
|-
 
|-
 
| 6
 
| 6
 
| 391
 
| 391
 +
|
 
| unused
 
| unused
 
|-
 
|-
 
| 7
 
| 7
 
| 391
 
| 391
 +
|
 
| Hepburn Heights south tower
 
| Hepburn Heights south tower
 
|-
 
|-
 
| 8
 
| 8
 
| 392
 
| 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
 
| 407/408
 
| 407/408
 +
| SOUND_SAWMILL_LOOP_L
 
| 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
 
| 412
 +
|
 
| Roast Peking Duck
 
| Roast Peking Duck
 
|-
 
|-
 
| 44
 
| 44
 
| 413
 
| 413
 +
|
 
| Cipriani's Ristorante
 
| Cipriani's Ristorante
 
|-
 
|-
 
| 48
 
| 48
 +
|
 
|  
 
|  
 
| Marco's Bistro (no sound)
 
| Marco's Bistro (no sound)
Line 77: Line 90:
 
| 51
 
| 51
 
| 416-419
 
| 416-419
 +
|
 
| Francis International Terminal B
 
| Francis International Terminal B
 
|-
 
|-
 
| 53
 
| 53
 +
|
 
|  
 
|  
 
| Chinatown (no sound)
 
| Chinatown (no sound)
 
|-
 
|-
 
| 57
 
| 57
 +
|
 
|  
 
|  
 
| Portland Docks (no sound)
 
| Portland Docks (no sound)
Line 89: Line 105:
 
| 59
 
| 59
 
| 427-431
 
| 427-431
 +
|
 
| Hepburn Heights north tower
 
| Hepburn Heights north tower
 
|-
 
|-
 
| 60
 
| 60
 
| 406
 
| 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
 +
|-
 +
| 69
 +
| 442
 +
| SOUND_BANK_ALARM_LOOP_L
 +
| Bank of Liberty/Staunton police HQ alarm
 +
|-
 +
| 70
 +
| 441
 +
|
 +
| unused
 +
|-
 +
| 71
 +
| 441
 +
| SOUND_POLICE_BALL_LOOP_L
 +
| Old school hall
 +
|-
 +
| 72
 +
| 443
 
|  
 
|  
| Executive Relief
+
| unused
 +
|-
 +
| 73
 +
| 443
 +
| SOUND_RAVE_LOOP_INDUSTRIAL_L
 +
| Warehouse rave
 +
|-
 +
| 76
 +
| 179-184
 +
|
 +
| unused
 +
|-
 +
| 77
 +
| 179-184
 +
| SOUND_POLICE_CELL_BEATING_LOOP_L
 +
| Staunton police HQ
 
|-
 
|-
 
| 91
 
| 91
 +
| 339-440
 
|  
 
|  
 
| Hepburn Heights BF Injection
 
| Hepburn Heights BF Injection
 +
|-
 +
| 102
 +
| 157
 +
| SOUND_PRETEND_FIRE_LOOP
 +
| Callahan Bridge fire
 
|}
 
|}
  
Line 185: Line 247:
  
 
== Keywords ==
 
== Keywords ==
add, create, sound, sfx
+
add, create, sound, loop, sfx
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 18:46, 9 February 2012

GTA III Vice City ADD_CONTINUOUS_SOUND


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 through opcode 018E.

GTA III

Index Sfx Name 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 407/408 SOUND_SAWMILL_LOOP_L 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 442 SOUND_BANK_ALARM_LOOP_L Bank of Liberty/Staunton police HQ alarm
70 441 unused
71 441 SOUND_POLICE_BALL_LOOP_L Old school hall
72 443 unused
73 443 SOUND_RAVE_LOOP_INDUSTRIAL_L Warehouse rave
76 179-184 unused
77 179-184 SOUND_POLICE_CELL_BEATING_LOOP_L Staunton police HQ
91 339-440 Hepburn Heights BF Injection
102 157 SOUND_PRETEND_FIRE_LOOP Callahan Bridge fire


Vice City

Index Sfx Notes
0 470 alarm
2/4 176 gate open/close
6 471 snoring
11 331 Moving shooting range target
36 472 Greasy Choppers "Alloy Wheels of Steel"
37 473 Greasy Choppers "Messing with the Man"
38 474 Greasy Choppers "Hog Tied"
39 475 Greasy Choppers (unused)
40 476 Malibu Club night
41 477 Malibu Club day
42 478 Malibu Club evening
43 479 Pole Position night
44 480 Pole Position day
45 481 Pole Position evening
46 482 South Washington Beach church
51 316 Fountain

Keywords

add, create, sound, loop, sfx