-
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 3 of native updates (#999)
- Loading branch information
1 parent
3c81bf4
commit be05fc8
Showing
15 changed files
with
87 additions
and
102 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
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: ["0x1C073274E065C6D2"] | ||
--- | ||
## ENABLE_VEHICLE_FANBELT_DAMAGE | ||
|
||
```c | ||
// 0x1C073274E065C6D2 0x9365E042 | ||
void ENABLE_VEHICLE_FANBELT_DAMAGE(Vehicle vehicle, BOOL enableFanbeltDamage); | ||
``` | ||
## Parameters | ||
* **vehicle**: | ||
* **enableFanbeltDamage**: Enables fanbelt damage |
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,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**: |
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,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 |
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,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**: | ||
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
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. |
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,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. |
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.