mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
Removed old stage code from RADAR:Main(), changed thread wait
This commit is contained in:
17
cl_radar.lua
17
cl_radar.lua
@@ -926,7 +926,7 @@ Citizen.CreateThread( function()
|
||||
while ( true ) do
|
||||
RADAR:RunDynamicThreadWaitCheck()
|
||||
|
||||
Citizen.Wait( 2500 )
|
||||
Citizen.Wait( 2000 )
|
||||
end
|
||||
end )
|
||||
|
||||
@@ -958,20 +958,6 @@ end )
|
||||
function RADAR:Main()
|
||||
-- Check to make sure the player is in the driver's seat, and also that the vehicle has a class of VC_EMERGENCY (18)
|
||||
if ( DoesEntityExist( PLY.veh ) and PLY.inDriverSeat and PLY.vehClassValid and self:CanPerformMainTask() ) then
|
||||
-- local plyVehPos = GetEntityCoords( PLY.veh )
|
||||
|
||||
-- First stage of the radar - get all of the vehicles hit by the radar
|
||||
--if ( self:GetRadarStage() == 0 ) then
|
||||
--[[if ( self:GetRayTraceState() == 0 ) then
|
||||
local vehs = self:GetVehiclePool()
|
||||
|
||||
self:ResetCapturedVehicles()
|
||||
self:ResetRayTraceState()
|
||||
self:CreateRayThreads( PLY.veh, vehs )
|
||||
elseif ( self:GetRayTraceState() == self:GetNumOfRays() ) then
|
||||
self:IncreaseRadarStage()]]
|
||||
--end
|
||||
--elseif ( self:GetRadarStage() == 1 ) then
|
||||
local data = {}
|
||||
|
||||
-- Get the player's vehicle speed
|
||||
@@ -1049,7 +1035,6 @@ function RADAR:Main()
|
||||
self:ResetTempVehicleIDs()
|
||||
self:ResetRadarStage()
|
||||
self:ResetRayTraceState()
|
||||
--end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user