wiremod/wire — pull request #591 by Mista-Tea (2014-03-31 01:14:58+00:00)
Title: Allow PlayerUse hook to dictate On/Off

#590 is related but concerns the Adv Input entity. This is for Dual Input.

There is currently no way to prevent players from messing with the owner's Dual Input without directly modifying this file.

Since the On/Off functions act like that of a Button, I chose PlayerUse as the hook. This will allow any custom or public prop protections to handle it instead. I believe Wiremod is using gamemode.Call for hooks included in the base gamemode, so I am using that instead of hook.Run.

There may be a better hook available for handling this, but I can't think of one at the moment. If this isn't merged, please at least look into adding a way to let external prop protections to handle this.