From 6929accc69cd200f6bdf149eea31894256ba7e98 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:18:21 +0800 Subject: [PATCH] [saco] Implement `ProcessLineOfSight(...)` --- saco/game/util.cpp | 11 +++++++++++ saco/game/util.h | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/saco/game/util.cpp b/saco/game/util.cpp index 8e9a94c..ff9f68f 100644 --- a/saco/game/util.cpp +++ b/saco/game/util.cpp @@ -1019,6 +1019,17 @@ DWORD dwHudColors[NUM_RADAR_COLORS] = { DWORD dwUseHudColors[NUM_RADAR_COLORS]; +//----------------------------------------------------------- + +void ProcessLineOfSight(VECTOR *vecOrigin, VECTOR *vecLine, VECTOR *colPoint, + DWORD *pHitEntity, int bCheckBuildings, int bCheckVehicles, int bCheckPeds, + int bCheckObjects, int bCheckDummies, int bSeeThroughStuff, + int bIgnoreSomeObjectsForCamera, int bUnk1) +{ + _asm mov eax, 0x56BA00 + _asm jmp eax +} + //----------------------------------------------------------- // Return the PED_TYPE * of the local player actor. diff --git a/saco/game/util.h b/saco/game/util.h index d5c9a70..69b3b3c 100644 --- a/saco/game/util.h +++ b/saco/game/util.h @@ -1,6 +1,11 @@ #pragma once +void ProcessLineOfSight(VECTOR *vecOrigin, VECTOR *vecLine, VECTOR *colPoint, + DWORD *pHitEntity, int bCheckBuildings, int bCheckVehicles, int bCheckPeds, + int bCheckObjects, int bCheckDummies, int bSeeThroughStuff, + int bIgnoreSomeObjectsForCamera, int bUnk1); + void __stdcall SetRadarColor(int nIndex,DWORD dwColor); PED_TYPE * __stdcall GamePool_FindPlayerPed();