Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[TF2] Replace hardcoded function keys on with console commands

Open allvei opened this issue 2 weeks ago • 3 comments

Currently, to ready-up in competitive and MvM, the game is hardcoded to use KEY_F4. This raises the following issues:

  • Modern small keyboard layouts without the function key row will need a workaround.
  • Lack of user customisation or conflicting keybinds when F4 is bound by the user.

This also applies generally with the voting system where KEY_F1-KEY_F5 are hardcoded.

Instead, TF2 should have console command for these actions, bounded to the same function keys by default, therefore allowing more customisation.

allvei avatar Dec 11 '25 16:12 allvei

player_ready_toggle is the command and can be bound to any other key

'vote option1' option2 etc... are the vote commands

Don't think they are hardcoded bc I've changed my f1 bind and needed to include it. "f1" = "vote option1; next_map_vote 0"

jh34ghu43gu avatar Dec 12 '25 17:12 jh34ghu43gu

player_ready_toggle is the command and can be bound to any other key

'vote option1' option2 etc... are the vote commands

Don't think they are hardcoded bc I've changed my f1 bind and needed to include it. "f1" = "vote option1; next_map_vote 0"

They have console commands, but the lack of it isnt the issue here. The issue is that the F4 key can not be unbound, neither can the voting keys.

allvei avatar Dec 12 '25 19:12 allvei

player_ready_toggle is the command and can be bound to any other key 'vote option1' option2 etc... are the vote commands Don't think they are hardcoded bc I've changed my f1 bind and needed to include it. "f1" = "vote option1; next_map_vote 0"

They have console commands, but the lack of it isnt the issue here. The issue is that the F4 key can not be unbound, neither can the voting keys.

This is true. I have bound my player_ready_toggle to F6, but F4 can still Ready Up in MVM. Even when binding F4 to another key (like loading Loadout Preset D, it will readies up, while going to the D loadout preset).

gabrielwoj avatar Dec 14 '25 14:12 gabrielwoj