Forums » Suggestions
move turbo on/off messages
Please make the turbo on and off messages print to the secondary hud message area below the chat box.
Persistance is not needed and they interfere with chat.
Persistance is not needed and they interfere with chat.
--HUD_messages = {version = '1.0'}
--## Choco ##--
local intercept_list = {
['Flight-Assist mode disabled.']='FA off',
['Flight-Assist mode enabled.']='FA on',
['MouseLook Off']='MouseLook off',
['MouseLook On']='MouseLook on',
['Auto-Aim disabled.']='A/A off',
['Auto-Aim enabled.']='A/A on',
['You are too far away to mine this object.']='You are too far away to mine this object',
['Turbo On.']='Turbo on',
['Turbo Off.']='Turbo off'
}
local chatreceiver_old = chatreceiver.OnEvent
function chatreceiver:OnEvent(event, data)
if event == "CHAT_MSG_PRINT" then
for k,v in pairs(intercept_list) do
if data.msg == k then HUD:PrintSecondaryMsg(v) return end
end
chatreceiver_old(chatreceiver, event, data)
else chatreceiver_old(chatreceiver, event, data) end
end
I added the
['Turbo On.']='Turbo on',
['Turbo Off.']='Turbo off'
Pretty simple.
--## Choco ##--
local intercept_list = {
['Flight-Assist mode disabled.']='FA off',
['Flight-Assist mode enabled.']='FA on',
['MouseLook Off']='MouseLook off',
['MouseLook On']='MouseLook on',
['Auto-Aim disabled.']='A/A off',
['Auto-Aim enabled.']='A/A on',
['You are too far away to mine this object.']='You are too far away to mine this object',
['Turbo On.']='Turbo on',
['Turbo Off.']='Turbo off'
}
local chatreceiver_old = chatreceiver.OnEvent
function chatreceiver:OnEvent(event, data)
if event == "CHAT_MSG_PRINT" then
for k,v in pairs(intercept_list) do
if data.msg == k then HUD:PrintSecondaryMsg(v) return end
end
chatreceiver_old(chatreceiver, event, data)
else chatreceiver_old(chatreceiver, event, data) end
end
I added the
['Turbo On.']='Turbo on',
['Turbo Off.']='Turbo off'
Pretty simple.
Yes Im familiar with the plug in that reroutes stuff. I use a version of it in my plugins.
Not everyone uses plugins and getting annoyances out of the way generally makes for a better impression then being told to use a plug to fix the issue. And its rather low hanging fruit that shouldnt be left dragging on the ground....
Not everyone uses plugins and getting annoyances out of the way generally makes for a better impression then being told to use a plug to fix the issue. And its rather low hanging fruit that shouldnt be left dragging on the ground....