Removed old debug code

This commit is contained in:
Dan
2019-12-26 22:05:28 +00:00
parent c6c659d186
commit 375d7a9354

View File

@@ -1600,53 +1600,3 @@ 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 ) ]]