Difference between revisions of "018C"
Jump to navigation
Jump to search
m |
|||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | __NOTOC__ |
− | + | {{OpCode | |
− | + | | games = {{Icon|t}} | |
− | + | | command = ADD_ONE_OFF_SOUND | |
− | + | | description = Adds a short [[SFX|sound effect]] at the location | |
− | + | | syntax1 = 018C: play_sound [''int''] at [''flt1''] [''flt2''] [''flt3''] | |
− | + | | p1t = [''flt1''] | |
− | + | | p1d = X-coordinate | |
− | + | | p2t = [''flt2''] | |
− | + | | p2d = Y-coordinate | |
− | + | | p3t = [''flt3''] | |
− | + | | p3d = Z-coordinate | |
− | + | | p4t = [''int''] | |
− | + | | p4d = Sound index ([[#Sounds|see below]]) | |
− | + | }} | |
− | |||
− | This opcode adds a short sound effect at | + | This opcode adds a short sound effect at the coordinates point. Certain sound effects are independent of the point and can be heard anywhere. The sound index does not match the [[SFX]] table; it is based on a list [[hardcoded]] within the game. Many of the SFX sounds are a combination of or altered from the base sound files. |
− | |||
− | == GTA III == | + | == Sounds == |
− | {| {{ | + | === GTA III === |
− | + | {| class="wikitable sortable" | |
− | + | ! Id || Enum{{ref|1}} || data-sort-type="number" | SFX{{ref|2}} || Range || Notes | |
− | |||
|- | |- | ||
| 78 | | 78 | ||
− | | | + | | SOUND_<wbr>INJURED_<wbr>PED_<wbr>MALE_<wbr>OUCH_<wbr>S |
− | | male pain | + | | 2857-2871 |
+ | | | ||
+ | | male pain soft | ||
|- | |- | ||
| 79 | | 79 | ||
− | | | + | | SOUND_<wbr>INJURED_<wbr>PED_<wbr>MALE_<wbr>OUCH_<wbr>L |
− | | male pain | + | | 2857-2871 |
+ | | | ||
+ | | male pain loud | ||
|- | |- | ||
| 80 | | 80 | ||
− | | | + | | SOUND_<wbr>INJURED_<wbr>PED_<wbr>FEMALE_<wbr>OUCH_<wbr>S |
− | | female pain | + | | 2290-2300 |
+ | | | ||
+ | | female pain soft | ||
|- | |- | ||
| 81 | | 81 | ||
− | | | + | | SOUND_<wbr>INJURED_<wbr>PED_<wbr>FEMALE_<wbr>OUCH_<wbr>L |
− | | female pain | + | | 2290-2300 |
+ | | | ||
+ | | female pain loud | ||
|- | |- | ||
− | | 82 | + | | 82 |
− | | | + | | SOUND_<wbr>EVIDENCE_<wbr>PICKUP |
+ | | 161-162 | ||
+ | | unlimited | ||
| item pickup | | item pickup | ||
|- | |- | ||
− | | 83 | + | | 83 |
− | | | + | | SOUND_<wbr>UNLOAD_<wbr>GOLD |
+ | | 161-162 | ||
+ | | unlimited | ||
| item pickup | | item pickup | ||
|- | |- | ||
| 92 | | 92 | ||
− | | | + | | SOUND_<wbr>GATE_<wbr>START_<wbr>CLUNK |
+ | | 147 | ||
+ | | 40.0 | ||
| [[Moving gate|gate]] start | | [[Moving gate|gate]] start | ||
|- | |- | ||
| 93 | | 93 | ||
− | | | + | | SOUND_<wbr>GATE_<wbr>STOP_<wbr>CLUNK |
+ | | 147 | ||
+ | | 40.0 | ||
| gate stop | | gate stop | ||
|- | |- | ||
− | | 94 | + | | 94 |
− | | | + | | SOUND_<wbr>PART_<wbr>MISSION_<wbr>COMPLETE |
+ | | 337 | ||
+ | | unlimited | ||
| checkpoint | | checkpoint | ||
|- | |- | ||
− | | 97 | + | | 97 |
− | | | + | | SOUND_<wbr>RACE_<wbr>START_<wbr>3 |
+ | | 336 | ||
+ | | unlimited | ||
| countdown timer 3 | | countdown timer 3 | ||
|- | |- | ||
− | | 98 | + | | 98 |
− | | | + | | SOUND_<wbr>RACE_<wbr>START_<wbr>2 |
+ | | 336 | ||
+ | | unlimited | ||
| countdown timer 2 | | countdown timer 2 | ||
|- | |- | ||
− | | 99 | + | | 99 |
− | | | + | | SOUND_<wbr>RACE_<wbr>START_<wbr>1 |
+ | | 336 | ||
+ | | unlimited | ||
| countdown timer 1 | | countdown timer 1 | ||
|- | |- | ||
− | | 100 | + | | 100 |
− | | | + | | SOUND_<wbr>RACE_<wbr>START_<wbr>GO |
+ | | 337 | ||
+ | | unlimited | ||
| countdown finish | | countdown finish | ||
|- | |- | ||
| 106-108 | | 106-108 | ||
− | | | + | | |
+ | | 176-178 | ||
+ | | 50.0 | ||
| bullet hit ground | | bullet hit ground | ||
+ | |- | ||
+ | | 110-111 | ||
+ | | | ||
+ | | 389 | ||
+ | | 80.0 | ||
+ | | silent, replace the SFX or edit the memory to a different SFX to make this useful | ||
|- | |- | ||
| 112 | | 112 | ||
− | | | + | | |
+ | | 283 | ||
+ | | 80.0 | ||
| payphone | | payphone | ||
|- | |- | ||
| 114-115 | | 114-115 | ||
− | | | + | | |
+ | | 151 | ||
+ | | 60.0 | ||
| glass break | | glass break | ||
|- | |- | ||
| 116 | | 116 | ||
− | | | + | | |
+ | | 150 | ||
+ | | 60.0 | ||
| glass damage | | glass damage | ||
|- | |- | ||
| 117 | | 117 | ||
− | | | + | | |
+ | | 152-155 | ||
+ | | 55.0 | ||
| glass shards | | glass shards | ||
|- | |- | ||
− | | 118-119 | + | | 118 |
− | | | + | | |
− | | boxes | + | | 327 |
+ | | 60.0 | ||
+ | | boxes destroyed | ||
+ | |- | ||
+ | | 119 | ||
+ | | | ||
+ | | 328 | ||
+ | | 60.0 | ||
+ | | boxes destroyed | ||
|- | |- | ||
| 120 | | 120 | ||
− | | | + | | |
+ | | 140-144 | ||
+ | | 60.0 | ||
| car collision | | car collision | ||
|- | |- | ||
| 121 | | 121 | ||
− | | | + | | |
+ | | 29 | ||
+ | | 60.0 | ||
| tire collision | | tire collision | ||
|- | |- | ||
− | | 122-123 | + | | 122 |
− | | | + | | |
− | | | + | | 167-168 |
+ | | 20.0 | ||
+ | | gun shell drop, dependent on what [[Collision File#GTA III|collision]] the player is currently standing on | ||
+ | |- | ||
+ | | 123 | ||
+ | | | ||
+ | | 168 | ||
+ | | 20.0 | ||
+ | | gun shell drop soft | ||
|} | |} | ||
− | == Vice City == | + | === Vice City === |
− | {| | + | {| class="wikitable sortable" |
− | + | ! Id || [[SCM_language_III/VC_definitions#SOUND|Enum]] || data-sort-type="number" | SFX{{ref|3}} || data-sort-type="number" | Range || Notes | |
− | ! [[ | ||
− | |||
|- | |- | ||
− | | 1 | + | | 1 |
− | | 364 | + | | SOUND_<wbr>PART_<wbr>MISSION_<wbr>COMPLETE |
+ | | 364-366 | ||
+ | | unlimited | ||
| blip | | blip | ||
|- | |- | ||
| 3 | | 3 | ||
+ | | SOUND_<wbr>POLICE_<wbr>CELL_<wbr>DOOR_<wbr>CLUNK | ||
| 143 | | 143 | ||
− | | metal gate | + | | 40.0 |
+ | | metal [[Moving gate|gate]] | ||
+ | |- | ||
+ | | 5 | ||
+ | | SOUND_<wbr>GARAGE_<wbr>DOOR_<wbr>CLUNK | ||
+ | | 102 | ||
+ | | 80.0 | ||
+ | | garage door finished open/close | ||
+ | |- | ||
+ | | 7 | ||
+ | | SOUND_<wbr>RACE_<wbr>START_<wbr>3 | ||
+ | | 364-366 | ||
+ | | unlimited | ||
+ | | blip | ||
|- | |- | ||
− | | | + | | 8 |
− | | 364 | + | | SOUND_<wbr>RACE_<wbr>START_<wbr>2 |
− | | blip | + | | 364-366 |
+ | | unlimited | ||
+ | | blip | ||
|- | |- | ||
− | | | + | | 9 |
− | | 367 | + | | SOUND_<wbr>RACE_<wbr>START_<wbr>1 |
+ | | 364-366 | ||
+ | | unlimited | ||
+ | | blip | ||
+ | |- | ||
+ | | 10 | ||
+ | | SOUND_<wbr>RACE_<wbr>START_<wbr>GO | ||
+ | | 367-369 | ||
+ | | unlimited | ||
| high pitch blip | | high pitch blip | ||
|- | |- | ||
| 12 | | 12 | ||
+ | | SOUND_<wbr>SHOOTING_<wbr>RANGE_<wbr>TARGET_<wbr>HIT | ||
| 162-164 | | 162-164 | ||
+ | | 50.0 | ||
| bullet hit ground, random selection between 162 and 164 | | bullet hit ground, random selection between 162 and 164 | ||
|- | |- | ||
− | | 13 | + | | 13 |
− | | 361 | + | | SOUND_<wbr>AMMUNATION_<wbr>BUY_<wbr>WEAPON |
+ | | 361-363 | ||
+ | | unlimited | ||
| successful select | | successful select | ||
|- | |- | ||
− | | 14 | + | | 14 |
− | | | + | | SOUND_<wbr>AMMUNATION_<wbr>BUY_<wbr>WEAPON_<wbr>DENIED |
+ | | 361-363 | ||
+ | | unlimited | ||
| unsuccessful select | | unsuccessful select | ||
|- | |- | ||
− | | 16 | + | | 16 |
+ | | SOUND_<wbr>IMRAN_<wbr>ARM_<wbr>BOMB | ||
| 178 | | 178 | ||
− | | | + | | unlimited |
+ | | "Demolition Man" and "Trojan Voodoo" arm bomb | ||
|- | |- | ||
| 18 | | 18 | ||
+ | | SOUND_<wbr>WILLIE_<wbr>CARD_<wbr>SWIPE | ||
| 334 | | 334 | ||
− | | | + | | 40.0 |
+ | | "No Escape?" card swipe | ||
|- | |- | ||
| 19 | | 19 | ||
+ | | SOUND_<wbr>MALE_<wbr>AMBULANCE_<wbr>OUCH | ||
+ | | | ||
| | | | ||
| intermittent male pain | | intermittent male pain | ||
|- | |- | ||
| 20 | | 20 | ||
+ | | SOUND_<wbr>FEMALE_<wbr>AMBULANCE_<wbr>OUCH | ||
+ | | | ||
| | | | ||
| intermittent female pain | | intermittent female pain | ||
|- | |- | ||
| 35 | | 35 | ||
+ | | SOUND_<wbr>SEAPLANE_<wbr>LOW_<wbr>FUEL | ||
| 465 | | 465 | ||
− | | ping | + | | 1000.0 |
+ | | "Dildo Dodo" Skimmer low fuel ping | ||
|- | |- | ||
| 52-54 | | 52-54 | ||
+ | | | ||
| 162-164 | | 162-164 | ||
− | | bullet hit ground, random selection between 162 and 164 | + | | 50.0 |
+ | | bullet hit ground, random selection between 162 and 164 | ||
|- | |- | ||
| 56 | | 56 | ||
+ | | | ||
| 267 | | 267 | ||
+ | | 80.0 | ||
| ringing phone | | ringing phone | ||
|- | |- | ||
− | | 57 | + | | 57 |
+ | | | ||
| 147 | | 147 | ||
+ | | 60.0 | ||
+ | | glass breaking | ||
+ | |- | ||
+ | | 58 | ||
+ | | | ||
+ | | 147 | ||
+ | | 60.0 | ||
| glass breaking | | glass breaking | ||
|- | |- | ||
| 59 | | 59 | ||
+ | | | ||
| 146 | | 146 | ||
+ | | 60.0 | ||
| glass breaking | | glass breaking | ||
|- | |- | ||
| 60 | | 60 | ||
+ | | | ||
| 148-151 | | 148-151 | ||
+ | | 55.0 | ||
| glass breaking, random selection between 148 and 151 | | glass breaking, random selection between 148 and 151 | ||
|- | |- | ||
| 61 | | 61 | ||
+ | | | ||
| 327 | | 327 | ||
+ | | 60.0 | ||
| boxes destroyed | | boxes destroyed | ||
|- | |- | ||
| 62 | | 62 | ||
+ | | | ||
| 328 | | 328 | ||
+ | | 60.0 | ||
| boxes destroyed | | boxes destroyed | ||
|- | |- | ||
| 63 | | 63 | ||
+ | | | ||
| 136-140 | | 136-140 | ||
+ | | 60.0 | ||
| metal sheet explosion, random selection between 136 and 140 | | metal sheet explosion, random selection between 136 and 140 | ||
|- | |- | ||
| 64 | | 64 | ||
+ | | | ||
| 33 | | 33 | ||
+ | | 60.0 | ||
| tire hit ground | | tire hit ground | ||
|- | |- | ||
| 65 | | 65 | ||
+ | | | ||
| 339 | | 339 | ||
+ | | 60.0 | ||
| beach ball | | beach ball | ||
|- | |- | ||
| 66 | | 66 | ||
− | | 156 | + | | |
− | | | + | | 156-157 |
+ | | 20.0 | ||
+ | | gun shell drop, dependent on what [[Collision File#Vice City|collision]] the player is currently standing on | ||
|} | |} | ||
− | {{ | + | |
+ | # {{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 III v1.0, the location of the array for sounds with limited range starts at 0x6092D4. For sounds with unlimited range, the array starts at 0x6095D8. | ||
+ | # {{note|3}} For VC v1.0, the location of the array for sounds with limited range starts at 0x6B2C3C. For sounds with unlimited range, the array starts at 0x6B28B8. | ||
== Keywords == | == Keywords == | ||
add, play, create, sound, sfx | add, play, create, sound, sfx | ||
− | [[ | + | == See also == |
+ | * {{Icon|3}} {{Icon|VC}} [[018D]], add continuous sound | ||
+ | |||
+ | == External link == | ||
+ | * {{Icon|VC}} [http://spaceeinstein.altervista.org/018C.htm Listen to some of the sounds]. All the sounds are recorded directly from the game played directly at the viewport. |
Latest revision as of 20:32, 26 December 2016
- Description
- Adds a short sound effect at the location
- Syntax
- 018C: play_sound [int] at [flt1] [flt2] [flt3]
- Parameter
- [flt1]
- X-coordinate
- [flt2]
- Y-coordinate
- [flt3]
- Z-coordinate
- [int]
- Sound index (see below)
This opcode adds a short sound effect at the coordinates point. Certain sound effects are independent of the point and can be heard anywhere. The sound index does not match the SFX table; it is based on a list hardcoded within the game. Many of the SFX sounds are a combination of or altered from the base sound files.
Sounds
GTA III
Id | Enum[1] | SFX[2] | Range | Notes |
---|---|---|---|---|
78 | SOUND_ |
2857-2871 | male pain soft | |
79 | SOUND_ |
2857-2871 | male pain loud | |
80 | SOUND_ |
2290-2300 | female pain soft | |
81 | SOUND_ |
2290-2300 | female pain loud | |
82 | SOUND_ |
161-162 | unlimited | item pickup |
83 | SOUND_ |
161-162 | unlimited | item pickup |
92 | SOUND_ |
147 | 40.0 | gate start |
93 | SOUND_ |
147 | 40.0 | gate stop |
94 | SOUND_ |
337 | unlimited | checkpoint |
97 | SOUND_ |
336 | unlimited | countdown timer 3 |
98 | SOUND_ |
336 | unlimited | countdown timer 2 |
99 | SOUND_ |
336 | unlimited | countdown timer 1 |
100 | SOUND_ |
337 | unlimited | countdown finish |
106-108 | 176-178 | 50.0 | bullet hit ground | |
110-111 | 389 | 80.0 | silent, replace the SFX or edit the memory to a different SFX to make this useful | |
112 | 283 | 80.0 | payphone | |
114-115 | 151 | 60.0 | glass break | |
116 | 150 | 60.0 | glass damage | |
117 | 152-155 | 55.0 | glass shards | |
118 | 327 | 60.0 | boxes destroyed | |
119 | 328 | 60.0 | boxes destroyed | |
120 | 140-144 | 60.0 | car collision | |
121 | 29 | 60.0 | tire collision | |
122 | 167-168 | 20.0 | gun shell drop, dependent on what collision the player is currently standing on | |
123 | 168 | 20.0 | gun shell drop soft |
Vice City
Id | Enum | SFX[3] | Range | Notes |
---|---|---|---|---|
1 | SOUND_ |
364-366 | unlimited | blip |
3 | SOUND_ |
143 | 40.0 | metal gate |
5 | SOUND_ |
102 | 80.0 | garage door finished open/close |
7 | SOUND_ |
364-366 | unlimited | blip |
8 | SOUND_ |
364-366 | unlimited | blip |
9 | SOUND_ |
364-366 | unlimited | blip |
10 | SOUND_ |
367-369 | unlimited | high pitch blip |
12 | SOUND_ |
162-164 | 50.0 | bullet hit ground, random selection between 162 and 164 |
13 | SOUND_ |
361-363 | unlimited | successful select |
14 | SOUND_ |
361-363 | unlimited | unsuccessful select |
16 | SOUND_ |
178 | unlimited | "Demolition Man" and "Trojan Voodoo" arm bomb |
18 | SOUND_ |
334 | 40.0 | "No Escape?" card swipe |
19 | SOUND_ |
intermittent male pain | ||
20 | SOUND_ |
intermittent female pain | ||
35 | SOUND_ |
465 | 1000.0 | "Dildo Dodo" Skimmer low fuel ping |
52-54 | 162-164 | 50.0 | bullet hit ground, random selection between 162 and 164 | |
56 | 267 | 80.0 | ringing phone | |
57 | 147 | 60.0 | glass breaking | |
58 | 147 | 60.0 | glass breaking | |
59 | 146 | 60.0 | glass breaking | |
60 | 148-151 | 55.0 | glass breaking, random selection between 148 and 151 | |
61 | 327 | 60.0 | boxes destroyed | |
62 | 328 | 60.0 | boxes destroyed | |
63 | 136-140 | 60.0 | metal sheet explosion, random selection between 136 and 140 | |
64 | 33 | 60.0 | tire hit ground | |
65 | 339 | 60.0 | beach ball | |
66 | 156-157 | 20.0 | gun shell drop, dependent on what collision the player is currently standing on |
- ^ Enums are from GTAModding.ru.
- ^ 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 III v1.0, the location of the array for sounds with limited range starts at 0x6092D4. For sounds with unlimited range, the array starts at 0x6095D8.
- ^ For VC v1.0, the location of the array for sounds with limited range starts at 0x6B2C3C. For sounds with unlimited range, the array starts at 0x6B28B8.
Keywords
add, play, create, sound, sfx
See also
- 018D, add continuous sound
External link
- Listen to some of the sounds. All the sounds are recorded directly from the game played directly at the viewport.