Skip to content

Commit

Permalink
feat(audio): batch 13 of native updates (#1009)
Browse files Browse the repository at this point in the history
* feat(audio): batch 13 of native updates

* Update RequestTennisBank.md

Newline between description and parameters.

* Update RequestTennisBank.md

Remove double newline at EOF.

---------

Co-authored-by: ammonia-cfx <[email protected]>
  • Loading branch information
AvarianKnight and 4mmonium authored Mar 12, 2024
1 parent 9e9c2ed commit f8d1ce9
Show file tree
Hide file tree
Showing 13 changed files with 76 additions and 83 deletions.
15 changes: 0 additions & 15 deletions AUDIO/N_0x70b8ec8fc108a634.md

This file was deleted.

14 changes: 0 additions & 14 deletions AUDIO/N_0xd2dccd8e16e20997.md

This file was deleted.

8 changes: 5 additions & 3 deletions AUDIO/RemoveEntityFromAudioMixGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ aliases: ["0x18EB48CFC41F2EA0"]

```c
// 0x18EB48CFC41F2EA0 0x308ED0EC
void REMOVE_ENTITY_FROM_AUDIO_MIX_GROUP(Entity entity, float p1);
void REMOVE_ENTITY_FROM_AUDIO_MIX_GROUP(Entity entity, float fadeOut);
```
Removes an entity from its current mix group.
## Parameters
* **entity**:
* **p1**:
* **entity**:
* **fadeOut**: Defaults to 0.0
7 changes: 4 additions & 3 deletions AUDIO/RemovePortalSettingsOverride.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ aliases: ["0xB4BBFD9CD8B3922B"]

```c
// 0xB4BBFD9CD8B3922B 0xD24B4D0C
void REMOVE_PORTAL_SETTINGS_OVERRIDE(char* p0);
void REMOVE_PORTAL_SETTINGS_OVERRIDE(char* portalSettingsName);
```
```
Expand All @@ -18,6 +18,7 @@ void REMOVE_PORTAL_SETTINGS_OVERRIDE(char* p0);
AUDIO::_B4BBFD9CD8B3922B("V_MICHAEL_PS_BATHROOM_WITH_WINDOW");
```
## Parameters
* **p0**:
For events like cars driving through windows, allows script to unocclude that window
## Parameters
* **portalSettingsName**:
15 changes: 6 additions & 9 deletions AUDIO/RequestAmbientAudioBank.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@ ns: AUDIO

```c
// 0xFE02FFBED8CA9D99 0x23C88BC7
BOOL REQUEST_AMBIENT_AUDIO_BANK(char* p0, BOOL p1);
BOOL REQUEST_AMBIENT_AUDIO_BANK(char* bankName, BOOL bOverNetwork);
```
```
All occurrences and usages found in b617d, sorted alphabetically and identical lines removed: pastebin.com/XZ1tmGEz
```
This native is marked as deprecated internally, please use [REQUEST_SCRIPT_AUDIO_BANK](#_0x2F844A8B08D76685)
```
NativeDB Added Parameter 3: Any p2
```
This native has a new argument on newer game builds:
* **playerBits**:
## Parameters
* **p0**:
* **p1**:
* **bankName**:
* **bOverNetwork**:
## Return value
15 changes: 6 additions & 9 deletions AUDIO/RequestMissionAudioBank.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@ ns: AUDIO

```c
// 0x7345BDD95E62E0F2 0x916E37CA
BOOL REQUEST_MISSION_AUDIO_BANK(char* p0, BOOL p1);
BOOL REQUEST_MISSION_AUDIO_BANK(char* bankName, BOOL bOverNetwork);
```
```
All occurrences and usages found in b617d: pastebin.com/NzZZ2Tmm
```
This native is marked as deprecated internally, please use [REQUEST_SCRIPT_AUDIO_BANK](#_0x2F844A8B08D76685)
```
NativeDB Added Parameter 3: Any p2
```
This native has a new argument on newer game builds:
* **playerBits**:
## Parameters
* **p0**:
* **p1**:
* **bankName**:
* **bOverNetwork**:
## Return value
16 changes: 6 additions & 10 deletions AUDIO/RequestScriptAudioBank.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@ ns: AUDIO

```c
// 0x2F844A8B08D76685 0x21322887
BOOL REQUEST_SCRIPT_AUDIO_BANK(char* p0, BOOL p1);
BOOL REQUEST_SCRIPT_AUDIO_BANK(char* bankName, BOOL bOverNetwork);
```
```
All occurrences and usages found in b617d, sorted alphabetically and identical lines removed: pastebin.com/AkmDAVn6
```
```
NativeDB Added Parameter 3: int p2
```
This native has a new argument on newer game builds:
* **playerBits**:
## Parameters
* **p0**:
* **p1**:
* **bankName**:
* **bOverNetwork**:
## Return value
Requests and returns true/false if the script audio bank has laoded
15 changes: 15 additions & 0 deletions AUDIO/RequestTennisBank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
ns: AUDIO
aliases: ["0x4ADA3F19BE4A6047", "_SET_PED_TALK"]
---
## REQUEST_TENNIS_BANKS

```c
// 0x4ADA3F19BE4A6047 0x13777A0B
void REQUEST_TENNIS_BANKS(Ped opponentPed);
```
Loads the tennis vocalization banks into a couple animal slots.
## Parameters
* **opponentPed**:
2 changes: 1 addition & 1 deletion AUDIO/ResetTrevorRage.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ ns: AUDIO
void RESET_TREVOR_RAGE();
```


Clears the override set by [OVERRIDE_TREVOR_RAGE](#_0x13AD665062541A7E)
15 changes: 15 additions & 0 deletions AUDIO/ResetVehicleStartupRevSound.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
ns: AUDIO
aliases: ["0xD2DCCD8E16E20997"]
---
## RESET_VEHICLE_STARTUP_REV_SOUND

```c
// 0xD2DCCD8E16E20997
void RESET_VEHICLE_STARTUP_REV_SOUND(Vehicle vehicle);
```
Resets the override for [SET_VEHICLE_STARTUP_REV_SOUND](#_0xF1F8157B8C3F171C)
## Parameters
* **vehicle**:
2 changes: 1 addition & 1 deletion AUDIO/RestartScriptedConversation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ ns: AUDIO
void RESTART_SCRIPTED_CONVERSATION();
```


Restarts a conversation that was previously paused with [PAUSE_SCRIPTED_CONVERSATION](#_0x8530AD776CD72B12)
17 changes: 17 additions & 0 deletions AUDIO/ScriptOverridesWindElevation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
ns: AUDIO
aliases: ["0x70B8EC8FC108A634"]
---
## SCRIPT_OVERRIDES_WIND_ELEVATION

```c
// 0x70B8EC8FC108A634 0x95050CAD
void SCRIPT_OVERRIDES_WIND_ELEVATION(BOOL override, cs_type(Any) Hash windElevationHashName);
```
Overrides wind elevation sounds
## Parameters
* **override**:
* **windElevationHashName**:
18 changes: 0 additions & 18 deletions AUDIO/SetPedTalk.md

This file was deleted.

0 comments on commit f8d1ce9

Please sign in to comment.