source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

[HL2MP] Fix game_ui interacting with other entities

Open speedvoltage opened this issue 9 months ago • 2 comments

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.

speedvoltage avatar Mar 14 '25 21:03 speedvoltage

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

ficool2 avatar Mar 14 '25 22:03 ficool2

To keep the original behavior, maybe you could use a keyfield that toggles this behavior?

Bitl avatar Mar 16 '25 19:03 Bitl