From e065071fe0c877720e276d89975364bd97c915f4 Mon Sep 17 00:00:00 2001 From: "Xenos.exe" <55803068+XenoS-ITA@users.noreply.github.com> Date: Mon, 5 Sep 2022 16:17:44 +0200 Subject: [PATCH 1/7] Update AddPatrolRouteNode.md --- TASK/AddPatrolRouteNode.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/TASK/AddPatrolRouteNode.md b/TASK/AddPatrolRouteNode.md index fe014ced1..234920d84 100644 --- a/TASK/AddPatrolRouteNode.md +++ b/TASK/AddPatrolRouteNode.md @@ -5,30 +5,30 @@ ns: TASK ```c // 0x8EDF950167586B7C 0x21B48F10 -void ADD_PATROL_ROUTE_NODE(int p0, char* p1, float x1, float y1, float z1, float x2, float y2, float z2, int p8); +void ADD_PATROL_ROUTE_NODE(int id, char* guardScenario, float x1, float y1, float z1, float x2, float y2, float z2, int waitTime); ``` ``` -Example: -TASK::ADD_PATROL_ROUTE_NODE(2, "WORLD_HUMAN_GUARD_STAND", -193.4915, -2378.864990234375, 10.9719, -193.4915, -2378.864990234375, 10.9719, 3000); -p0 is between 0 and 4 in the scripts. -p1 is "WORLD_HUMAN_GUARD_STAND" or "StandGuard". -p2, p3 and p4 is only one parameter sometimes in the scripts. Most likely a Vector3 hence p2, p3 and p4 are coordinates. -Examples: -TASK::ADD_PATROL_ROUTE_NODE(1, "WORLD_HUMAN_GUARD_STAND", l_739[7/*3*/], 0.0, 0.0, 0.0, 0); -TASK::ADD_PATROL_ROUTE_NODE(1, "WORLD_HUMAN_GUARD_STAND", l_B0[17/*44*/]._f3, l_B0[17/*44*/]._f3, 2000); -p5, p6 and p7 are for example set to: 1599.0406494140625, 2713.392578125, 44.4309. -p8 is an int, often random set to for example: MISC::GET_RANDOM_INT_IN_RANGE(5000, 10000). +id is an integer that "identifies" the route node for linking to the route with ADD_PATROL_ROUTE_LINK. +guardScenarion can be "WORLD_HUMAN_GUARD_STAND" or "StandGuard". + +x2,y2 and z2 seem to be coordinates for the direction in which the ped final looks ``` ## Parameters -* **p0**: -* **p1**: +* **id**: +* **guardScenario**: * **x1**: * **y1**: * **z1**: * **x2**: * **y2**: * **z2**: -* **p8**: +* **waitTime**: + +## Examples +```lua +-- the guard will go toward vector3(1.0, 1.0, 1.0) coordinates looking toward vector3(0.0, 0.0, 0.0) coordinates waiting 1000ms with the WORLD_HUMAN_GUARD_STAND animation +AddPatrolRouteNode(1, "WORLD_HUMAN_GUARD_STAND", vector3(1.0, 1.0, 1.0), vector3(0.0, 0.0, 0.0), 1000) +``` From e5b4b6b2a6fa1c3aebc97cab34c99004db53969a Mon Sep 17 00:00:00 2001 From: "Xenos.exe" <55803068+XenoS-ITA@users.noreply.github.com> Date: Mon, 5 Sep 2022 16:27:22 +0200 Subject: [PATCH 2/7] Update AddPatrolRouteNode.md --- TASK/AddPatrolRouteNode.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/TASK/AddPatrolRouteNode.md b/TASK/AddPatrolRouteNode.md index 234920d84..25091f1d0 100644 --- a/TASK/AddPatrolRouteNode.md +++ b/TASK/AddPatrolRouteNode.md @@ -9,21 +9,18 @@ void ADD_PATROL_ROUTE_NODE(int id, char* guardScenario, float x1, float y1, floa ``` ``` -id is an integer that "identifies" the route node for linking to the route with ADD_PATROL_ROUTE_LINK. -guardScenarion can be "WORLD_HUMAN_GUARD_STAND" or "StandGuard". - x2,y2 and z2 seem to be coordinates for the direction in which the ped final looks ``` ## Parameters -* **id**: -* **guardScenario**: -* **x1**: -* **y1**: -* **z1**: -* **x2**: -* **y2**: -* **z2**: +* **id**: is an integer that "identifies" the route node for linking to the route with ADD_PATROL_ROUTE_LINK. +* **guardScenario**: can be "WORLD_HUMAN_GUARD_STAND" or "StandGuard" +* **x1**: destination +* **y1**: destination +* **z1**: destination +* **x2**: final look +* **y2**: final look +* **z2**: final look * **waitTime**: ## Examples From 6c60d977ee91c9d45b37f1713691e8aca1064c93 Mon Sep 17 00:00:00 2001 From: "Xenos.exe" <55803068+XenoS-ITA@users.noreply.github.com> Date: Mon, 5 Sep 2022 16:27:52 +0200 Subject: [PATCH 3/7] Update AddPatrolRouteLink.md --- TASK/AddPatrolRouteLink.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/TASK/AddPatrolRouteLink.md b/TASK/AddPatrolRouteLink.md index aa86a6093..9370c3aae 100644 --- a/TASK/AddPatrolRouteLink.md +++ b/TASK/AddPatrolRouteLink.md @@ -5,11 +5,28 @@ ns: TASK ```c // 0x23083260DEC3A551 0xD8761BB3 -void ADD_PATROL_ROUTE_LINK(Any p0, Any p1); +void ADD_PATROL_ROUTE_LINK(int id1, int id2); ``` +``` +connects 2 route nodes to make it clear how the ped should move +``` ## Parameters -* **p0**: -* **p1**: +* **id1**: +* **id2**: + +## Examples +![image](https://user-images.githubusercontent.com/55803068/188470866-c32c6a9f-a25d-4772-9b18-5be46e2c14a1.png) +``` lua +-- these lines connect 1,2,3,4,5,6 in a cyclic manner (1 > 2 > 3 > 4 > 5 > 6 > 1) + + +AddPatrolRouteLink(1,2) +AddPatrolRouteLink(2,3) +AddPatrolRouteLink(3,4) +AddPatrolRouteLink(4,5) +AddPatrolRouteLink(5,6) +AddPatrolRouteLink(6,1) +``` From 436fbc28b9d4d3e926fa5b5fe9fa475e7cd6ca06 Mon Sep 17 00:00:00 2001 From: "Xenos.exe" <55803068+XenoS-ITA@users.noreply.github.com> Date: Mon, 5 Sep 2022 16:32:14 +0200 Subject: [PATCH 4/7] Update AddPatrolRouteLink.md --- TASK/AddPatrolRouteLink.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/TASK/AddPatrolRouteLink.md b/TASK/AddPatrolRouteLink.md index 9370c3aae..119feacb1 100644 --- a/TASK/AddPatrolRouteLink.md +++ b/TASK/AddPatrolRouteLink.md @@ -8,9 +8,7 @@ ns: TASK void ADD_PATROL_ROUTE_LINK(int id1, int id2); ``` -``` connects 2 route nodes to make it clear how the ped should move -``` ## Parameters * **id1**: From e57140431495667b76673904123efd319f075248 Mon Sep 17 00:00:00 2001 From: "Xenos.exe" <55803068+XenoS-ITA@users.noreply.github.com> Date: Mon, 5 Sep 2022 16:34:35 +0200 Subject: [PATCH 5/7] Update AddPatrolRouteNode.md --- TASK/AddPatrolRouteNode.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/TASK/AddPatrolRouteNode.md b/TASK/AddPatrolRouteNode.md index 25091f1d0..ec33772a9 100644 --- a/TASK/AddPatrolRouteNode.md +++ b/TASK/AddPatrolRouteNode.md @@ -8,9 +8,7 @@ ns: TASK void ADD_PATROL_ROUTE_NODE(int id, char* guardScenario, float x1, float y1, float z1, float x2, float y2, float z2, int waitTime); ``` -``` -x2,y2 and z2 seem to be coordinates for the direction in which the ped final looks -``` +x2,y2 and z2 are the coordinates to which the ped should look at ## Parameters * **id**: is an integer that "identifies" the route node for linking to the route with ADD_PATROL_ROUTE_LINK. @@ -18,9 +16,9 @@ x2,y2 and z2 seem to be coordinates for the direction in which the ped final loo * **x1**: destination * **y1**: destination * **z1**: destination -* **x2**: final look -* **y2**: final look -* **z2**: final look +* **x2**: coordinates to which the ped should look +* **y2**: coordinates to which the ped should look +* **z2**: coordinates to which the ped should look * **waitTime**: ## Examples From 58f02029f9d91cf0236f6697d3b8921b83ddec76 Mon Sep 17 00:00:00 2001 From: "Xenos.exe" <55803068+XenoS-ITA@users.noreply.github.com> Date: Mon, 19 Sep 2022 07:45:08 +0200 Subject: [PATCH 6/7] Update waitTime with ms --- TASK/AddPatrolRouteNode.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TASK/AddPatrolRouteNode.md b/TASK/AddPatrolRouteNode.md index ec33772a9..c8fe6f8e8 100644 --- a/TASK/AddPatrolRouteNode.md +++ b/TASK/AddPatrolRouteNode.md @@ -19,7 +19,7 @@ x2,y2 and z2 are the coordinates to which the ped should look at * **x2**: coordinates to which the ped should look * **y2**: coordinates to which the ped should look * **z2**: coordinates to which the ped should look -* **waitTime**: +* **waitTime**: written in ms ## Examples From 5de6e37fcdc84f9bf939f64672faec042e84fd59 Mon Sep 17 00:00:00 2001 From: "Xenos.exe" <55803068+XenoS-ITA@users.noreply.github.com> Date: Sat, 14 Oct 2023 21:32:15 +0200 Subject: [PATCH 7/7] Update AddPatrolRouteLink.md --- TASK/AddPatrolRouteLink.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/TASK/AddPatrolRouteLink.md b/TASK/AddPatrolRouteLink.md index 119feacb1..d4aa44f1c 100644 --- a/TASK/AddPatrolRouteLink.md +++ b/TASK/AddPatrolRouteLink.md @@ -8,16 +8,17 @@ ns: TASK void ADD_PATROL_ROUTE_LINK(int id1, int id2); ``` -connects 2 route nodes to make it clear how the ped should move +connects/links 2 [route nodes](#_0x8EDF950167586B7C) +image representing the cyclic example below: +![image](https://user-images.githubusercontent.com/55803068/188470866-c32c6a9f-a25d-4772-9b18-5be46e2c14a1.png) ## Parameters -* **id1**: -* **id2**: +* **id1**: the id representing the first route node +* **id2**: the id representing the second route node ## Examples -![image](https://user-images.githubusercontent.com/55803068/188470866-c32c6a9f-a25d-4772-9b18-5be46e2c14a1.png) -``` lua +```lua -- these lines connect 1,2,3,4,5,6 in a cyclic manner (1 > 2 > 3 > 4 > 5 > 6 > 1)