Raised This Month: $51 Target: $400
 12% 

[ANY] ent_text - More Commands (Listen Server Only) [v1.0.3 | 28-August-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7929
Plugin Version:
1.0.3
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Apply ent_text with range parameter and add a listener to auto track new entities
    Old 01-25-2022 , 20:10   [ANY] ent_text - More Commands (Listen Server Only) [v1.0.3 | 28-August-2022]
    Reply With Quote #1

    LISTEN SERVER ONLY

    IMPORTANT NOTE: SourceMod doesn't support Listen Servers.

    Description

    This plugin displays ent_text of entities in a range.

    Also allows tracking new entities created to auto apply ent_text.

    ent_text definition:

    Quote:
    Displays text debugging information about the given entity(ies) on top of the entity (See Overlay Text)
    Arguments: {entity_name} / {class_name} / no argument picks what player is looking at
    Preview



    Features
    • Automatically set the developer cvar to 1 when 0.
    • Allow using ent_text with a range parameter.
    • Allow tracking new entities created.

    Cvars

    A configuration file named "enttext.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    enttext_enable "1"

    // Default range for "sm_enttext" command.
    // -
    // Default: "300.0"
    // Minimum: "0.000000"
    enttext_range "300.0" 
    Admin Commands
    • sm_enttext => Applies ent_text command to entities in this range. Usage: sm_enttext [range]. (z flag required)
    • sm_enttextclear => Removes ent_text from entities set by the plugin. (z flag required)
    • sm_enttextlisten => Start tracking all new entities created and auto apply the ent_text command. (z flag required)
    • sm_enttextstart => Start tracking all new entities created and auto apply the ent_text command. (z flag required)
    • sm_enttextstop => Stop tracking all new entities created. (z flag required)
    • sm_print_cvars_enttext => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Known Supported Games
    • Left 4 Dead 1
    • Left 4 Dead 2
    • Pirates, Vikings, and Knights II
    • Alien Swarm

    Notes
    • This plugin only works on LISTEN SERVER. (localhost launched with "-insecure" parameter)
    • ent_text overlay is only visible when developer cvar isn't 0.

    Recommended Plugins

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "enttext.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (enttext.sp - 160 views - 16.5 KB)
    __________________

    Last edited by Marttt; 01-15-2023 at 12:20.
    Marttt is offline
    kazya3
    Member
    Join Date: Aug 2019
    Location: CN
    Old 02-03-2022 , 05:44   Re: [ANY] ent_text with range (Listen Server Only)
    Reply With Quote #2

    nice job!
    kazya3 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 02-03-2022 , 11:22   Re: [ANY] ent_text with range (Listen Server Only)
    Reply With Quote #3

    Interesting.
    Any idea, why that support only listen servers?
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 02-03-2022 , 11:30   Re: [ANY] ent_text with range (Listen Server Only)
    Reply With Quote #4

    I didn't try it on a dedicated server, but AFAIK some debug stuff only works in listen server (hard-coded in engine - search for UTIL_GetListenServerHost).

    Maybe is possible to fix it with some detouring stuff, but this needs more skills than I have, also seem that it would only draw to a single player.

    Similar behaviour happens with "sv_showdamage" cvar, it only shows up if you are running on a listen server.
    __________________

    Last edited by Marttt; 02-03-2022 at 11:36.
    Marttt 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 05:42.


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