Difference between revisions of "0394"

From GTAMods Wiki
Jump to navigation Jump to search
(updating page)
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Icon|trilogy}} '''PLAY_MISSION_PASSED_TUNE'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
+
| command    = PLAY_MISSION_PASSED_TUNE
'''Description'''
+
| description = Plays the mission passed audio
: Plays the mission passed audio
+
| syntax1    = 0394: play_music [''int'']
'''Syntax'''
+
| p1t        = [''int'']
: 0394: play_music [''int'']
+
| p1d        = ''1'' (see below for special cases)
'''Parameter'''
+
}}
: [''int'']
 
:: Audio index, recommended use only value 1
 
  
 
This opcode plays the mission passed audio.
 
This opcode plays the mission passed audio.
  
In Vice City, the mission passed audio uses <code>miscom.mp3</code> file. The background ambient noise will be disabled and the music will fade in as it plays and fade out as it ends. Background ambient noise will resume afterward. Using any value other than 1 will continue to have the background ambient noise disabled unless it is restored, one way by pausing and unpausing the game. If the background ambient noise remains disabled, this opcode cannot play anymore audio until the noise is reenabled. The 0th index for this opcode starts at index 76 from [[057D|opcode 057D's list of audio files]]. For example, using a value of 3 would play music from 057D's index 78 <code>MobR1.wav</code> file.
+
In GTA III the mission passed audio uses <code>Miscom.wav</code> file and in Vice City it uses <code>miscom.mp3</code> file. The background ambient noise will be disabled and the music will play. In Vice City, music will fade in as it plays and when it finishes background ambient noise will fade back in and resume afterward. In GTA III this happens instantly. Pausing and unpausing the game or playing another audio other than itself will interrupt the audio.
}}</onlyinclude>
+
 
 +
== Special cases ==
 +
This opcode can actually play many audio files within the Audio directory, not just the mission passed audio. Using any value other than 1 will continue to have the background ambient noise disabled unless it is restored, one way by pausing and unpausing the game. In Vice City, if the background ambient noise remains disabled, this opcode cannot play the same audio until the noise is reenabled but it can still play other audio.
 +
 
 +
In GTA III, it accepts negative values down to -92 and positive values up to 103, being able to play any audio within the folder. From the [[Audio directory (III)|list of positions of GTA III's audio]], offset the position by -92 to get the appropriate value.
 +
 
 +
In Vice City, it accepts negative values down to -100 and positive values up to 155. From the [[Audio directory (VC)|list of positions of Vice City's audio]], offset the position by -100 to get the appropriate value. For example, a value of 16 - 100 = -84 can play the mall ambiance audio, or a value of 103 - 100 = 3 can play the phone ringing audio. At a value of 156, it overflows back to the beginning of the audio position (i.e. 156 will play audio in position 0) and will overflow in increments of 256 (i.e. 412 will play audio in position 0).
  
 
== Keywords ==
 
== Keywords ==
play, music, sound, mp3
+
play, mission, passed, music, sound, mp3, tune
 
 
[[Category:OpCodes]]
 

Latest revision as of 21:52, 1 July 2016

GTA III Vice City San Andreas PLAY_MISSION_PASSED_TUNE


Description
Plays the mission passed audio
Syntax
0394: play_music [int]
Parameter
[int]
1 (see below for special cases)

This opcode plays the mission passed audio.

In GTA III the mission passed audio uses Miscom.wav file and in Vice City it uses miscom.mp3 file. The background ambient noise will be disabled and the music will play. In Vice City, music will fade in as it plays and when it finishes background ambient noise will fade back in and resume afterward. In GTA III this happens instantly. Pausing and unpausing the game or playing another audio other than itself will interrupt the audio.

Special cases

This opcode can actually play many audio files within the Audio directory, not just the mission passed audio. Using any value other than 1 will continue to have the background ambient noise disabled unless it is restored, one way by pausing and unpausing the game. In Vice City, if the background ambient noise remains disabled, this opcode cannot play the same audio until the noise is reenabled but it can still play other audio.

In GTA III, it accepts negative values down to -92 and positive values up to 103, being able to play any audio within the folder. From the list of positions of GTA III's audio, offset the position by -92 to get the appropriate value.

In Vice City, it accepts negative values down to -100 and positive values up to 155. From the list of positions of Vice City's audio, offset the position by -100 to get the appropriate value. For example, a value of 16 - 100 = -84 can play the mall ambiance audio, or a value of 103 - 100 = 3 can play the phone ringing audio. At a value of 156, it overflows back to the beginning of the audio position (i.e. 156 will play audio in position 0) and will overflow in increments of 256 (i.e. 412 will play audio in position 0).

Keywords

play, mission, passed, music, sound, mp3, tune