From 375d7a935459577ef0b3064802ae1dfacf227834 Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 26 Dec 2019 22:05:28 +0000 Subject: [PATCH] Removed old debug code --- cl_radar.lua | 52 +--------------------------------------------------- 1 file changed, 1 insertion(+), 51 deletions(-) diff --git a/cl_radar.lua b/cl_radar.lua index 60fd041..fcb7f9f 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -1599,54 +1599,4 @@ Citizen.CreateThread( function() Citizen.Wait( 0 ) end -end ) - - ------------------------------- DEBUG ------------------------------ -Citizen.CreateThread( function() - while ( true ) do - if ( PLY:VehicleStateValid() ) then - local pitch = GetEntityPitch( PLY.veh ) - - UTIL:DrawDebugText( 0.5, 0.75, 0.8, true, "Pitch: " .. tostring( pitch ) ) - end - - Citizen.Wait( 0 ) - end -end ) - ---[[ Citizen.CreateThread( function() - while ( true ) do - if ( RADAR.config.debug_mode ) then - for k, v in pairs( RADAR.rayTraces ) do - for i = -1, 1, 2 do - local startP = GetOffsetFromEntityInWorldCoords( PLY.veh, v.startVec.x, 0.0, 0.0 ) - local endP = GetOffsetFromEntityInWorldCoords( PLY.veh, v.endVec.x, v.endVec.y * i, 0.0 ) - - UTIL:DrawDebugLine( startP, endP ) - end - end - - local av = RADAR:GetActiveVehicles() - - for ant in UTIL:Values( { "front", "rear" } ) do - for i = 1, 2, 1 do - if ( av[ant] ~= nil and av[ant][i] ~= nil ) then - local pos = GetEntityCoords( av[ant][i].veh ) - local r = RADAR:GetDynamicRadius( av[ant][i].veh ) - - if ( i == 1 ) then - UTIL:DrawDebugSphere( pos.x, pos.y, pos.z, r, { 255, 127, 0, 100 } ) - else - UTIL:DrawDebugSphere( pos.x, pos.y, pos.z, r, { 255, 0, 0, 100 } ) - end - end - end - end - - Citizen.Wait( 0 ) - else - Citizen.Wait( 500 ) - end - end -end ) ]] \ No newline at end of file +end ) \ No newline at end of file