Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(natives/gamebuild): enhance natives compatibility with 2189 build #959

Merged
merged 5 commits into from
Apr 21, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions AUDIO/IsAnyPositionalSpeechPlaying.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
ns: AUDIO
aliases: ["0x30CA2EF91D15ADF8"]
---
## IS_ANY_POSITIONAL_SPEECH_PLAYING

```c
// 0x30CA2EF91D15ADF8
cs_type(Any) BOOL IS_ANY_POSITIONAL_SPEECH_PLAYING();
```

Determines if any ped-independent, positionally-based scripted speech is currently active. This typically includes speech events triggered using [`PLAY_AMBIENT_SPEECH_FROM_POSITION_NATIVE`](#_0xED640017ED337E45).

```
NativeDB Introduced: v2189
```

## Return value
Returns `true` if any positional speech is currently playing, `false` otherwise.
14 changes: 0 additions & 14 deletions AUDIO/N_0x30ca2ef91d15adf8.md

This file was deleted.

20 changes: 20 additions & 0 deletions VEHICLE/ForceSubmarineNeurtalBuoyancy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
ns: VEHICLE
aliases: ["0xC67DB108A9ADE3BE"]
---
## FORCE_SUBMARINE_NEURTAL_BUOYANCY

```c
// 0xC67DB108A9ADE3BE
void FORCE_SUBMARINE_NEURTAL_BUOYANCY(Vehicle submarine, int time);
```

Forces a submarine to maintain neutral buoyancy for a specified duration, preventing it from rising when unoccupied or without a driver.

```
NativeDB Introduced: v2189
```

## Parameters
* **submarine**: The submarine vehicle to apply neutral buoyancy to.
* **time**: The duration in milliseconds for which to maintain neutral buoyancy.
16 changes: 0 additions & 16 deletions VEHICLE/GetSubmarineCrushDepthWarningState.md

This file was deleted.

16 changes: 0 additions & 16 deletions VEHICLE/GetSubmarineIsBelowFirstCrushDepth.md

This file was deleted.

22 changes: 22 additions & 0 deletions VEHICLE/GetSubmarineIsUnderDesignDepth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
ns: VEHICLE
aliases: ["_GET_SUBMARINE_IS_BELOW_FIRST_CRUSH_DEPTH"]
---
## GET_SUBMARINE_IS_UNDER_DESIGN_DEPTH

```c
// 0x3E71D0B300B7AA79
BOOL GET_SUBMARINE_IS_UNDER_DESIGN_DEPTH(Vehicle submarine);
```

Determines if the submarine is operating below its designated crush depth.

```
NativeDB Introduced: v2189
```

## Parameters
* **submarine**: The submarine vehicle to be evaluated for being under its crush depth threshold.

## Return value
Returns `true` if the submarine is below its designated crush depth, `false` otherwise.
22 changes: 22 additions & 0 deletions VEHICLE/GetSubmarineNumberOfAirLeaks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
ns: VEHICLE
aliases: ["_GET_SUBMARINE_CRUSH_DEPTH_WARNING_STATE"]
---
## GET_SUBMARINE_NUMBER_OF_AIR_LEAKS

```c
// 0x093D6DDCA5B8FBAE
int GET_SUBMARINE_NUMBER_OF_AIR_LEAKS(Vehicle submarine);
```

Checks if a Submarine has any air leaks, when there is more than 4 the player will drown.

```
NativeDB Introduced: v2189
```

## Parameters
* **submarine**: The submarine vehicle to check for air leaks.

## Return value
Returns the number of air leaks on the submarine.
17 changes: 0 additions & 17 deletions VEHICLE/N_0xc67db108a9ade3be.md

This file was deleted.