Skip to content

Commit

Permalink
Rename various Pathfind related natives: ClearGpsDisabledZoneAtIndex,…
Browse files Browse the repository at this point in the history
… GetNextGpsDisabledZoneIndex, SetGpsDisabledZoneAtIndex
  • Loading branch information
cerium-cfx committed May 5, 2019
1 parent 6a5afe1 commit 2dceefc
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 46 deletions.
16 changes: 16 additions & 0 deletions PATHFIND/ClearGpsDisabledZoneAtIndex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
ns: PATHFIND
aliases: ["0x2801D0012266DF07"]
---
## CLEAR_GPS_DISABLED_ZONE_AT_INDEX

```c
// 0x2801D0012266DF07
void CLEAR_GPS_DISABLED_ZONE_AT_INDEX(int index);
```
Clears a disabled GPS route area from a certain index previously set using SET_GPS_DISABLED_ZONE_AT_INDEX
## Parameters
* **index**: Index of disabled zone.
15 changes: 15 additions & 0 deletions PATHFIND/GetNextGpsDisabledZoneIndex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
ns: PED
aliases: ["0xD3A6A0EF48823A8C"]
---
## GET_NEXT_GPS_DISABLED_ZONE_INDEX

```c
// 0xD3A6A0EF48823A8C 0xBE92551F
int GET_NEXT_GPS_DISABLED_ZONE_INDEX(int index);
```
Gets the next zone that has been disabled using SET_GPS_DISABLED_ZONE_AT_INDEX.
## Return value
The disabled zone index
14 changes: 0 additions & 14 deletions PATHFIND/N_0x2801d0012266df07.md

This file was deleted.

20 changes: 0 additions & 20 deletions PATHFIND/N_0xd0bc1c6fb18ee154.md

This file was deleted.

12 changes: 0 additions & 12 deletions PATHFIND/N_0xd3a6a0ef48823a8c.md

This file was deleted.

30 changes: 30 additions & 0 deletions PATHFIND/SetGpsDisabledZoneAtIndex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
ns: PATHFIND
aliases: ["0xD0BC1C6FB18EE154"]
---
## SET_GPS_DISABLED_ZONE_AT_INDEX

```c
// 0xD0BC1C6FB18EE154 0x98BDB311
void SET_GPS_DISABLED_ZONE_AT_INDEX(float x1, float y1, float z1, float x2, float y2, float z2, int index);
```
Disables the GPS route displayed on the minimap while within a certain zone (area). When in a disabled zone and creating a waypoint, the GPS route is not shown on the minimap until you are outside of the zone. When disabled, the direct distance is shown on minimap opposed to distance to travel. Seems to only work before setting a waypoint.
You can clear the disabled zone with CLEAR_GPS_DISABLED_ZONE_AT_INDEX.
**Setting a waypoint at the same coordinate:**
Disabled Zone: [https://i.imgur.com/P9VUuxM.png](https://i.imgur.com/P9VUuxM.png)
Enabled Zone (normal): [https://i.imgur.com/BPi24aw.png](https://i.imgur.com/BPi24aw.png)
## Parameters
* **x1**: X coordinate of first vector.
* **y1**: Y coordinate of first vector.
* **z1**: Z coordinate of first vector.
* **x2**: X coordinate of second vector.
* **y2**: Y coordinate of second vector.
* **z2**: Z coordinate of second vector.
* **index**: Index of zone.

0 comments on commit 2dceefc

Please sign in to comment.