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

correct names and parameter names for air defence natives #1205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
25 changes: 25 additions & 0 deletions WEAPON/CreateAirDefenceAngledArea.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
ns: WEAPON
aliases: ["0x9DA58CDBF6BDBC08", "_CREATE_AIR_DEFENSE_AREA"]
---
## CREATE_AIR_DEFENCE_ANGLED_AREA

```c
// 0x9DA58CDBF6BDBC08 0x7F1E89F4
int CREATE_AIR_DEFENCE_ANGLED_AREA(float srcCoord1X, float srcCoord1Y, float srcCoord1Z, float srcCoord2X, float srcCoord2Y, float srcCoord2Z, float fWidth, float weaponPositionX, float weaponPositionY, float weaponPositionZ, cs_type(Any) Hash weaponHash);
```

## Parameters
coalaura marked this conversation as resolved.
Show resolved Hide resolved
* **srcCoord1X**:
* **srcCoord1Y**:
* **srcCoord1Z**:
* **srcCoord2X**:
* **srcCoord2Y**:
* **srcCoord2Z**:
* **fWidth**:
* **weaponPositionX**:
* **weaponPositionY**:
* **weaponPositionZ**:
* **weaponHash**:

## Return value
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
ns: WEAPON
aliases: ["0x91EF34584710BE99"]
aliases: ["0x91EF34584710BE99", "_CREATE_AIR_DEFENSE_SPHERE"]
---
## _CREATE_AIR_DEFENSE_SPHERE
## CREATE_AIR_DEFENCE_SPHERE

```c
// 0x91EF34584710BE99
int _CREATE_AIR_DEFENSE_SPHERE(float x, float y, float z, cs_type(int) float radius, float p4, float p5, float p6, Hash weaponHash);
// 0x91EF34584710BE99 0x767C2435
int CREATE_AIR_DEFENCE_SPHERE(float x, float y, float z, cs_type(int) float radius, float weaponPositionX, float weaponPositionY, float weaponPositionZ, Hash weaponHash);
```

Both coordinates are from objects in the decompiled scripts.
Expand All @@ -18,9 +18,9 @@ Native related to [_0xECDC202B25E5CF48](#_0xECDC202B25E5CF48) p1 value. The only
* **y**: Y coordinate
* **z**: Z coordinate
* **radius**: Unknown float 150.0 is used in freemode script.
* **p4**: X coordinate
* **p5**: Y coordinate
* **p6**: Z coordinate
* **weaponPositionX**: X coordinate
coalaura marked this conversation as resolved.
Show resolved Hide resolved
* **weaponPositionY**: Y coordinate
* **weaponPositionZ**: Z coordinate
* **weaponHash**: weapon_air_defence_gun and 0 are used in the decompiled scripts.

## Return value
Expand Down
26 changes: 0 additions & 26 deletions WEAPON/CreateAirDefenseArea.md

This file was deleted.

Loading