mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
Update cl_radar.lua
This commit is contained in:
29
cl_radar.lua
29
cl_radar.lua
@@ -713,7 +713,6 @@ function RADAR:Main()
|
||||
end
|
||||
|
||||
-- Work out what has to be sent
|
||||
-- need to find a way to automate this in a loop
|
||||
local av = self:GetActiveVehicles()
|
||||
data.antennas = { ["front"] = nil, ["rear"] = nil }
|
||||
|
||||
@@ -732,34 +731,6 @@ function RADAR:Main()
|
||||
end
|
||||
end
|
||||
|
||||
--[[if ( self:IsAntennaTransmitting( "front" ) ) then
|
||||
if ( av["front"][1] ~= nil ) then
|
||||
test["front"].speed = UTIL:FormatSpeed( self:GetVehSpeedFormatted( av["front"][1].speed ) )
|
||||
else
|
||||
test["front"].speed = "¦¦¦"
|
||||
end
|
||||
|
||||
if ( av["front"][2] ~= nil ) then
|
||||
test["front"].fast = UTIL:FormatSpeed( self:GetVehSpeedFormatted( av["front"][2].speed ) )
|
||||
else
|
||||
test["front"].fast = "¦¦¦"
|
||||
end
|
||||
end
|
||||
|
||||
if ( self:IsAntennaTransmitting( "rear" ) ) then
|
||||
if ( av["rear"][1] ~= nil ) then
|
||||
test["rear"].speed = UTIL:FormatSpeed( self:GetVehSpeedFormatted( av["rear"][1].speed ) )
|
||||
else
|
||||
test["rear"].speed = "¦¦¦"
|
||||
end
|
||||
|
||||
if ( av["rear"][2] ~= nil ) then
|
||||
test["rear"].fast = UTIL:FormatSpeed( self:GetVehSpeedFormatted( av["rear"][2].speed ) )
|
||||
else
|
||||
test["rear"].fast = "¦¦¦"
|
||||
end
|
||||
end]]
|
||||
|
||||
-- Send the update to the NUI side
|
||||
SendNUIMessage( { _type = "update", speed = data.patrolSpeed, antennas = data.antennas } )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user