-
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(natives/gamebuild): enhance natives compatibility with 2189 build (
#959) * feat(natives/gamebuild): enhance natives compatibility with 2189 build * Update ForceSubmarineNeurtalBuoyancy.md Any to int derived types isn't needed. * Update IsAnyPositionalSpeechPlaying.md Correct native linking. * Update IsAnyPositionalSpeechPlaying.md Re-add missing `## Return value` header. --------- Co-authored-by: ammonia-cfx <[email protected]>
- Loading branch information
Showing
7 changed files
with
67 additions
and
50 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,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. |
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
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. |
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,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. |
This file was deleted.
Oops, something went wrong.