Difference between revisions of "057D"

From GTAMods Wiki
Jump to navigation Jump to search
(audio range limited)
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Icon|VC}} '''PLAY_ANNOUNCEMENT'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}}
'''Description'''
+
| command    = PLAY_ANNOUNCEMENT
: Play announcement over the radio
+
| description = Plays announcement over the radio
'''Syntax'''
+
| syntax1    = 057D: play_bridge_status_mp3 [''int'']
: 057D: play_bridge_status_mp3 [''int'']
+
| p1t        = [''int'']
'''Parameter'''
+
| p1d        = ''0'' or ''1'' (see below for special cases)
: [''int'']
+
}}
:: Value of either 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.
 
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.
  
{| class="wikitable"
+
{|class="wikitable center-col-1"
! Value || Enum || File name
+
!Value ||[[SCM language III/VC definitions#ANNOUNCEMENT|Enum]] ||File name
 
|-
 
|-
| 0 || ANNOUNCEMENT_TRACK_BRIDGE_CLOSED || bclosed.mp3
+
|0 ||ANNOUNCEMENT_TRACK_BRIDGE_CLOSED ||bclosed.mp3
 
|-
 
|-
| 1 || ANNOUNCEMENT_TRACK_BRIDGE_OPEN || bopen.mp3
+
|1 ||ANNOUNCEMENT_TRACK_BRIDGE_OPEN ||bopen.mp3
 
|}
 
|}
  
This opcode can actually play many audio files within the Audio folder, not just the bridge announcement audio, and it accepts negative values down to -25 and positive values up to 230. From the [[Audio (folder, 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 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).
  
 
== 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