Raised This Month: $ Target: $400
 0% 

[TF2] Sound and Entity Debugger (v1.0.0 2018-02-05)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
JoinedSenses
Senior Member
Join Date: Sep 2013
Plugin ID:
6014
Plugin Version:
1.0.0
Plugin Category:
Technical/Development
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Prints sound and entity information to chat
    Old 02-05-2018 , 23:18   [TF2] Sound and Entity Debugger (v1.0.0 2018-02-05)
    Reply With Quote #1

    [TF2] Sound and Entity Debugger

    v1.0.0



    Description:
    This plugin was created for the development, testing, and debugging of plugins particular to sounds, entities, and temp entities. On command toggle, messages will print to chat, displaying information about entities or sound when they are spawned, created, or transmitted. It can get rather messy.

    Only tested in TF2

    What this plugin does:
    When the command is toggled and when one of these hooks is triggered, it prints a message to chat about the entities with the class name within g_saEntList during whatever phase it is in.

    If there is another entity class you want to get information on, add it to g_saEntList and compile.

    Uses SDKHooks to hook entity creation, spawn, and transmit.
    ..//Prints class name of entity created/spawned/transmitted. Prints particle information.
    Hooks Normal and Ambient sounds.
    ..//Prints out the entity which created the sound and the name of the sound which played.
    Creates a Temp Ent Hook
    ..//Prints out the type of temp entity that is created.

    This plugin was initially created to test a player hide plugin which deals with sounds and transmission.

    Commands: (ADMFLAG_ROOT)
    sm_teinf - Toggles Temporary Entity Info
    sm_einf - Toggles Entity Info
    sm_trinf - Toggles Transmission Info Forewarning, this command can get messy quick. Use sparingly
    sm_pinf - Toggles Particle Info Forewarning, this command can get messy quick. Use sparingly
    sm_sinf - Toggles Sound Info
    sm_tedisable - Enable/Disable Temporary Entities //Used to help determine which items are temp ents

    Installation:
    Upload to your /addons/sourcemod/plugins directory, and reboot your server or type "sm plugins load debugger" into your console or rcon.

    To Do:
    • None at the moment, unless someone has an idea on cleaning up the chat output or other suggestions.

    Changelog:
    • v1.0.0 [2/6/18]
      • Initial release
    .
    Attached Files
    File Type: sp Get Plugin or Get Source (debugger.sp - 868 views - 7.8 KB)
    File Type: smx debugger.smx (8.1 KB, 314 views)

    Last edited by JoinedSenses; 02-09-2018 at 21:23.
    JoinedSenses is offline
    404UserNotFound
    BANNED
    Join Date: Dec 2011
    Old 02-06-2018 , 00:14   Re: [TF2] Sound and Entity Debugger (v1.0.0 2018-02-05)
    Reply With Quote #2

    Very nice. And very useful too.
    404UserNotFound is offline
    Reply



    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 16:36.


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