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 all 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
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide the following if possible:

  • Parameter descriptions
  • Return value description
  • Native description

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how they work which is why the documentation is missing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as #1204 (comment)

* **srcCoord1X**:
* **srcCoord1Y**:
* **srcCoord1Z**:
* **srcCoord2X**:
* **srcCoord2Y**:
* **srcCoord2Z**:
* **fWidth**:
* **weaponPositionX**:
* **weaponPositionY**:
* **weaponPositionZ**:
* **weaponHash**:

## Return value
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
---
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.

Native related to [_0xECDC202B25E5CF48](#_0xECDC202B25E5CF48) p1 value. The only weapon hash used in the decompiled scripts is weapon_air_defence_gun. These two natives are used by the yacht script, decompiled scripts suggest it and the weapon hash used (valkyrie's rockets) are also used by yachts.

## Parameters
* **x**: X coordinate
* **y**: Y coordinate
* **z**: Z coordinate
* **x**:
* **y**:
* **z**:
* **radius**: Unknown float 150.0 is used in freemode script.
* **p4**: X coordinate
* **p5**: Y coordinate
* **p6**: Z coordinate
* **weaponPositionX**:
* **weaponPositionY**:
* **weaponPositionZ**:
* **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