Difference between revisions of "057D"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
+
{{OpCode
{{Icon|VC}} '''PLAY_ANNOUNCEMENT'''
+
| games      = {{Icon|VC}}
<hr />
+
| command    = PLAY_ANNOUNCEMENT
'''Description'''
+
| description = Plays announcement over the radio
: Play announcement over the radio
+
| syntax1    = 057D: play_bridge_status_mp3 [''int'']
'''Syntax'''
+
| p1t        = [''int'']
: 057D: play_bridge_status_mp3 [''int'']
+
| p1d        = ''0'' or ''1'' (see below for special cases)
'''Parameter'''
+
}}
: [''int'']
 
:: Audio ID
 
  
This opcode plays the bridge status audio over the radio. Values 0 (bclosed.mp3) and 1 (bopen.mp3) are used in the game. The audio will play once the player is in a vehicle. The radio station will abruptly stop and will play the audio. Once the audio is playing, radio stations cannot be switched. When the audio ends, the radio station will fade back in. The audio will play in any vehicles, even if the radio is turned off (Caddy) or if the vehicle doesn't have changeable radio stations (police vehicles). The audio can only be heard once so when the player exits the vehicle while the audio is playing and reenters it, the vehicle will play its normal radio station.
+
This opcode plays the bridge status audio over the radio. The audio will play once the player is in a vehicle. The radio station will abruptly stop and will play the audio. Once the audio is playing, radio stations cannot be switched. When the audio ends, the radio station will fade back in. The audio will play in any vehicles, even if the radio is turned off (Caddy) or if the vehicle doesn't have changeable radio stations (police vehicles). The audio can only be heard once so when the player exits the vehicle while the audio is playing and reenters it, the vehicle will play its normal radio station.
  
== List of audio IDs ==
+
{|class="wikitable center-col-1"
=== Default ===
+
!Value ||[[SCM language III/VC definitions#ANNOUNCEMENT|Enum]] ||File name
{| class="wikitable"
 
! ID
 
! File name
 
 
|-
 
|-
| 0
+
|0 ||ANNOUNCEMENT_TRACK_BRIDGE_CLOSED ||bclosed.mp3
| bclosed.mp3
 
 
|-
 
|-
| 1
+
|1 ||ANNOUNCEMENT_TRACK_BRIDGE_OPEN ||bopen.mp3
| bopen.mp3
 
 
|}
 
|}
  
=== Extended ===
+
This opcode can actually play many audio files within the Audio directory, not just the bridge announcement audio, and it accepts negative values down to -25 and positive values up to 230. From the [[Audio directory (VC)|list of positions of Vice City's audio]], offset the position by -25 to get the appropriate value. For example, a value of 16 - 25 = -9 can play the mall ambiance audio as the announcement, or a value of 66 - 25 = 41 can play the finale cutscene audio as the announcement. At a value of 231, it overflows back to the beginning of the audio position (i.e. 231 will play audio in position 0) and will overflow in increments of 256 (i.e. 487 will play audio in position 0).
This opcode can actually play any audio file within the Audio folder, not just the bridge announcement audio.
 
{|
 
| valign="top" |
 
{| class="wikitable"
 
! ID
 
! File name
 
|-
 
| 2
 
| ass_1.mp3
 
|-
 
| 3
 
| ass_2.mp3
 
|-
 
| 4
 
| bank_1.mp3
 
|-
 
| 5
 
| bank_2a.mp3
 
|-
 
| 6
 
| bank_2b.mp3
 
|-
 
| 7
 
| bank_3a.mp3
 
|-
 
| 8
 
| bank_3b.mp3
 
|-
 
| 9
 
| bank_4.mp3
 
|-
 
| 10
 
| bike_1.mp3
 
|-
 
| 11
 
| bike_2.mp3
 
|-
 
| 12
 
| bike_3.mp3
 
|-
 
| 13
 
| bud_1.mp3
 
|-
 
| 14
 
| bud_2.mp3
 
|-
 
| 15
 
| bud_3.mp3
 
|-
 
| 16
 
| cap_1.mp3
 
|-
 
| 17
 
| car_1.mp3
 
|-
 
| 18
 
| cnt_1a.mp3
 
|-
 
| 19
 
| cnt_1b.mp3
 
|-
 
| 20
 
| cnt_2.mp3
 
|}
 
| valign="top" |
 
{| class="wikitable"
 
! ID
 
! File name
 
|-
 
| 21
 
| cok_1.mp3
 
|-
 
| 22
 
| cok_2a.mp3
 
|-
 
| 23
 
| cok_2b.mp3
 
|-
 
| 24
 
| cok_3.mp3
 
|-
 
| 25
 
| cok_4a.mp3
 
|-
 
| 26
 
| cok_4a2.mp3
 
|-
 
| 27
 
| cok_4b.mp3
 
|-
 
| 28
 
| col_1.mp3
 
|-
 
| 29
 
| col_2.mp3
 
|-
 
| 30
 
| col_3a.mp3
 
|-
 
| 31
 
| col_4a.mp3
 
|-
 
| 32
 
| col_5a.mp3
 
|-
 
| 33
 
| col_5b.mp3
 
|-
 
| 34
 
| cub_1.mp3
 
|-
 
| 35
 
| cub_2.mp3
 
|-
 
| 36
 
| cub_3.mp3
 
|-
 
| 37
 
| cub_4.mp3
 
|-
 
| 38
 
| drug_1.mp3
 
|-
 
| 39
 
| fin.mp3
 
|-
 
| 40
 
| fin_2.mp3
 
|-
 
| 41
 
| finale.mp3
 
|}
 
| valign="top" |
 
{| class="wikitable"
 
! ID
 
! File name
 
|-
 
| 42
 
| hat_1.mp3
 
|-
 
| 43
 
| hat_2.mp3
 
|-
 
| 44
 
| hat_3.mp3
 
|-
 
| 45
 
| ice_1.mp3
 
|-
 
| 46
 
| int_a.mp3
 
|-
 
| 47
 
| int_b.mp3
 
|-
 
| 48
 
| int_d.mp3
 
|-
 
| 49
 
| int_m.mp3
 
|-
 
| 50
 
| law_1a.mp3
 
|-
 
| 51
 
| law_1b.mp3
 
|-
 
| 52
 
| law_2a.mp3
 
|-
 
| 53
 
| law_2b.mp3
 
|-
 
| 54
 
| law_2c.mp3
 
|-
 
| 55
 
| law_3.mp3
 
|-
 
| 56
 
| law_4.mp3
 
|-
 
| 57
 
| phil_1.mp3
 
|-
 
| 58
 
| phil_2.mp3
 
|-
 
| 59
 
| porn_1.mp3
 
|-
 
| 60
 
| porn_2.mp3
 
|-
 
| 61
 
| porn_3.mp3
 
|-
 
| 62
 
| porn_4.mp3
 
|}
 
| valign="top" |
 
{| class="wikitable"
 
! ID
 
! File name
 
|-
 
| 63
 
| resc_1a.mp3
 
|-
 
| 64
 
| rok_1.mp3
 
|-
 
| 65
 
| rok_2.mp3
 
|-
 
| 66
 
| rok_3.mp3
 
|-
 
| 67
 
| stripa.mp3
 
|-
 
| 68
 
| tax_1.mp3
 
|-
 
| 69
 
| tex_1.mp3
 
|-
 
| 70
 
| tex_2.mp3
 
|-
 
| 71
 
| tex_3.mp3
 
|-
 
| 72
 
| Glight.mp3
 
|-
 
| 73
 
| FIST.mp3
 
|-
 
| 74
 
| miscom.mp3
 
|-
 
| 75
 
| miscom.mp3
 
|-
 
| 76
 
| miscom.mp3
 
|-
 
| 77
 
| miscom.mp3
 
|-
 
| 78
 
| MobR1.wav
 
|-
 
| 79
 
| pager.wav
 
|-
 
| 80
 
| CarRev.wav
 
|-
 
| 81
 
| BikeRev.wav
 
|-
 
| 82
 
| LiftOp.wav
 
|-
 
| 83
 
| LiftCl.wav
 
|}
 
| valign="top" |
 
{| class="wikitable"
 
! ID
 
! File name
 
|-
 
| 84
 
| LiftRun.wav
 
|-
 
| 85
 
| LiftBel.wav
 
|-
 
| 86
 
| InLift.wav
 
|-
 
| 87
 
| SFX_01.wav
 
|-
 
| 88
 
| SFX_02.wav
 
|-
 
| 89
 
| CameraL.wav
 
|-
 
| 90
 
| CameraR.wav
 
|-
 
| 91
 
| Cheer1.wav
 
|-
 
| 92
 
| Cheer2.wav
 
|-
 
| 93
 
| Cheer3.wav
 
|-
 
| 94
 
| Cheer4.wav
 
|-
 
| 95
 
| OHH1.wav
 
|-
 
| 96
 
| OHH2.wav
 
|-
 
| 97
 
| race1.wav
 
|-
 
| 98
 
| race2.wav
 
|-
 
| 99
 
| race3.wav
 
|-
 
| 100
 
| race4.wav
 
|-
 
| 101
 
| race5.wav
 
|-
 
| 102
 
| race6.wav
 
|-
 
| 103
 
| race7.wav
 
|-
 
| 104
 
| race8.wav
 
|}
 
| valign="top" |
 
{| class="wikitable"
 
! ID
 
! File name
 
|-
 
| 105
 
| race9.wav
 
|-
 
| 106
 
| race10.wav
 
|-
 
| 107
 
| race11.wav
 
|-
 
| 108
 
| race12.wav
 
|-
 
| 109
 
| race13.wav
 
|-
 
| 110
 
| race14.wav
 
|-
 
| 111
 
| race15.wav
 
|-
 
| 112
 
| hot1.wav
 
|-
 
| 113
 
| hot2.wav
 
|-
 
| 114
 
| hot3.wav
 
|-
 
| 115
 
| hot4.wav
 
|-
 
| 116
 
| hot5.wav
 
|-
 
| 117
 
| hot6.wav
 
|-
 
| 118
 
| hot7.wav
 
|-
 
| 119
 
| hot8.wav
 
|-
 
| 120
 
| hot9.wav
 
|-
 
| 121
 
| hot10.wav
 
|-
 
| 122
 
| hot11.wav
 
|-
 
| 123
 
| hot12.wav
 
|-
 
| 124
 
| hot13.wav
 
|-
 
| 125
 
| hot14.wav
 
|}
 
| valign="top" |
 
{| class="wikitable"
 
! ID
 
! File name
 
|-
 
| 126
 
| hot15.wav
 
|-
 
| 127
 
| lanstp1.wav
 
|-
 
| 128
 
| lanstp2.wav
 
|-
 
| 129
 
| lanamu1.wav
 
|-
 
| -9
 
| MallAmb.mp3
 
|-
 
| -8
 
| Strip.mp3
 
|-
 
| -7
 
| Malibu.mp3
 
|-
 
| -6
 
| Hotel.mp3
 
|-
 
| -5
 
| DirtRing.mp3
 
|-
 
| -4
 
| Law4Riot.mp3
 
|-
 
| -3
 
| ambsil.mp3
 
|-
 
| -2
 
| police.mp3
 
|-
 
| -1
 
| taxi.mp3
 
|}
 
|}
 
  
 
== Keywords ==
 
== Keywords ==
play, sound, mp3, bridge status, announcement
+
play, sound, mp3, bridge, status, announcement
 
 
[[Category:OpCodes]]
 

Latest revision as of 21:46, 1 July 2016

Vice City PLAY_ANNOUNCEMENT


Description
Plays announcement over the radio
Syntax
057D: play_bridge_status_mp3 [int]
Parameter
[int]
0 or 1 (see below for special cases)

This opcode plays the bridge status audio over the radio. The audio will play once the player is in a vehicle. The radio station will abruptly stop and will play the audio. Once the audio is playing, radio stations cannot be switched. When the audio ends, the radio station will fade back in. The audio will play in any vehicles, even if the radio is turned off (Caddy) or if the vehicle doesn't have changeable radio stations (police vehicles). The audio can only be heard once so when the player exits the vehicle while the audio is playing and reenters it, the vehicle will play its normal radio station.

Value Enum File name
0 ANNOUNCEMENT_TRACK_BRIDGE_CLOSED bclosed.mp3
1 ANNOUNCEMENT_TRACK_BRIDGE_OPEN bopen.mp3

This opcode can actually play many audio files within the Audio directory, not just the bridge announcement audio, and it accepts negative values down to -25 and positive values up to 230. From the list of positions of Vice City's audio, offset the position by -25 to get the appropriate value. For example, a value of 16 - 25 = -9 can play the mall ambiance audio as the announcement, or a value of 66 - 25 = 41 can play the finale cutscene audio as the announcement. At a value of 231, it overflows back to the beginning of the audio position (i.e. 231 will play audio in position 0) and will overflow in increments of 256 (i.e. 487 will play audio in position 0).

Keywords

play, sound, mp3, bridge, status, announcement