-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(audio): batch 5 of native updates (#1001)
* feat(audio): batch 5 of native updates * Update GetVariationChosenForScriptedLine.md Nitpicking on some grammar and syntax. * Update GetVehicleHornSoundIndex.md Re-add nativedb introduced version. * Update HintAmbientAudioBank.md Case change on `bool` type --------- Co-authored-by: ammonia-cfx <[email protected]>
- Loading branch information
1 parent
623ad46
commit 92e0259
Showing
15 changed files
with
103 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
ns: AUDIO | ||
aliases: ["0xAA19F5572C38B564"] | ||
--- | ||
## GET_VARIATION_CHOSEN_FOR_SCRIPTED_LINE | ||
|
||
```c | ||
// 0xAA19F5572C38B564 0xB58B8FF3 | ||
int GET_VARIATION_CHOSEN_FOR_SCRIPTED_LINE(cs_type(AnyPtr) char* textLabel); | ||
``` | ||
## Parameters | ||
* **textLabel**: all the text labels for filenames in `AmericanDialogueFiles.txt` appear to end with the letter 'A', it is the script's responsibility to add this 'A' before calling `GET_VARIATION_CHOSEN_FOR_SCRIPTED_LINE`. | ||
## Return value | ||
Returns the variation chosen for a given script speech line, or `0` if it hasn't been chosen yet. | ||
Returns `-1` if there is no conversation active or if the active conversation doesn't contain this line or if the text label can't be found in the currently loaded text blocks | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
ns: AUDIO | ||
aliases: ["0xD53F3A29BCE2580E","0x22FECB546C276A30", "_GET_VEHICLE_DEFAULT_HORN_VARIATION"] | ||
--- | ||
## GET_VEHICLE_HORN_SOUND_INDEX | ||
|
||
```c | ||
// 0xD53F3A29BCE2580E | ||
int GET_VEHICLE_HORN_SOUND_INDEX(Vehicle vehicle); | ||
``` | ||
``` | ||
NativeDB Introduced: v1365 | ||
``` | ||
## Parameters | ||
* **vehicle**: | ||
## Return value | ||
The current horn sound index being used by the given vehicle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
ns: AUDIO | ||
aliases: ["0x544810ED9DB6BBE6", "_HAS_MULTIPLAYER_AUDIO_DATA_LOADED"] | ||
--- | ||
## HAS_LOADED_MP_DATA_SET | ||
|
||
```c | ||
// 0x544810ED9DB6BBE6 | ||
BOOL HAS_LOADED_MP_DATA_SET(); | ||
``` | ||
|
||
## Return value | ||
Returns true if the audio for the Multiplayer data set has loaded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
ns: AUDIO | ||
aliases: ["0x5B50ABB1FE3746F4", "_HAS_MULTIPLAYER_AUDIO_DATA_UNLOADED"] | ||
--- | ||
## HAS_LOADED_SP_DATA_SET | ||
|
||
```c | ||
// 0x5B50ABB1FE3746F4 | ||
BOOL HAS_LOADED_SP_DATA_SET(); | ||
``` | ||
|
||
|
||
## Return value | ||
Returns true if the audio for the Single Player data set has loaded |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
ns: AUDIO | ||
aliases: ["0x40763EA7B9B783E7"] | ||
--- | ||
## HINT_MISSION_AUDIO_BANK | ||
|
||
```c | ||
// 0x40763EA7B9B783E7 | ||
cs_type(Any) BOOL HINT_MISSION_AUDIO_BANK(char* bankName, cs_type(int) BOOL bOverNetwork, int playerBits); | ||
``` | ||
This is marked as a deprecated function internally, please use [HINT_SCRIPT_AUDIO_BANK](#_0xFB380A29641EC31A) instead. | ||
## Parameters | ||
* **bankName**: | ||
* **bOverNetwork**: | ||
* **playerBits**: | ||
## Return value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.