mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 16:36:26 +02:00
Disabled controller, changed default volume
This commit is contained in:
13
cl_radar.lua
13
cl_radar.lua
@@ -113,10 +113,10 @@ RADAR.vars =
|
|||||||
["opp"] = 3,
|
["opp"] = 3,
|
||||||
|
|
||||||
-- The volume of the audible beep
|
-- The volume of the audible beep
|
||||||
["beep"] = 1.0,
|
["beep"] = 0.6,
|
||||||
|
|
||||||
-- The volume of the verbal lock confirmation
|
-- The volume of the verbal lock confirmation
|
||||||
["voice"] = 1.0,
|
["voice"] = 0.6,
|
||||||
|
|
||||||
-- The speed unit used in conversions
|
-- The speed unit used in conversions
|
||||||
["speedType"] = "mph"
|
["speedType"] = "mph"
|
||||||
@@ -130,8 +130,8 @@ RADAR.vars =
|
|||||||
{ displayText = { "¦¦¦", "FAS" }, optionsText = { "On¦", "Off" }, options = { true, false }, optionIndex = 1, settingText = "fastDisplay" },
|
{ displayText = { "¦¦¦", "FAS" }, optionsText = { "On¦", "Off" }, options = { true, false }, optionIndex = 1, settingText = "fastDisplay" },
|
||||||
{ displayText = { "¦SL", "SEn" }, optionsText = { "¦1¦", "¦2¦", "¦3¦", "¦4¦", "¦5¦" }, options = { 0.2, 0.4, 0.6, 0.8, 1.0 }, optionIndex = 3, settingText = "same" },
|
{ displayText = { "¦SL", "SEn" }, optionsText = { "¦1¦", "¦2¦", "¦3¦", "¦4¦", "¦5¦" }, options = { 0.2, 0.4, 0.6, 0.8, 1.0 }, optionIndex = 3, settingText = "same" },
|
||||||
{ displayText = { "¦OP", "SEn" }, optionsText = { "¦1¦", "¦2¦", "¦3¦", "¦4¦", "¦5¦" }, options = { 0.2, 0.4, 0.6, 0.8, 1.0 }, optionIndex = 3, settingText = "opp" },
|
{ displayText = { "¦OP", "SEn" }, optionsText = { "¦1¦", "¦2¦", "¦3¦", "¦4¦", "¦5¦" }, options = { 0.2, 0.4, 0.6, 0.8, 1.0 }, optionIndex = 3, settingText = "opp" },
|
||||||
{ displayText = { "bEE", "P¦¦" }, optionsText = { "Off", "¦1¦", "¦2¦", "¦3¦", "¦4¦", "¦5¦" }, options = { 0.0, 0.2, 0.4, 0.6, 0.8, 1.0 }, optionIndex = 6, settingText = "beep" },
|
{ displayText = { "bEE", "P¦¦" }, optionsText = { "Off", "¦1¦", "¦2¦", "¦3¦", "¦4¦", "¦5¦" }, options = { 0.0, 0.2, 0.4, 0.6, 0.8, 1.0 }, optionIndex = 4, settingText = "beep" },
|
||||||
{ displayText = { "VOI", "CE¦" }, optionsText = { "Off", "¦1¦", "¦2¦", "¦3¦", "¦4¦", "¦5¦" }, options = { 0.0, 0.2, 0.4, 0.6, 0.8, 1.0 }, optionIndex = 6, settingText = "voice" },
|
{ displayText = { "VOI", "CE¦" }, optionsText = { "Off", "¦1¦", "¦2¦", "¦3¦", "¦4¦", "¦5¦" }, options = { 0.0, 0.2, 0.4, 0.6, 0.8, 1.0 }, optionIndex = 4, settingText = "voice" },
|
||||||
{ displayText = { "Uni", "tS¦" }, optionsText = { "USA", "INT" }, options = { "mph", "kmh" }, optionIndex = 1, settingText = "speedType" }
|
{ displayText = { "Uni", "tS¦" }, optionsText = { "USA", "INT" }, options = { "mph", "kmh" }, optionIndex = 1, settingText = "speedType" }
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@ RADAR.vars =
|
|||||||
|
|
||||||
-- The maximum distance that the radar system's ray traces can go, changing this will change the max
|
-- The maximum distance that the radar system's ray traces can go, changing this will change the max
|
||||||
-- distance in-game, but I wouldn't really put it more than 500.0
|
-- distance in-game, but I wouldn't really put it more than 500.0
|
||||||
maxCheckDist = 400.0,
|
maxCheckDist = 350.0,
|
||||||
|
|
||||||
-- Cached dynamic vehicle sphere sizes, automatically populated when the system is running
|
-- Cached dynamic vehicle sphere sizes, automatically populated when the system is running
|
||||||
sphereSizes = {},
|
sphereSizes = {},
|
||||||
@@ -1602,6 +1602,8 @@ Citizen.CreateThread( function()
|
|||||||
end )
|
end )
|
||||||
|
|
||||||
function RunControlManager()
|
function RunControlManager()
|
||||||
|
-- Make sure only the keyboard works
|
||||||
|
if ( not IsInputDisabled( 0 ) ) then
|
||||||
if ( not RADAR:GetKeyLockState() ) then
|
if ( not RADAR:GetKeyLockState() ) then
|
||||||
-- Opens the remote control
|
-- Opens the remote control
|
||||||
if ( IsDisabledControlJustPressed( 1, CONFIG.remote_control_key ) ) then
|
if ( IsDisabledControlJustPressed( 1, CONFIG.remote_control_key ) ) then
|
||||||
@@ -1633,6 +1635,7 @@ function RunControlManager()
|
|||||||
if ( IsDisabledControlJustPressed( 1, CONFIG.key_lock_key ) ) then
|
if ( IsDisabledControlJustPressed( 1, CONFIG.key_lock_key ) ) then
|
||||||
RADAR:ToggleKeyLock()
|
RADAR:ToggleKeyLock()
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Shortcut to restart the resource
|
-- Shortcut to restart the resource
|
||||||
--[[ if ( IsDisabledControlJustPressed( 1, 167 ) ) then
|
--[[ if ( IsDisabledControlJustPressed( 1, 167 ) ) then
|
||||||
|
|||||||
Reference in New Issue
Block a user