From 9d6308f216f4f401f7d8072475d966db2cb035b5 Mon Sep 17 00:00:00 2001 From: Casper <71441748+JajarGaming@users.noreply.github.com> Date: Fri, 9 Aug 2024 22:42:57 +0300 Subject: [PATCH] fix: Flag for `StartShapeTestLosProbe` (#899) * Update StartShapeTestLosProbe.md * feat: fixes * Final change? * Update StartShapeTestLosProbe.md * Update StartShapeTestLosProbe.md * Update StartShapeTestLosProbe.md * Apply ammoniums suggestion * fix paramater being misnamed --------- Co-authored-by: Dillon Skaggs Co-authored-by: Dillon Skaggs --- SHAPETEST/StartShapeTestLosProbe.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/SHAPETEST/StartShapeTestLosProbe.md b/SHAPETEST/StartShapeTestLosProbe.md index d3ed7cde8..95d8edb3c 100644 --- a/SHAPETEST/StartShapeTestLosProbe.md +++ b/SHAPETEST/StartShapeTestLosProbe.md @@ -6,7 +6,7 @@ aliases: ["0x7EE9F5D83DD4F90E"] ```c // 0x7EE9F5D83DD4F90E 0xEFAF4BA6 -int START_SHAPE_TEST_LOS_PROBE(float x1, float y1, float z1, float x2, float y2, float z2, int flags, Entity entity, int p8); +int START_SHAPE_TEST_LOS_PROBE(float x1, float y1, float z1, float x2, float y2, float z2, int flags, Entity entity, int options); ``` Asynchronously starts a line-of-sight (raycast) world probe shape test. @@ -17,13 +17,14 @@ enum TraceFlags None = 0, IntersectWorld = 1, IntersectVehicles = 2, - IntersectPedsSimpleCollision = 4, - IntersectPeds = 8, + IntersectPeds = 4, + IntersectRagdolls = 8, IntersectObjects = 16, IntersectWater = 32, - Unknown = 128, + IntersectGlass = 64, + IntersectRiver = 128, IntersectFoliage = 256, - IntersectEverything = 4294967295 + IntersectEverything = -1 } ``` NOTE: Raycasts that intersect with mission_entites (flag = 2) has limited range and will not register for far away entites. The range seems to be about 30 metres. @@ -40,7 +41,7 @@ Use the handle with [GET_SHAPE_TEST_RESULT](#_0x3D87450E15D98694) or [GET_SHAPE_ * **z2**: Ending Z coordinate. * **flags**: Flags. * **entity**: An entity to ignore, or 0. -* **p8**: A bit mask with bits 1, 2, 4, or 7 relating to collider types. 4 and 7 are usually used. +* **options**: A bit mask with bits 1, 2, 4, or 7 relating to collider types. 4 and 7 are usually used. ## Return value -A shape test handle. \ No newline at end of file +A shape test handle.