From aa9ed46783cb95a12ac33fc231225650bf6c99e0 Mon Sep 17 00:00:00 2001 From: Laura Date: Sun, 22 Sep 2024 15:54:22 +0200 Subject: [PATCH 1/2] correct names and parameter names for air defence natives --- WEAPON/CreateAirDefenceAngledArea.md | 25 ++++++++++++++++++ ...nseSphere.md => CreateAirDefenceSphere.md} | 14 +++++----- WEAPON/CreateAirDefenseArea.md | 26 ------------------- 3 files changed, 32 insertions(+), 33 deletions(-) create mode 100644 WEAPON/CreateAirDefenceAngledArea.md rename WEAPON/{CreateAirDefenseSphere.md => CreateAirDefenceSphere.md} (63%) delete mode 100644 WEAPON/CreateAirDefenseArea.md diff --git a/WEAPON/CreateAirDefenceAngledArea.md b/WEAPON/CreateAirDefenceAngledArea.md new file mode 100644 index 000000000..6be353788 --- /dev/null +++ b/WEAPON/CreateAirDefenceAngledArea.md @@ -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 +* **srcCoord1X**: +* **srcCoord1Y**: +* **srcCoord1Z**: +* **srcCoord2X**: +* **srcCoord2Y**: +* **srcCoord2Z**: +* **fWidth**: +* **weaponPositionX**: +* **weaponPositionY**: +* **weaponPositionZ**: +* **weaponHash**: + +## Return value diff --git a/WEAPON/CreateAirDefenseSphere.md b/WEAPON/CreateAirDefenceSphere.md similarity index 63% rename from WEAPON/CreateAirDefenseSphere.md rename to WEAPON/CreateAirDefenceSphere.md index bf7398c6d..8db25b025 100644 --- a/WEAPON/CreateAirDefenseSphere.md +++ b/WEAPON/CreateAirDefenceSphere.md @@ -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. @@ -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 +* **weaponPositionY**: Y coordinate +* **weaponPositionZ**: Z coordinate * **weaponHash**: weapon_air_defence_gun and 0 are used in the decompiled scripts. ## Return value diff --git a/WEAPON/CreateAirDefenseArea.md b/WEAPON/CreateAirDefenseArea.md deleted file mode 100644 index 5f0a65467..000000000 --- a/WEAPON/CreateAirDefenseArea.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -ns: WEAPON -aliases: ["0x9DA58CDBF6BDBC08"] ---- -## _CREATE_AIR_DEFENSE_AREA - -```c -// 0x9DA58CDBF6BDBC08 -int _CREATE_AIR_DEFENSE_AREA(float p0, float p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, cs_type(Any) Hash weaponHash); -``` - - -## Parameters -* **p0**: -* **p1**: -* **p2**: -* **p3**: -* **p4**: -* **p5**: -* **p6**: -* **p7**: -* **p8**: -* **p9**: -* **weaponHash**: - -## Return value From 85c29004b1949b40e828b37ee597f52977c3137e Mon Sep 17 00:00:00 2001 From: Laura Date: Fri, 11 Oct 2024 23:39:44 +0200 Subject: [PATCH 2/2] remove undescriptive docs --- WEAPON/CreateAirDefenceSphere.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/WEAPON/CreateAirDefenceSphere.md b/WEAPON/CreateAirDefenceSphere.md index 8db25b025..4a361c683 100644 --- a/WEAPON/CreateAirDefenceSphere.md +++ b/WEAPON/CreateAirDefenceSphere.md @@ -14,13 +14,13 @@ 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. -* **weaponPositionX**: X coordinate -* **weaponPositionY**: Y coordinate -* **weaponPositionZ**: Z coordinate +* **weaponPositionX**: +* **weaponPositionY**: +* **weaponPositionZ**: * **weaponHash**: weapon_air_defence_gun and 0 are used in the decompiled scripts. ## Return value