Skip to content

Commit

Permalink
feat(audio): batch 3 of native updates (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
AvarianKnight authored Feb 21, 2024
1 parent 3c81bf4 commit be05fc8
Show file tree
Hide file tree
Showing 15 changed files with 87 additions and 102 deletions.
2 changes: 1 addition & 1 deletion AUDIO/EnableVehicleExhaustPops.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ aliases: ["0x2BE4BC731D039D5A"]
void ENABLE_VEHICLE_EXHAUST_POPS(Vehicle vehicle, BOOL toggle);
```
Sets whether the vehicle passed has exhaust pops.
Enable or disable exhaust pops on the given vehicle.
## Parameters
* **vehicle**:
Expand Down
14 changes: 14 additions & 0 deletions AUDIO/EnableVehicleFanbeltDamage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
ns: AUDIO
aliases: ["0x1C073274E065C6D2"]
---
## ENABLE_VEHICLE_FANBELT_DAMAGE

```c
// 0x1C073274E065C6D2 0x9365E042
void ENABLE_VEHICLE_FANBELT_DAMAGE(Vehicle vehicle, BOOL enableFanbeltDamage);
```
## Parameters
* **vehicle**:
* **enableFanbeltDamage**: Enables fanbelt damage
4 changes: 2 additions & 2 deletions AUDIO/FindRadioStationIndex.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ns: AUDIO
int FIND_RADIO_STATION_INDEX(int stationNameHash);
```
## Parameters
* **stationNameHash**:
* **stationNameHash**: the station name hash to search for
## Return value
The station index for the specified hash, or 254 if the radio station did not exist.
17 changes: 17 additions & 0 deletions AUDIO/ForceMusicTracklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
ns: AUDIO
aliases: ["0x4E0AF9114608257C", "_FORCE_RADIO_TRACK_LIST_POSITION"]
---
## FORCE_MUSIC_TRACK_LIST

```c
// 0x4E0AF9114608257C
void FORCE_MUSIC_TRACK_LIST(char* radioStation, char* trackListName, int timeOffsetMilliseconds);
```
Forces the chosen station to paly the given music track list. All other music track lists will be locked.
## Parameters
* **radioStation**:
* **trackListName**:
* **timeOffsetMilliseconds**:
12 changes: 12 additions & 0 deletions AUDIO/ForcePedPanicWalla.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
ns: AUDIO
aliases: ["0x062D5EAD4DA2FA6A"]
---
## FORCE_PED_PANIC_WALLA

```c
// 0x062D5EAD4DA2FA6A 0xD87AF337
void FORCE_PED_PANIC_WALLA();
```

Forces the ambient peds into their panic walla state
19 changes: 0 additions & 19 deletions AUDIO/ForceRadioTrackListPosition.md

This file was deleted.

17 changes: 17 additions & 0 deletions AUDIO/ForceUseAudioGameObject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
ns: AUDIO
aliases: ["0x4F0C413926060B38","_SET_VEHICLE_AUDIO", "_FORCE_VEHICLE_ENGINE_AUDIO"]
---
## FORCE_USE_AUDIO_GAME_OBJECT

```c
// 0x4F0C413926060B38 0x33B0B007
void FORCE_USE_AUDIO_GAME_OBJECT(Vehicle vehicle, char* gameObjectName);
```
This native sets the audio to the specific vehicle hash's audioNameHash.
## Parameters
* **vehicle**:
* **gameObjectName**:
24 changes: 0 additions & 24 deletions AUDIO/ForceVehicleEngineAudio.md

This file was deleted.

2 changes: 2 additions & 0 deletions AUDIO/FreezeMicrophone.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ aliases: ["0xD57AAAE0E2214D11"]
void FREEZE_MICROPHONE();
```

Allows script to freeze the microphone for a single frame, mantaining its current transform/settings.
This native should be called every frame you want to keep the microphone frozen, when you stop calling it it will automatically unfreeze

9 changes: 5 additions & 4 deletions AUDIO/GetAmbientVoiceNameHash.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
ns: AUDIO
aliases: ["0x5E203DA2BA15D436"]
aliases: ["0x5E203DA2BA15D436", "_GET_AMBIENT_VOICE_NAME_HASH"]
---
## _GET_AMBIENT_VOICE_NAME_HASH
## GET_AMBIENT_VOICE_NAME_HASH

```c
// 0x5E203DA2BA15D436
cs_type(Any) Hash _GET_AMBIENT_VOICE_NAME_HASH(Ped ped);
cs_type(Any) Hash GET_AMBIENT_VOICE_NAME_HASH(Ped ped);
```
## Parameters
* **ped**:
* **ped**:
## Return value
The hash of the voice name in use by the ped.
19 changes: 0 additions & 19 deletions AUDIO/GetCurrentRadioTrackName.md

This file was deleted.

16 changes: 16 additions & 0 deletions AUDIO/GetCurrentTrackSoundName.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
ns: AUDIO
aliases: ["0x34D66BC058019CE0", "_GET_CURRENT_RADIO_TRACK_NAME"]
---
## GET_CURRENT_TRACK_SOUND_NAME

```c
// 0x34D66BC058019CE0
Hash GET_CURRENT_TRACK_SOUND_NAME(char* radioStationName);
```
## Parameters
* **radioStationName**:
## Return value
The current sound name as a hash for the currently playing track on the given station.
2 changes: 1 addition & 1 deletion AUDIO/GetIsPreloadedConversationReady.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ aliases: ["0xE73364DB90778FFA"]
BOOL GET_IS_PRELOADED_CONVERSATION_READY();
```


## Return value
Returns true if the preloaded conversation has finished preparing.
14 changes: 0 additions & 14 deletions AUDIO/N_0x062d5ead4da2fa6a.md

This file was deleted.

18 changes: 0 additions & 18 deletions AUDIO/N_0x1c073274e065c6d2.md

This file was deleted.

0 comments on commit be05fc8

Please sign in to comment.