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

[TF2] [VScript] Flashlight Support/Enabling

Open KaelaSavia opened this issue 1 year ago • 1 comments

Hello,

Team Fortress 2 just like other source games supports flashlight although the feature itself requires each player to set client-side convar "mat_supportflashlight" to 1 as convar is set to 0 by default.

Being able to activate flashlight support with VScript would be pretty awesome for a lot of gamemodes and stuff. alt text

Servers already have support for setting temporarily client-side convars like host_timescale so I don't believe it would be too problematic to implement. Although I am unsure if flashlight will work 100% if convar is set post client connection

  • Thanks!

KaelaSavia avatar Jul 01 '24 13:07 KaelaSavia

Previously mentioned at https://github.com/ValveSoftware/Source-1-Games/issues/4481#issuecomment-1331287052.

kisak-valve avatar Jul 01 '24 13:07 kisak-valve

Mat_supportflashlight 1 caused an extremely nasty console-spamming error on itemtest for me with something in the rock displacement texture, I would recommend fixing that if it does get turned on.

Thespikedballofdoom avatar Jul 16 '24 01:07 Thespikedballofdoom