How do I prevent the text being printed in the chat? I looked at the LUA files but I don't see a distinct section that I should adjust or what to remove.
Great mod, any tips on how to add a daemonhost message? sometimes this bastard hides somewhere and deaf players need to be informed without wasting time writing in the chat xD
If anyone is annoyed by the fact that this mod will continue to have callout/ping hotkeys active while the chat window is open, you can edit the mod to prevent this. Apparently this was going to be added as a feature, but this mod hasn't been updated in over a year now..
Anyway, within the ForTheEmperor folder, there is a file "ForTheEmperor.lua" - this should be located in: Warhammer 40,000 DARKTIDE\mods\ForTheEmperor\scripts\mods\ForTheEmperor
You can open this with any text editor. Within this file is the following function:
local comms_allowed = function() local game_mode = Managers.state.game_mode and Managers.state.game_mode:game_mode_name()
if not (game_mode and Managers.player) and (game_mode == "coop_complete_objective" or game_mode == "shooting_range" or game_mode == "prologue") then return false end
local player_unit = Managers.player:local_player_safe(1).player_unit
return player_unit and ScriptUnit.has_extension(player_unit, "health_system"):is_alive() end You will want to add: or (Managers.ui:using_input())to the if statement in this function, which will prevent the mod from reading hotkey inputs while the UI Manager (e.g. the chat window) is actively reading player inputs. So, the function should look like this after editing:
local comms_allowed = function() local game_mode = Managers.state.game_mode and Managers.state.game_mode:game_mode_name()
if not (game_mode and Managers.player) and (game_mode == "coop_complete_objective" or game_mode == "shooting_range" or game_mode == "prologue") or (Managers.ui:using_input()) then return false end
local player_unit = Managers.player:local_player_safe(1).player_unit
return player_unit and ScriptUnit.has_extension(player_unit, "health_system"):is_alive() end Save the file, and reload the mod (either via DMF or restarting your game). You will now be able to use the chat window and other UI elements without accidentally triggering voicelines or pings. The mod will otherwise work as normal.
This is it, it worked, thank you! I was hoping to replace TagKeys with this mod since it has more functions, but went back after the author told me that it was supposed to be like that. Now I've replaced TagKeys with this mod. <3
has this ever been added? i installed the mod for the first time recently and didnt see the option, but constantly rearanged the wheel. it was completely unusable.
Replace Line 176 with if hovered_entry and Mouse.button(3) == 1 then -- right-click held (1) , mb5 held (3) I don't hit mouse5 by accident mid-fight, so I just swapped the drag-function to that (instead of RMB).
if hovered_entry and 1 == 0 then -- disable right click drag Personally went for this, just start the game without modifying and sort your wheel the way you want it, then change the line to this. Since 1 will never be equal to 0, since well, 1 is 1, not 0... then this will just clog the condition to never be filled, no more accidental dragging.
I'm sure you figured it out by now, but in case you haven't: the mod adds the function to drag the buttons around in the wheel using 'right click'. Simply right click and drag them into the order you like.
156 comments
That's a pity, I liked being able to shout NO
I looked at the LUA files but I don't see a distinct section that I should adjust or what to remove.
Apparently this was going to be added as a feature, but this mod hasn't been updated in over a year now..
Anyway, within the ForTheEmperor folder, there is a file "ForTheEmperor.lua" - this should be located in:
Warhammer 40,000 DARKTIDE\mods\ForTheEmperor\scripts\mods\ForTheEmperor
You can open this with any text editor. Within this file is the following function:
local comms_allowed = function()
local game_mode = Managers.state.game_mode and Managers.state.game_mode:game_mode_name()
if
not (game_mode and Managers.player)
and (game_mode == "coop_complete_objective" or game_mode == "shooting_range" or game_mode == "prologue")
then
return false
end
local player_unit = Managers.player:local_player_safe(1).player_unit
return player_unit and ScriptUnit.has_extension(player_unit, "health_system"):is_alive()
end
You will want to add:
or (Managers.ui:using_input())
to the if statement in this function, which will prevent the mod from reading hotkey inputs while the UI Manager (e.g. the chat window) is actively reading player inputs.So, the function should look like this after editing:
local comms_allowed = function()
local game_mode = Managers.state.game_mode and Managers.state.game_mode:game_mode_name()
if
not (game_mode and Managers.player)
and (game_mode == "coop_complete_objective" or game_mode == "shooting_range" or game_mode == "prologue")
or (Managers.ui:using_input())
then
return false
end
local player_unit = Managers.player:local_player_safe(1).player_unit
return player_unit and ScriptUnit.has_extension(player_unit, "health_system"):is_alive()
end
Save the file, and reload the mod (either via DMF or restarting your game).
You will now be able to use the chat window and other UI elements without accidentally triggering voicelines or pings. The mod will otherwise work as normal.
I seem to accidentally drag options around when using the wheel during blocking/ADS alot lately :D
The new features are amazing btw! Tyvm for your work!
Replace Line 176 with
if hovered_entry and Mouse.button(3) == 1 then -- right-click held (1) , mb5 held (3)
I don't hit mouse5 by accident mid-fight, so I just swapped the drag-function to that (instead of RMB).
if hovered_entry and 1 == 0 then -- disable right click drag
Personally went for this, just start the game without modifying and sort your wheel the way you want it, then change the line to this.
Since 1 will never be equal to 0, since well, 1 is 1, not 0... then this will just clog the condition to never be filled, no more accidental dragging.
in what file?
edit:
nevermind, found it. file is just named "ForTheEmperor.lua" in first folder
I got a little issue.
I'm not even sure IF that's a bug:
The THX button was down at the centre.
Now for me its's centre doen to the left, " I need ammo" in it's place...
I prefered the former setup.