Difference between revisions of "018D"

From GTAMods Wiki
Jump to navigation Jump to search
(all values named for VC)
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. Some of these sounds uses combination of SFX sounds and custom settings like different frequencies. 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 by calling opcode [[018E]].
 
}}</onlyinclude>
 
}}</onlyinclude>
  
 
== GTA III ==
 
== GTA III ==
{| {{prettytable}}
+
{| class="wikitable"
 
! Index
 
! Index
! Sfx
+
! SFX
! Name
+
! Enum
 
! Notes
 
! Notes
 
|-
 
|-
Line 173: Line 173:
 
| Callahan Bridge fire
 
| Callahan Bridge fire
 
|}
 
|}
 
  
 
== Vice City ==
 
== Vice City ==
{| {{prettytable}}
+
{| class="wikitable"
! Index
+
! Index || SFX || Enum || Notes
! Sfx
+
|-
! Notes
+
| 0 || 470 || SOUND_BANK_ALARM_LOOP || alarm
 
|-
 
|-
| 0
+
| 2 || 176 || SOUND_POLICE_CELL_DOOR_SLIDING_LOOP || gate open/close
| 470
 
| alarm
 
 
|-
 
|-
| 2/4
+
| 4 || 176 || SOUND_GARAGE_DOOR_SLIDING_LOOP || gate open/close
| 176
 
| gate open/close
 
 
|-
 
|-
| 6
+
| 6 || 471 || SOUND_SNORING_LOOP || "No Escape?" snoring
| 471
 
| snoring
 
 
|-
 
|-
| 11
+
| 11 || 331 || SOUND_SHOOTING_RANGE_TARGET_MOVING_LOOP || Moving shooting range target
| 331
 
| Moving shooting range target
 
 
|-
 
|-
| 36
+
| 36 || 472 || SOUND_NEW_BUILDING_BAR_1 || Greasy Choppers "Alloy Wheels of Steel"
| 472
 
| Greasy Choppers "Alloy Wheels of Steel"
 
 
|-
 
|-
| 37
+
| 37 || 473 || SOUND_NEW_BUILDING_BAR_2 || Greasy Choppers "Messing with the Man"
| 473
 
| Greasy Choppers "Messing with the Man"
 
 
|-
 
|-
| 38
+
| 38 || 474 || SOUND_NEW_BUILDING_BAR_3 || Greasy Choppers "Hog Tied"
| 474
 
| Greasy Choppers "Hog Tied"
 
 
|-
 
|-
| 39
+
| 39 || 475 || SOUND_NEW_BUILDING_BAR_4 || Greasy Choppers (unused)
| 475
 
| Greasy Choppers (unused)
 
 
|-
 
|-
| 40
+
| 40 || 476 || SOUND_NEW_BUILDING_MALIBU_1 || Malibu Club night
| 476
 
| Malibu Club night
 
 
|-
 
|-
| 41
+
| 41 || 477 || SOUND_NEW_BUILDING_MALIBU_2 || Malibu Club day
| 477
 
| Malibu Club day
 
 
|-
 
|-
| 42
+
| 42 || 478 || SOUND_NEW_BUILDING_MALIBU_3 || Malibu Club evening
| 478
 
| Malibu Club evening
 
 
|-
 
|-
| 43
+
| 43 || 479 || SOUND_NEW_BUILDING_STRIP_1 || Pole Position night
| 479
 
| Pole Position night
 
 
|-
 
|-
| 44
+
| 44 || 480 || SOUND_NEW_BUILDING_STRIP_2 || Pole Position day
| 480
 
| Pole Position day
 
 
|-
 
|-
| 45
+
| 45 || 481 || SOUND_NEW_BUILDING_STRIP_3 || Pole Position evening
| 481
 
| Pole Position evening
 
 
|-
 
|-
| 46
+
| 46 || 482 || SOUND_NEW_BUILDING_CHURCH || South Washington Beach church
| 482
 
| South Washington Beach church
 
 
|-
 
|-
| 51
+
| 51 || 316 || SOUND_NEW_WATERFALL || Fountain
| 316
 
| Fountain
 
 
|}
 
|}
  

Revision as of 02:25, 29 December 2014

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

GTA III

Index SFX Enum 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 Enum Notes
0 470 SOUND_BANK_ALARM_LOOP alarm
2 176 SOUND_POLICE_CELL_DOOR_SLIDING_LOOP gate open/close
4 176 SOUND_GARAGE_DOOR_SLIDING_LOOP gate open/close
6 471 SOUND_SNORING_LOOP "No Escape?" snoring
11 331 SOUND_SHOOTING_RANGE_TARGET_MOVING_LOOP Moving shooting range target
36 472 SOUND_NEW_BUILDING_BAR_1 Greasy Choppers "Alloy Wheels of Steel"
37 473 SOUND_NEW_BUILDING_BAR_2 Greasy Choppers "Messing with the Man"
38 474 SOUND_NEW_BUILDING_BAR_3 Greasy Choppers "Hog Tied"
39 475 SOUND_NEW_BUILDING_BAR_4 Greasy Choppers (unused)
40 476 SOUND_NEW_BUILDING_MALIBU_1 Malibu Club night
41 477 SOUND_NEW_BUILDING_MALIBU_2 Malibu Club day
42 478 SOUND_NEW_BUILDING_MALIBU_3 Malibu Club evening
43 479 SOUND_NEW_BUILDING_STRIP_1 Pole Position night
44 480 SOUND_NEW_BUILDING_STRIP_2 Pole Position day
45 481 SOUND_NEW_BUILDING_STRIP_3 Pole Position evening
46 482 SOUND_NEW_BUILDING_CHURCH South Washington Beach church
51 316 SOUND_NEW_WATERFALL Fountain

Keywords

add, create, sound, loop, sfx