mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 08:26:27 +02:00
Updated config with new keys, changed control manager to use config
This commit is contained in:
21
cl_radar.lua
21
cl_radar.lua
@@ -1083,27 +1083,18 @@ function RADAR:RunControlManager()
|
||||
self.config.debug_mode = not self.config.debug_mode
|
||||
end
|
||||
|
||||
if ( IsDisabledControlJustPressed( 1, 166 ) ) then
|
||||
-- Opens the remote control
|
||||
if ( IsDisabledControlJustPressed( 1, self.config.remote_control_key ) ) then
|
||||
self:OpenRemote()
|
||||
end
|
||||
|
||||
--[[ if ( IsDisabledControlJustPressed( 1, 117 ) ) then
|
||||
self:TogglePower()
|
||||
UTIL:Notify( "Radar power toggled." )
|
||||
end ]]
|
||||
|
||||
--[[ if ( IsDisabledControlJustPressed( 1, 118 ) ) then
|
||||
self:ToggleFastDisplay()
|
||||
UTIL:Notify( "Fast display toggled." )
|
||||
end ]]
|
||||
|
||||
-- 'Num8' key, locks speed from front antenna
|
||||
if ( IsDisabledControlJustPressed( 1, 111 ) ) then
|
||||
-- Locks speed from front antenna
|
||||
if ( IsDisabledControlJustPressed( 1, self.config.front_lock_key ) ) then
|
||||
self:LockAntennaSpeed( "front" )
|
||||
end
|
||||
|
||||
-- 'Num5' key, locks speed from rear antenna
|
||||
if ( IsDisabledControlJustPressed( 1, 112 ) ) then
|
||||
-- Locks speed from rear antenna
|
||||
if ( IsDisabledControlJustPressed( 1, self.config.rear_lock_key ) ) then
|
||||
self:LockAntennaSpeed( "rear" )
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user