Difference between revisions of "018C"

From GTAMods Wiki
Jump to navigation Jump to search
(sounds easier to listen on my page)
(sound range)
Line 1: Line 1:
 
__NOTOC__{{Icon|trilogy}} '''ADD_ONE_OFF_SOUND'''
 
__NOTOC__{{Icon|trilogy}} '''ADD_ONE_OFF_SOUND'''
 
<hr />
 
<hr />
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
 
 
'''Description'''
 
'''Description'''
 
: Adds a short [[SFX|sound effect]] at a point
 
: Adds a short [[SFX|sound effect]] at a point
Line 16: Line 15:
 
:: Z-coordinate
 
:: Z-coordinate
  
This opcode adds a short sound effect at a 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. Most of the SFX sounds are a combination of or altered from the base sound files.
+
This opcode adds a short sound effect at a 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.
}}</onlyinclude>
 
  
 
== GTA III ==
 
== GTA III ==
 
{| class="wikitable"
 
{| class="wikitable"
! Index
+
! Index || Enum{{ref|1}} || SFX || Notes
! SFX
 
! Enum
 
! Notes
 
 
|-
 
|-
 
| 78
 
| 78
 +
| SOUND_INJURED_PED_MALE_OUCH_S
 
|  
 
|  
| SOUND_INJURED_PED_MALE_OUCH_S
 
 
| male pain
 
| male pain
 
|-
 
|-
 
| 79
 
| 79
 +
| SOUND_INJURED_PED_MALE_OUCH_L
 
|  
 
|  
| SOUND_INJURED_PED_MALE_OUCH_L
 
 
| male pain
 
| male pain
 
|-
 
|-
 
| 80
 
| 80
 +
| SOUND_INJURED_PED_FEMALE_OUCH_S
 
|  
 
|  
| SOUND_INJURED_PED_FEMALE_OUCH_S
 
 
| female pain
 
| female pain
 
|-
 
|-
 
| 81
 
| 81
 +
| SOUND_INJURED_PED_FEMALE_OUCH_L
 
|  
 
|  
| SOUND_INJURED_PED_FEMALE_OUCH_L
 
 
| female pain
 
| female pain
 
|-
 
|-
| 82{{Ref|1|[*]}}
+
| 82{{Ref|3|[*]}}
 +
| SOUND_EVIDENCE_PICKUP
 
|  
 
|  
| SOUND_EVIDENCE_PICKUP
 
 
| item pickup
 
| item pickup
 
|-
 
|-
| 83{{Ref|1|[*]}}
+
| 83{{Ref|3|[*]}}
 +
| SOUND_UNLOAD_GOLD
 
|  
 
|  
| SOUND_UNLOAD_GOLD
 
 
| item pickup
 
| item pickup
 
|-
 
|-
 
| 92
 
| 92
 +
| SOUND_GATE_START_CLUNK
 
| 147
 
| 147
| SOUND_GATE_START_CLUNK
 
 
| [[Moving gate|gate]] start
 
| [[Moving gate|gate]] start
 
|-
 
|-
 
| 93
 
| 93
 +
| SOUND_GATE_STOP_CLUNK
 
| 147
 
| 147
| SOUND_GATE_STOP_CLUNK
 
 
| gate stop
 
| gate stop
 
|-
 
|-
| 94{{Ref|1|[*]}}
+
| 94{{Ref|3|[*]}}
 +
| SOUND_PART_MISSION_COMPLETE
 
|  
 
|  
| SOUND_PART_MISSION_COMPLETE
 
 
| checkpoint
 
| checkpoint
 
|-
 
|-
| 97{{Ref|1|[*]}}
+
| 97{{Ref|3|[*]}}
 +
| SOUND_RACE_START_3
 
|  
 
|  
| SOUND_RACE_START_3
 
 
| countdown timer 3
 
| countdown timer 3
 
|-
 
|-
| 98{{Ref|1|[*]}}
+
| 98{{Ref|3|[*]}}
 +
| SOUND_RACE_START_2
 
|  
 
|  
| SOUND_RACE_START_2
 
 
| countdown timer 2
 
| countdown timer 2
 
|-
 
|-
| 99{{Ref|1|[*]}}
+
| 99{{Ref|3|[*]}}
 +
| SOUND_RACE_START_1
 
|  
 
|  
| SOUND_RACE_START_1
 
 
| countdown timer 1
 
| countdown timer 1
 
|-
 
|-
| 100{{Ref|1|[*]}}
+
| 100{{Ref|3|[*]}}
 +
| SOUND_RACE_START_GO
 
|  
 
|  
| SOUND_RACE_START_GO
 
 
| countdown finish
 
| countdown finish
 
|-
 
|-
 
| 106-108
 
| 106-108
| 176-178
+
|
|
+
| 176-178  
 
| bullet hit ground
 
| bullet hit ground
 
|-
 
|-
 
| 112
 
| 112
| 283
+
|
|  
+
| 283
 
| payphone
 
| payphone
 
|-
 
|-
 
| 114-115
 
| 114-115
| 151
+
|
|  
+
| 151
 
| glass break
 
| glass break
 
|-
 
|-
 
| 116
 
| 116
| 150
+
|
|  
+
| 150
 
| glass damage
 
| glass damage
 
|-
 
|-
 
| 117
 
| 117
| 152-155
+
|
|
+
| 152-155  
 
| glass shards
 
| glass shards
 
|-
 
|-
 
| 118
 
| 118
| 327
+
|
|  
+
| 327
 
| boxes destroyed
 
| boxes destroyed
 
|-
 
|-
 
| 119
 
| 119
| 328
+
|
|  
+
| 328
 
| boxes destroyed
 
| boxes destroyed
 
|-
 
|-
 
| 120
 
| 120
| 140-144
+
|
|
+
| 140-144  
 
| car collision
 
| car collision
 
|-
 
|-
 
| 121
 
| 121
| 29
+
|
|  
+
| 29
 
| tire collision
 
| tire collision
 
|-
 
|-
 
| 122-123
 
| 122-123
| 167
+
|
|  
+
| 167
 
| bullet shells
 
| bullet shells
 
|}
 
|}
 +
 +
{{Note|3}} Doesn't depend on coordinates, can be heard no matter what coordinates is used
  
 
== Vice City ==
 
== Vice City ==
All the sounds are recorded directly from the game played directly at the viewport.
+
{| class="wikitable sortable"
{| class="wikitable"
+
! Index || Enum{{ref|1}} || data-sort-type="number" | SFX{{ref|2}} || data-sort-type="number" | Range || Notes
! Index || SFX || Enum || Notes
 
 
|-
 
|-
| 1{{Ref|1|[*]}}
+
| 1
| 364,365,366
 
 
| SOUND_PART_MISSION_COMPLETE
 
| SOUND_PART_MISSION_COMPLETE
 +
| 364-366
 +
| unlimited
 
| blip
 
| blip
 
|-
 
|-
 
| 3
 
| 3
 +
| SOUND_POLICE_CELL_DOOR_CLUNK
 
| 143
 
| 143
| SOUND_POLICE_CELL_DOOR_CLUNK
+
| 40.0
| metal gate
+
| metal [[Moving gate|gate]]
 
|-
 
|-
| 5
+
| 5  
|
 
 
| SOUND_GARAGE_DOOR_CLUNK
 
| SOUND_GARAGE_DOOR_CLUNK
 +
| 102
 +
| 80.0
 
| garage door finished open/close
 
| garage door finished open/close
 
|-
 
|-
| 7{{Ref|1|[*]}}
+
| 7
| 364,365,366
 
 
| SOUND_RACE_START_3
 
| SOUND_RACE_START_3
 +
| 364-366
 +
| unlimited
 
| blip
 
| blip
 
|-
 
|-
| 8{{Ref|1|[*]}}
+
| 8
| 364,365,366
 
 
| SOUND_RACE_START_2
 
| SOUND_RACE_START_2
 +
| 364-366
 +
| unlimited
 
| blip
 
| blip
 
|-
 
|-
| 9{{Ref|1|[*]}}
+
| 9
| 364,365,366
 
 
| SOUND_RACE_START_1
 
| SOUND_RACE_START_1
 +
| 364-366
 +
| unlimited
 
| blip
 
| blip
 
|-
 
|-
| 10{{Ref|1|[*]}}
+
| 10
| 367,368,369
 
 
| SOUND_RACE_START_GO
 
| SOUND_RACE_START_GO
 +
| 367-369
 +
| unlimited
 
| high pitch blip
 
| high pitch blip
 
|-
 
|-
 
| 12
 
| 12
 +
| SOUND_SHOOTING_RANGE_TARGET_HIT
 
| 162-164
 
| 162-164
| SOUND_SHOOTING_RANGE_TARGET_HIT
+
| 50.0
 
| bullet hit ground, random selection between 162 and 164
 
| bullet hit ground, random selection between 162 and 164
 
|-
 
|-
| 13{{Ref|1|[*]}}
+
| 13
| 361,362,363
 
 
| SOUND_AMMUNATION_BUY_WEAPON
 
| SOUND_AMMUNATION_BUY_WEAPON
 +
| 361-363
 +
| unlimited
 
| successful select
 
| successful select
 
|-
 
|-
| 14{{Ref|1|[*]}}
+
| 14
| 361,362,363
 
 
| SOUND_AMMUNATION_BUY_WEAPON_DENIED
 
| SOUND_AMMUNATION_BUY_WEAPON_DENIED
 +
| 361-363
 +
| unlimited
 
| unsuccessful select
 
| unsuccessful select
 
|-
 
|-
| 16{{Ref|1|[*]}}
+
| 16
 +
| SOUND_IMRAN_ARM_BOMB
 
| 178
 
| 178
| SOUND_IMRAN_ARM_BOMB
+
| unlimited
 
| Demolition Man and Trojan Voodoo arm bomb
 
| Demolition Man and Trojan Voodoo arm bomb
 
|-
 
|-
 
| 18
 
| 18
 +
| SOUND_WILLIE_CARD_SWIPE
 
| 334
 
| 334
| SOUND_WILLIE_CARD_SWIPE
+
| 40.0
 
| No Escape? card swipe
 
| No Escape? card swipe
 
|-
 
|-
 
| 19
 
| 19
 +
| SOUND_MALE_AMBULANCE_OUCH
 
|
 
|
| SOUND_MALE_AMBULANCE_OUCH
+
|  
 
| intermittent male pain
 
| intermittent male pain
 
|-
 
|-
 
| 20
 
| 20
 +
| SOUND_FEMALE_AMBULANCE_OUCH
 
|
 
|
| SOUND_FEMALE_AMBULANCE_OUCH
+
|  
 
| intermittent female pain
 
| intermittent female pain
 
|-
 
|-
 
| 35
 
| 35
 +
| SOUND_SEAPLANE_LOW_FUEL
 
| 465
 
| 465
| SOUND_SEAPLANE_LOW_FUEL
+
| 1000.0
| Dildo Dodo low fuel ping
+
| Dildo Dodo Skimmer low fuel ping
 
|-
 
|-
 
| 52-54
 
| 52-54
 +
|
 
| 162-164
 
| 162-164
|  
+
| 50.0
 
| bullet hit ground, random selection between 162 and 164
 
| 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
 
| glass breaking
 
|-
 
|-
 
| 58
 
| 58
 +
|
 
| 147
 
| 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
|  
+
| 20.0
 
| bullet shell dropping
 
| bullet shell dropping
 
|}
 
|}
{{Note|1}} Doesn't depend on coordinates, can be heard no matter what coordinates is used
+
 
 +
# {{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 association between the sound and SFX is hardcoded. For VC v1.0, the location of the array for sounds with a range starts at 0x6B2C3C. For sounds with unlimited range, the array starts at 0x6B28B8.
  
 
== Keywords ==
 
== Keywords ==
Line 288: Line 313:
  
 
== External link ==
 
== External link ==
{{Icon|VC}} [http://spaceeinstein.altervista.org/018C.htm Listen to some of the sounds]
+
{{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.
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 18:59, 15 March 2015

GTA III Vice City San Andreas ADD_ONE_OFF_SOUND


Description

Adds a short sound effect at a point

Syntax

018C: play_sound [int] at [flt1] [flt2] [flt3]

Parameter

[int]
Sound index
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate

This opcode adds a short sound effect at a 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

Index Enum[1] SFX Notes
78 SOUND_INJURED_PED_MALE_OUCH_S male pain
79 SOUND_INJURED_PED_MALE_OUCH_L male pain
80 SOUND_INJURED_PED_FEMALE_OUCH_S female pain
81 SOUND_INJURED_PED_FEMALE_OUCH_L female pain
82[*] SOUND_EVIDENCE_PICKUP item pickup
83[*] SOUND_UNLOAD_GOLD item pickup
92 SOUND_GATE_START_CLUNK 147 gate start
93 SOUND_GATE_STOP_CLUNK 147 gate stop
94[*] SOUND_PART_MISSION_COMPLETE checkpoint
97[*] SOUND_RACE_START_3 countdown timer 3
98[*] SOUND_RACE_START_2 countdown timer 2
99[*] SOUND_RACE_START_1 countdown timer 1
100[*] SOUND_RACE_START_GO countdown finish
106-108 176-178 bullet hit ground
112 283 payphone
114-115 151 glass break
116 150 glass damage
117 152-155 glass shards
118 327 boxes destroyed
119 328 boxes destroyed
120 140-144 car collision
121 29 tire collision
122-123 167 bullet shells

^ Doesn't depend on coordinates, can be heard no matter what coordinates is used

Vice City

Index Enum[1] SFX[2] Range Notes
1 SOUND_PART_MISSION_COMPLETE 364-366 unlimited blip
3 SOUND_POLICE_CELL_DOOR_CLUNK 143 40.0 metal gate
5 SOUND_GARAGE_DOOR_CLUNK 102 80.0 garage door finished open/close
7 SOUND_RACE_START_3 364-366 unlimited blip
8 SOUND_RACE_START_2 364-366 unlimited blip
9 SOUND_RACE_START_1 364-366 unlimited blip
10 SOUND_RACE_START_GO 367-369 unlimited high pitch blip
12 SOUND_SHOOTING_RANGE_TARGET_HIT 162-164 50.0 bullet hit ground, random selection between 162 and 164
13 SOUND_AMMUNATION_BUY_WEAPON 361-363 unlimited successful select
14 SOUND_AMMUNATION_BUY_WEAPON_DENIED 361-363 unlimited unsuccessful select
16 SOUND_IMRAN_ARM_BOMB 178 unlimited Demolition Man and Trojan Voodoo arm bomb
18 SOUND_WILLIE_CARD_SWIPE 334 40.0 No Escape? card swipe
19 SOUND_MALE_AMBULANCE_OUCH intermittent male pain
20 SOUND_FEMALE_AMBULANCE_OUCH intermittent female pain
35 SOUND_SEAPLANE_LOW_FUEL 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 20.0 bullet shell dropping
  1. ^ Enums are from Wesser's GTA III/VC definitions.
  2. ^ These values correspond to an SFX entry. The association between the sound and SFX is hardcoded. For VC v1.0, the location of the array for sounds with a range starts at 0x6B2C3C. For sounds with unlimited range, the array starts at 0x6B28B8.

Keywords

add, play, create, sound, sfx

External link

Vice City Listen to some of the sounds. All the sounds are recorded directly from the game played directly at the viewport.