source-sdk-2013
source-sdk-2013 copied to clipboard
[HL2MP] Fix game_ui interacting with other entities
Issue:
When a player activates a game_ui, they are still able to interact with other interactive objects, such as buttons, doors, etc., which can be abused in some cases.
Fix:
Whenever a player activates a game_ui, +USE will exclusively deactivate the game_ui if the flag is set in Hammer.
This breaks compatibility with maps that expect players to +use an object while using game_ui, including when "use deactivates" flag is on. Certain CS:S minigame maps depend on such behavior
To keep the original behavior, maybe you could use a keyfield that toggles this behavior?