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

[TF2] PlayerClassData - Edit Max Speed, Health and Ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author
reBane
Senior Member
Join Date: May 2020
Plugin ID:
8365
Plugin Version:
23w03b
Plugin Category:
Technical/Development
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    24 
    Plugin Description:
    Change Class Default Values for Max Speed, Max Health and Ammo Limits
    Old 01-11-2023 , 15:24   [TF2] PlayerClassData - Edit Max Speed, Health and Ammo
    Reply With Quote #1

    TF2 PlayerClassData

    Replace some TFPlayerClassData_t values using plugins.

    This includes the default values, per class, for:
    • max speed
    • max health
    • max armor (unused in TF2)
    • max ammo (per type; primary, secondary, metal, idk what 4-6 do)
    • builables (TFObjectType, 4 for none)

    Why is this interesting?

    The default approach is to manipulate value on the client after spawning using EntProps or attributes. This can mess with attributes on items, making certain manipulations rather inconvenient.

    If you want to rebalance the game, you can now do so using the base values, keeping maximum compatibility with any items or other plugins that apply attributes to the player without things breaking.

    If you want to set the maximum speed above 520 you will need another plugin that removes that specific hardcoded limit: TF2 Move Speed Unlocker or tf_maxspeed_patch

    Installing

    Drop plugin and gamedata file on your server. By default the plugin does nothing.

    Module
    (No extra plugin thread as I think that might get confusing)

    TF2 PlayerClassConfig


    __________________
    Plugins & LibrariesListingGitHubDosMikeTools ▶ ToDo

    Last edited by reBane; 01-22-2023 at 09:57.
    reBane is offline
    reBane
    Senior Member
    Join Date: May 2020
    Old 01-18-2023 , 12:00   Re: [TF2] PlayerClassData - Edit Max Speed, Health and Ammo
    Reply With Quote #2

    Update to 23w03a
    * Added the buildables list to the exposed data
    * Library interface now uses a stringmap instead of an enum struct. should be more future proof
    * Updated GameData for Linux
    __________________
    Plugins & LibrariesListingGitHubDosMikeTools ▶ ToDo
    reBane is offline
    reBane
    Senior Member
    Join Date: May 2020
    Old 01-22-2023 , 09:57   Re: [TF2] PlayerClassData - Edit Max Speed, Health and Ammo
    Reply With Quote #3

    Update to 23w03b
    * Fixed the config parser not reading all values in a group
    __________________
    Plugins & LibrariesListingGitHubDosMikeTools ▶ ToDo
    reBane is offline
    Laser32
    AlliedModders Donor
    Join Date: Sep 2006
    Location: Germany (Schwerin)
    Old 02-04-2023 , 03:19   Re: [TF2] PlayerClassData - Edit Max Speed, Health and Ammo
    Reply With Quote #4

    hey thanks for posting

    i have a question... could you rewrite it so that I can change it for red and blue separately ?

    And add Weapon reload Speed pls...

    Last edited by Laser32; 02-04-2023 at 05:11.
    Laser32 is offline
    reBane
    Senior Member
    Join Date: May 2020
    Old 02-04-2023 , 06:02   Re: [TF2] PlayerClassData - Edit Max Speed, Health and Ammo
    Reply With Quote #5

    PlayerClassData is an object storing base-values for a player class. This plugins changes the memory values directly, allowing for base-value changes. It has no relation of information about the actual player, or their team. If you'd want different values on a non-class basis, you'd have to hook every game function that somehow accesses this part of memory (i wont do that) or go with attributes. Similarly, the weapon reload speed is weapon information, not player class information, so it is unrelated to the memory worked on by this plugin.

    With all that said, this plugin is just an additional entry to your rebalance toolkit. Use other plugins for more granular changes.
    __________________
    Plugins & LibrariesListingGitHubDosMikeTools ▶ ToDo

    Last edited by reBane; 02-04-2023 at 06:02.
    reBane is offline
    q1085909155
    Member
    Join Date: Oct 2021
    Old 02-08-2023 , 12:58   Re: [TF2] PlayerClassData - Edit Max Speed, Health and Ammo
    Reply With Quote #6

    I wonder if this will work for Blue Team robots in MVM
    q1085909155 is offline
    q1085909155
    Member
    Join Date: Oct 2021
    Old 07-31-2023 , 03:31   Re: [TF2] PlayerClassData - Edit Max Speed, Health and Ammo
    Reply With Quote #7

    Hey, I love this stuff, can you make a version where you can select a team?
    q1085909155 is offline
    reBane
    Senior Member
    Join Date: May 2020
    Old 07-31-2023 , 16:09   Re: [TF2] PlayerClassData - Edit Max Speed, Health and Ammo
    Reply With Quote #8

    As i already said, literally above your messages: Teams are not Classes, so that's out of scope for this plugin.
    __________________
    Plugins & LibrariesListingGitHubDosMikeTools ▶ ToDo
    reBane 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 19:03.


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