Raised This Month: $32 Target: $400
 8% 

[TF2] Hidden dev attributes


Post New Thread Reply   
 
Thread Tools Display Modes
Author
rafradek
Junior Member
Join Date: Aug 2012
Plugin ID:
7264
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Enables the use of attributes hidden into the code that never got added into items_game.txt
    Old 08-19-2020 , 17:23   [TF2] Hidden dev attributes
    Reply With Quote #1

    Enables the use of attributes hidden into the code that never got added into items_game.txt. Full list of those attributes is located in configs/tf2nativeattribs/tf2hiddenattribs.txt. You can use the attribute names or indexes in other plugins and mvm popfiles. You can also add your own custom attributes into the directory and use the TF2Attributes plugin to manage them

    Convars:
    sm_hiddenattribs_reload - Reloads the attribute files located in configs/tf2nativeattibs directory
    sm_hiddenattribs_enabled 0/1 (default: 1) - enables the plugin. Only works on map change and only if it was never set to 1 before.

    Attribute List:
    Attribute descriptions and examples ->


    Changelog:
    Code:
    1.2
    The plugin now loads all attribute files in configs/tf2nativeattribs directory
    Added sm_hiddenattribs_reload command to reload attribute files
    
    1.1
    Updated windows signatures thanks to nosoop, might be working on windows servers now
    Updated attributes descriptions to make it more clear which attributes are not working
    The logic is only called once when plugin is loaded
    Added KeyValues::deleteThis
    
    1.0
    Initial release
    Installation:
    Extract all archive contents into addons/sourcemod

    Updated gamedata as of 18-07-22 by PC Gamer
    Attached Files
    File Type: sp Get Plugin or Get Source (tf2hiddenattribs.sp - 600 views - 3.9 KB)
    File Type: zip tf2hiddenattrs.zip (12.1 KB, 289 views)

    Last edited by rafradek; 09-06-2022 at 07:31.
    rafradek is offline
    nosoop
    Veteran Member
    Join Date: Aug 2014
    Old 08-19-2020 , 22:11   Re: [TF2] Hidden dev attributes
    Reply With Quote #2

    Nice work! Had one in development myself as an MM:S plugin; just never had an incentive to take it past prototyping.

    Very good find on ReadEncryptedKVFile to load a file into KeyValues*, though you should probably call KeyValues::DeleteThis() to avoid leaking memory.
    __________________
    I do TF2, TF2 servers, and TF2 plugins.
    I don't do DMs over Discord -- PM me on the forums regarding inquiries.
    AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
    nosoop is offline
    PC Gamer
    Veteran Member
    Join Date: Mar 2014
    Old 08-20-2020 , 01:07   Re: [TF2] Hidden dev attributes
    Reply With Quote #3

    Very interesting. I'm looking forward to a Windows version so I can try it.
    PC Gamer is offline
    nosoop
    Veteran Member
    Join Date: Aug 2014
    Old 08-20-2020 , 02:43   Re: [TF2] Hidden dev attributes
    Reply With Quote #4

    Quote:
    Originally Posted by PC Gamer View Post
    Very interesting. I'm looking forward to a Windows version so I can try it.
    Here you go; added the lookup that was missing for g_pFullFileSystem on Windows. There is a missing bool return for BInitAttributes which may or may not cause a crash. Will leave that to the plugin author.

    There is an interesting bug I tracked down where the KeyValues file needed to be in the source folder on symlinked setups on Windows, but I don't think most people are running those.

    [file removed -- use the download in the original post]
    __________________
    I do TF2, TF2 servers, and TF2 plugins.
    I don't do DMs over Discord -- PM me on the forums regarding inquiries.
    AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

    Last edited by nosoop; 08-20-2020 at 22:29. Reason: Remove download to avoid confusion
    nosoop is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 08-20-2020 , 06:21   Re: [TF2] Hidden dev attributes
    Reply With Quote #5

    Awesome. Thanks for this.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    rafradek
    Junior Member
    Join Date: Aug 2012
    Old 08-20-2020 , 12:48   Re: [TF2] Hidden dev attributes
    Reply With Quote #6

    1.1

    Updated windows signatures thanks to nosoop, might be working on windows servers now
    Updated attributes descriptions to make it more clear which attributes are not working
    The logic is only called once when plugin is loaded
    Added KeyValues::deleteThis call to free kv memory
    rafradek is offline
    PC Gamer
    Veteran Member
    Join Date: Mar 2014
    Old 08-20-2020 , 15:15   Re: [TF2] Hidden dev attributes
    Reply With Quote #7

    Thanks for the update. I can confirm that it works on Windows. As rafradek mentioned some attributes work, others don't.

    A couple early observations:
    Attribute 4335 "swimming mastery" works, but only if you change "attribute_class" to "swimming_mastery" in the config file.

    Attribute 4354 "mult teleporter recharge rate" increases charge time. You can use also use inverted percentage to reduce charge time.

    I haven't tested all Attributes but it appears that Attributes 4324, 4325, 4326, 4332, 4344, 4358, 4352, 4365, 4376, 4377, 4378 aren't working on Windows. Do they work on Linux?

    A lot of these attributes DO work as advertised so great work rafradek!
    PC Gamer is offline
    The Great Weegee
    Member
    Join Date: Dec 2017
    Location: vsh_egyptyspot_b4
    Old 08-20-2020 , 16:10   Re: [TF2] Hidden dev attributes
    Reply With Quote #8

    How can I add my own attributes and will it read custom attribute plugins from CW3?
    __________________
    The Great Weegee is offline
    rafradek
    Junior Member
    Join Date: Aug 2012
    Old 08-20-2020 , 16:27   Re: [TF2] Hidden dev attributes
    Reply With Quote #9

    Quote:
    Originally Posted by PC Gamer View Post
    Thanks for the update. I can confirm that it works on Windows. As rafradek mentioned some attributes work, others don't.

    A couple early observations:
    Attribute 4335 "swimming mastery" works, but only if you change "attribute_class" to "swimming_mastery" in the config file.

    Attribute 4354 "mult teleporter recharge rate" increases charge time. You can use also use inverted percentage to reduce charge time.

    I haven't tested all Attributes but it appears that Attributes 4324, 4325, 4326, 4332, 4344, 4358, 4352, 4365, 4376, 4377, 4378 aren't working on Windows. Do they work on Linux?

    A lot of these attributes DO work as advertised so great work rafradek!
    I updated the file to fix swimming mastery and parachute disabled. Generally if there is no mention in attributes then it should work on linux. Oh also look up attribute list above to be sure what value would work

    Last edited by rafradek; 08-20-2020 at 16:30.
    rafradek is offline
    rafradek
    Junior Member
    Join Date: Aug 2012
    Old 08-20-2020 , 16:36   Re: [TF2] Hidden dev attributes
    Reply With Quote #10

    Quote:
    Originally Posted by The Great Weegee View Post
    How can I add my own attributes and will it read custom attribute plugins from CW3?
    Any plugin should recognize the attributes added by this plugin. Custom attributes can be defined in configs/tf2hiddenattribs.txt, but that will do nothing unless you develop a plugin using them.
    rafradek is offline
    Reply


    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 07:56.


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