Audio::setAudioFlag: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(yay)
 
Line 1: Line 1:
Possible flag names:<br>(updated from b393d scripts - MoMadenU - 8/23/15)<br><br>'ActivateSwitchWheelAudio'<br>'AllowAmbientSpeechInSlowMo'<br>'AllowCutsceneOverScreenFade'<br>'AllowForceRadioAfterRetune'<br>'AllowPainAndAmbientSpeechToPlayDuringCutscene'<br>'AllowPlayerAIOnMission'<br>'AllowPoliceScannerWhenPlayerHasNoControl'<br>'AllowRadioDuringSwitch'<br>'AllowRadioOverScreenFade'<br>'AllowScoreAndRadio'<br>'AllowScriptedSpeechInSlowMo'<br>'AvoidMissionCompleteDelay'<br>'DisableAbortConversationForDeathAndInjury'<br>'DisableAbortConversationForRagdoll'<br>'DisableBarks'<br>'DisableFlightMusic'<br>'DisableReplayScriptStreamRecording'<br>'EnableHeadsetBeep'<br>'ForceConversationInterrupt'<br>'ForceSeamlessRadioSwitch'<br>'ForceSniperAudio'<br>'FrontendRadioDisabled'<br>'HoldMissionCompleteWhenPrepared'<br>'IsDirectorModeActive'<br>'IsPlayerOnMissionForSpeech'<br>'ListenerReverbDisabled'<br>'LoadMPData'<br>'MobileRadioInGame'<br>'OnlyAllowScriptTriggerPoliceScanner'<br>'PlayMenuMusic'<br>'PoliceScannerDisabled'<br>'ScriptedConvListenerMaySpeak'<br>'SpeechDucksScore'<br>'SuppressPlayerScubaBreathing'<br>'WantedMusicDisabled'<br>'WantedMusicOnMission'<br><br>-------------------------------<br>No added flag names between b393d and b573d, including b573d.<br><br>#######################################################################<br><br>'IsDirectorModeActive' is an audio flag which will allow you to play speech infinitely without any pauses like in Director Mode.<br><br>- jedijosh920<br><br>-----------------------------------------------------------------------<br><br>All flag IDs and hashes:<br><br>ID: 01 | Hash: 0x20A7858F<br>ID: 02 | Hash: 0xA11C2259<br>ID: 03 | Hash: 0x08DE4700<br>ID: 04 | Hash: 0x989F652F<br>ID: 05 | Hash: 0x3C9E76BA<br>ID: 06 | Hash: 0xA805FEB0<br>ID: 07 | Hash: 0x4B94EA26<br>ID: 08 | Hash: 0x803ACD34<br>ID: 09 | Hash: 0x7C741226<br>ID: 10 | Hash: 0x31DB9EBD<br>ID: 11 | Hash: 0xDF386F18<br>ID: 12 | Hash: 0x669CED42<br>ID: 13 | Hash: 0x51F22743<br>ID: 14 | Hash: 0x2052B35C<br>ID: 15 | Hash: 0x071472DC<br>ID: 16 | Hash: 0xF9928BCC<br>ID: 17 | Hash: 0x7ADBDD48<br>ID: 18 | Hash: 0xA959BA1A<br>ID: 19 | Hash: 0xBBE89B60<br>ID: 20 | Hash: 0x87A08871<br>ID: 21 | Hash: 0xED1057CE<br>ID: 22 | Hash: 0x1584AD7A<br>ID: 23 | Hash: 0x8582CFCB<br>ID: 24 | Hash: 0x7E5E2FB0<br>ID: 25 | Hash: 0xAE4F72DB<br>ID: 26 | Hash: 0x5D16D1FA<br>ID: 27 | Hash: 0x06B2F4B8<br>ID: 28 | Hash: 0x5D4CDC96<br>ID: 29 | Hash: 0x8B5A48BA<br>ID: 30 | Hash: 0x98FBD539<br>ID: 31 | Hash: 0xD8CB0473<br>ID: 32 | Hash: 0x5CBB4874<br>ID: 33 | Hash: 0x2E9F93A9<br>ID: 34 | Hash: 0xD93BEA86<br>ID: 35 | Hash: 0x92109B7D<br>ID: 36 | Hash: 0xB7EC9E4D<br>ID: 37 | Hash: 0xCABDBB1D<br>ID: 38 | Hash: 0xB3FD4A52<br>ID: 39 | Hash: 0x370D94E5<br>ID: 40 | Hash: 0xA0F7938F<br>ID: 41 | Hash: 0xCBE1CE81<br>ID: 42 | Hash: 0xC27F1271<br>ID: 43 | Hash: 0x9E3258EB<br>ID: 44 | Hash: 0x551CDA5B<br>ID: 45 | Hash: 0xCB6D663C<br>ID: 46 | Hash: 0x7DACE87F<br>ID: 47 | Hash: 0xF9DE416F<br>ID: 48 | Hash: 0x882E6E9E<br>ID: 49 | Hash: 0x16B447E7<br>ID: 50 | Hash: 0xBD867739<br>ID: 51 | Hash: 0xA3A58604<br>ID: 52 | Hash: 0x7E046BBC<br>ID: 53 | Hash: 0xD95FDB98<br>ID: 54 | Hash: 0x5842C0ED<br>ID: 55 | Hash: 0x285FECC6<br>ID: 56 | Hash: 0x9351AC43<br>ID: 57 | Hash: 0x50032E75<br>ID: 58 | Hash: 0xAE6D0D59<br>ID: 59 | Hash: 0xD6351785<br>ID: 60 | Hash: 0xD25D71BC<br>ID: 61 | Hash: 0x1F7F6423<br>ID: 62 | Hash: 0xE24C3AA6<br>ID: 63 | Hash: 0xBFFDD2B7
Possible flag names:<br>(updated from b393d scripts - MoMadenU - 8/23/15)<br><br>'ActivateSwitchWheelAudio'<br>'AllowAmbientSpeechInSlowMo'<br>'AllowCutsceneOverScreenFade'<br>'AllowForceRadioAfterRetune'<br>'AllowPainAndAmbientSpeechToPlayDuringCutscene'<br>'AllowPlayerAIOnMission'<br>'AllowPoliceScannerWhenPlayerHasNoControl'<br>'AllowRadioDuringSwitch'<br>'AllowRadioOverScreenFade'<br>'AllowScoreAndRadio'<br>'AllowScriptedSpeechInSlowMo'<br>'AvoidMissionCompleteDelay'<br>'DisableAbortConversationForDeathAndInjury'<br>'DisableAbortConversationForRagdoll'<br>'DisableBarks'<br>'DisableFlightMusic'<br>'DisableReplayScriptStreamRecording'<br>'EnableHeadsetBeep'<br>'ForceConversationInterrupt'<br>'ForceSeamlessRadioSwitch'<br>'ForceSniperAudio'<br>'FrontendRadioDisabled'<br>'HoldMissionCompleteWhenPrepared'<br>'IsDirectorModeActive'<br>'IsPlayerOnMissionForSpeech'<br>'ListenerReverbDisabled'<br>'LoadMPData'<br>'MobileRadioInGame'<br>'OnlyAllowScriptTriggerPoliceScanner'<br>'PlayMenuMusic'<br>'PoliceScannerDisabled'<br>'ScriptedConvListenerMaySpeak'<br>'SpeechDucksScore'<br>'SuppressPlayerScubaBreathing'<br>'WantedMusicDisabled'<br>'WantedMusicOnMission'<br><br>-------------------------------<br>No added flag names between b393d and b573d, including b573d.<br><br>#######################################################################<br><br>'IsDirectorModeActive' is an audio flag which will allow you to play speech infinitely without any pauses like in Director Mode.<br><br>- jedijosh920<br><br>-----------------------------------------------------------------------<br><br>All flag IDs and hashes:<br><br>ID: 01 | Hash: 0x20A7858F<br>ID: 02 | Hash: 0xA11C2259<br>ID: 03 | Hash: 0x08DE4700<br>ID: 04 | Hash: 0x989F652F<br>ID: 05 | Hash: 0x3C9E76BA<br>ID: 06 | Hash: 0xA805FEB0<br>ID: 07 | Hash: 0x4B94EA26<br>ID: 08 | Hash: 0x803ACD34<br>ID: 09 | Hash: 0x7C741226<br>ID: 10 | Hash: 0x31DB9EBD<br>ID: 11 | Hash: 0xDF386F18<br>ID: 12 | Hash: 0x669CED42<br>ID: 13 | Hash: 0x51F22743<br>ID: 14 | Hash: 0x2052B35C<br>ID: 15 | Hash: 0x071472DC<br>ID: 16 | Hash: 0xF9928BCC<br>ID: 17 | Hash: 0x7ADBDD48<br>ID: 18 | Hash: 0xA959BA1A<br>ID: 19 | Hash: 0xBBE89B60<br>ID: 20 | Hash: 0x87A08871<br>ID: 21 | Hash: 0xED1057CE<br>ID: 22 | Hash: 0x1584AD7A<br>ID: 23 | Hash: 0x8582CFCB<br>ID: 24 | Hash: 0x7E5E2FB0<br>ID: 25 | Hash: 0xAE4F72DB<br>ID: 26 | Hash: 0x5D16D1FA<br>ID: 27 | Hash: 0x06B2F4B8<br>ID: 28 | Hash: 0x5D4CDC96<br>ID: 29 | Hash: 0x8B5A48BA<br>ID: 30 | Hash: 0x98FBD539<br>ID: 31 | Hash: 0xD8CB0473<br>ID: 32 | Hash: 0x5CBB4874<br>ID: 33 | Hash: 0x2E9F93A9<br>ID: 34 | Hash: 0xD93BEA86<br>ID: 35 | Hash: 0x92109B7D<br>ID: 36 | Hash: 0xB7EC9E4D<br>ID: 37 | Hash: 0xCABDBB1D<br>ID: 38 | Hash: 0xB3FD4A52<br>ID: 39 | Hash: 0x370D94E5<br>ID: 40 | Hash: 0xA0F7938F<br>ID: 41 | Hash: 0xCBE1CE81<br>ID: 42 | Hash: 0xC27F1271<br>ID: 43 | Hash: 0x9E3258EB<br>ID: 44 | Hash: 0x551CDA5B<br>ID: 45 | Hash: 0xCB6D663C<br>ID: 46 | Hash: 0x7DACE87F<br>ID: 47 | Hash: 0xF9DE416F<br>ID: 48 | Hash: 0x882E6E9E<br>ID: 49 | Hash: 0x16B447E7<br>ID: 50 | Hash: 0xBD867739<br>ID: 51 | Hash: 0xA3A58604<br>ID: 52 | Hash: 0x7E046BBC<br>ID: 53 | Hash: 0xD95FDB98<br>ID: 54 | Hash: 0x5842C0ED<br>ID: 55 | Hash: 0x285FECC6<br>ID: 56 | Hash: 0x9351AC43<br>ID: 57 | Hash: 0x50032E75<br>ID: 58 | Hash: 0xAE6D0D59<br>ID: 59 | Hash: 0xD6351785<br>ID: 60 | Hash: 0xD25D71BC<br>ID: 61 | Hash: 0x1F7F6423<br>ID: 62 | Hash: 0xE24C3AA6<br>ID: 63 | Hash: 0xBFFDD2B7
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">audio.setAudioFlag(flagName, toggle);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.audio.setAudioFlag(flagName, toggle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''flagName:''' String
*'''flagName:''' String

Latest revision as of 21:04, 6 May 2017

Possible flag names:
(updated from b393d scripts - MoMadenU - 8/23/15)

'ActivateSwitchWheelAudio'
'AllowAmbientSpeechInSlowMo'
'AllowCutsceneOverScreenFade'
'AllowForceRadioAfterRetune'
'AllowPainAndAmbientSpeechToPlayDuringCutscene'
'AllowPlayerAIOnMission'
'AllowPoliceScannerWhenPlayerHasNoControl'
'AllowRadioDuringSwitch'
'AllowRadioOverScreenFade'
'AllowScoreAndRadio'
'AllowScriptedSpeechInSlowMo'
'AvoidMissionCompleteDelay'
'DisableAbortConversationForDeathAndInjury'
'DisableAbortConversationForRagdoll'
'DisableBarks'
'DisableFlightMusic'
'DisableReplayScriptStreamRecording'
'EnableHeadsetBeep'
'ForceConversationInterrupt'
'ForceSeamlessRadioSwitch'
'ForceSniperAudio'
'FrontendRadioDisabled'
'HoldMissionCompleteWhenPrepared'
'IsDirectorModeActive'
'IsPlayerOnMissionForSpeech'
'ListenerReverbDisabled'
'LoadMPData'
'MobileRadioInGame'
'OnlyAllowScriptTriggerPoliceScanner'
'PlayMenuMusic'
'PoliceScannerDisabled'
'ScriptedConvListenerMaySpeak'
'SpeechDucksScore'
'SuppressPlayerScubaBreathing'
'WantedMusicDisabled'
'WantedMusicOnMission'

-------------------------------
No added flag names between b393d and b573d, including b573d.

#######################################################################

'IsDirectorModeActive' is an audio flag which will allow you to play speech infinitely without any pauses like in Director Mode.

- jedijosh920

-----------------------------------------------------------------------

All flag IDs and hashes:

ID: 01 | Hash: 0x20A7858F
ID: 02 | Hash: 0xA11C2259
ID: 03 | Hash: 0x08DE4700
ID: 04 | Hash: 0x989F652F
ID: 05 | Hash: 0x3C9E76BA
ID: 06 | Hash: 0xA805FEB0
ID: 07 | Hash: 0x4B94EA26
ID: 08 | Hash: 0x803ACD34
ID: 09 | Hash: 0x7C741226
ID: 10 | Hash: 0x31DB9EBD
ID: 11 | Hash: 0xDF386F18
ID: 12 | Hash: 0x669CED42
ID: 13 | Hash: 0x51F22743
ID: 14 | Hash: 0x2052B35C
ID: 15 | Hash: 0x071472DC
ID: 16 | Hash: 0xF9928BCC
ID: 17 | Hash: 0x7ADBDD48
ID: 18 | Hash: 0xA959BA1A
ID: 19 | Hash: 0xBBE89B60
ID: 20 | Hash: 0x87A08871
ID: 21 | Hash: 0xED1057CE
ID: 22 | Hash: 0x1584AD7A
ID: 23 | Hash: 0x8582CFCB
ID: 24 | Hash: 0x7E5E2FB0
ID: 25 | Hash: 0xAE4F72DB
ID: 26 | Hash: 0x5D16D1FA
ID: 27 | Hash: 0x06B2F4B8
ID: 28 | Hash: 0x5D4CDC96
ID: 29 | Hash: 0x8B5A48BA
ID: 30 | Hash: 0x98FBD539
ID: 31 | Hash: 0xD8CB0473
ID: 32 | Hash: 0x5CBB4874
ID: 33 | Hash: 0x2E9F93A9
ID: 34 | Hash: 0xD93BEA86
ID: 35 | Hash: 0x92109B7D
ID: 36 | Hash: 0xB7EC9E4D
ID: 37 | Hash: 0xCABDBB1D
ID: 38 | Hash: 0xB3FD4A52
ID: 39 | Hash: 0x370D94E5
ID: 40 | Hash: 0xA0F7938F
ID: 41 | Hash: 0xCBE1CE81
ID: 42 | Hash: 0xC27F1271
ID: 43 | Hash: 0x9E3258EB
ID: 44 | Hash: 0x551CDA5B
ID: 45 | Hash: 0xCB6D663C
ID: 46 | Hash: 0x7DACE87F
ID: 47 | Hash: 0xF9DE416F
ID: 48 | Hash: 0x882E6E9E
ID: 49 | Hash: 0x16B447E7
ID: 50 | Hash: 0xBD867739
ID: 51 | Hash: 0xA3A58604
ID: 52 | Hash: 0x7E046BBC
ID: 53 | Hash: 0xD95FDB98
ID: 54 | Hash: 0x5842C0ED
ID: 55 | Hash: 0x285FECC6
ID: 56 | Hash: 0x9351AC43
ID: 57 | Hash: 0x50032E75
ID: 58 | Hash: 0xAE6D0D59
ID: 59 | Hash: 0xD6351785
ID: 60 | Hash: 0xD25D71BC
ID: 61 | Hash: 0x1F7F6423
ID: 62 | Hash: 0xE24C3AA6
ID: 63 | Hash: 0xBFFDD2B7

Syntax

mp.game.audio.setAudioFlag(flagName, toggle);

Required Arguments

  • flagName: String
  • toggle: Boolean

Return value

  • Undefined

Example

// todo

See also