Raised This Month: $ Target: $400
 0% 

[ANY] Input Hooks - DevTools (1.9) [15-Jun-2022]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6760
Plugin Version:
1.9
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    42 
    Plugin Description:
    Prints entity inputs, with classname filtering.
    Old 10-14-2019 , 13:50   [ANY] Input Hooks - DevTools (1.9) [15-Jun-2022]
    Reply With Quote #1



    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!
    1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
    2. 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.
    Attached Files
    File Type: sp Get Plugin or Get Source (input_hooks.sp - 281 views - 15.1 KB)
    File Type: smx input_hooks.smx (8.9 KB, 208 views)
    File Type: txt input_hooks.games.txt (611 Bytes, 237 views)
    __________________

    Last edited by Silvers; 06-15-2022 at 12:42.
    Silvers is offline
     


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:27.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode