mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 08:26:27 +02:00
Removed old debug code
This commit is contained in:
50
cl_radar.lua
50
cl_radar.lua
@@ -1600,53 +1600,3 @@ Citizen.CreateThread( function()
|
|||||||
Citizen.Wait( 0 )
|
Citizen.Wait( 0 )
|
||||||
end
|
end
|
||||||
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 ) ]]
|
|
||||||
Reference in New Issue
Block a user