AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Hidden dev attributes (https://forums.alliedmods.net/showthread.php?t=326853)

rafradek 08-19-2020 17:23

[TF2] Hidden dev attributes
 
2 Attachment(s)
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

nosoop 08-19-2020 22:11

Re: [TF2] Hidden dev attributes
 
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.

PC Gamer 08-20-2020 01:07

Re: [TF2] Hidden dev attributes
 
Very interesting. I'm looking forward to a Windows version so I can try it.

nosoop 08-20-2020 02:43

Re: [TF2] Hidden dev attributes
 
1 Attachment(s)
Quote:

Originally Posted by PC Gamer (Post 2714887)
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]

Scag 08-20-2020 06:21

Re: [TF2] Hidden dev attributes
 
Awesome. Thanks for this.

rafradek 08-20-2020 12:48

Re: [TF2] Hidden dev attributes
 
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

PC Gamer 08-20-2020 15:15

Re: [TF2] Hidden dev attributes
 
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!
:bacon!::bacon!:

The Great Weegee 08-20-2020 16:10

Re: [TF2] Hidden dev attributes
 
How can I add my own attributes and will it read custom attribute plugins from CW3?

rafradek 08-20-2020 16:27

Re: [TF2] Hidden dev attributes
 
Quote:

Originally Posted by PC Gamer (Post 2714939)
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!
:bacon!::bacon!:

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

rafradek 08-20-2020 16:36

Re: [TF2] Hidden dev attributes
 
Quote:

Originally Posted by The Great Weegee (Post 2714944)
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.


All times are GMT -4. The time now is 12:08.

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