Related Plugins:
About:
- Prints entity input data to chat (client) or console (server).
- Can specify which entities to listen for or filter out.
- Example command: sm_input_watch "logic_script,logic_entity,logic_relay"
Supported Games:
- CSS
- CSGO
- DODS
- L4D1
- L4D2
- TF2
- Request support if required.
Thanks:
- Dr!fter - DHooks "AcceptInput" example this is based on.
- Dragokas - For the request and code additions.
Admin Commands: (requires "z" flag)
PHP Code:
sm_input_listen // Starts listening to all inputs. Filters or listens for classnames from the filter and listen cvars.
sm_input_stop // Stop printing entity inputs.
sm_input_watch // Start printing entity inputs. Usage: sm_input_watch <classnames to watch, separate by commas>
ConVars:
Saved to
sm_input_hooks.cfg in your servers
\cfg\sourcemod\ folder.
PHP Code:
// Do not hook and show output data from these classnames, separate by commas (no spaces). Only works for sm_output_listen command.
sm_input_hooks_filter ""
// Only hook and display output data from these classnames, separate by commas (no spaces). Only works for sm_output_listen command.
sm_input_hooks_listen ""
// 0=Off. 1=Logs all input data to logs/input_hooks.log file.
sm_input_hooks_logging "0"
// Output Hooks - DevTools plugin version.
sm_input_hooks_version
Changes:
Code:
1.9 (15-Jun-2022)
- Changed some white spacing sizes when printing.
- Removed quotes when printing various information, for a cleaner look.
1.8 (29-Apr-2022)
- Added support for various types. Thanks to "Ilusion9" for coding.
1.7 (10-Apr-2022)
- Added support for the "Pirates, Vikings and Knights II" game. GameData updated. Thanks to "Marttt" for the offsets.
- Fixed crash when retrieving Color255 values. Thanks to "Ilusion9" for reporting and "domino_" for helping fix.
1.6 (20-May-2021)
- Fixed using a static list for reading values instead of strings. Thanks to "bottiger" for fixing.
1.5 (03-Mar-2021)
- Fixed crashing on "SetTotalItems" input. Thanks to "Marttt" for reporting.
1.4a (30-Sep-2020)
- Compatibility update for L4D2's "The Last Stand" update.
- L4D2: GameData .txt file updated.
1.4 (10-May-2020)
- Added better error log message when gamedata file is missing.
- Various changes to tidy up code.
1.3 (16-Mar-2020)
- Fixed server crashing when reading "InValue" commands.
- Fixed not logging when server is empty.
- Fixed logging code in the wrong place.
1.2 (05-Dec-2019)
- Added cvar "sm_input_hooks_logging" to enable or disable logging.
- Added entity name to info. - Thanks to "Dragokas" for coding.
- Added ability to log info in file "logs/input_hooks.log". - Thanks to "Dragokas" for coding.
1.1 (15-Nov-2019)
- Fixed multiple classnames not working for the watch command and cvars.
1.0 (14-Oct-2019)
- Initial release.
Requirements:
Installation:DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires DHooks!
- Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
- Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.
Updating from 1.1 or older:- New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.