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

[TF2] Set Class Max Health (v4.0 24/07/2020)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MrFrenzoid
Junior Member
Join Date: Jul 2019
Plugin ID:
7216
Plugin Version:
4.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A very simple plugin that changes each class max health, or everyones max health.
    Old 07-23-2020 , 19:43   [TF2] Set Class Max Health (v4.0 24/07/2020)
    Reply With Quote #1

    • Name
      setclassmaxhealth.smx

    • Description.
      A very simple plugin that changes each class own max health, or everyones max health using tf2attrib "max health additive bonus".

    • Features.
      Modes (see cvar sm_mhmode):

      0: Adds to all classes max health's an additive extra taken from the cvar "sm_mhincrement"

      1: each class will get a specific additive maxhealth value depending on their own cvar.


      ------------------------------------

      Specific class max health using cvars for each class (see cvars)
      Incremental Percentage health for everyone.

      ------------------------------------

      Team restrictions, you can restrict this maxhealth to a specific team, or to everyone (see sm_mhteam cvar).

    • Cvars.
      cvar name, default value, description.

      "sm_mhenabled", "1", "Enables / Disables the plugin (sm plugins reload is needed)."
      "sm_mhteam", "1", "0: apply to all teams, 1: Only RED Team, 2: Only BLUE Team"
      "sm_mhmode", "0", "Sets plugins mode, 0: sm_mhincrement = +% of the default max health for each class, 1: Custom health value for each class from each owns class cvar"
      "sm_mhincrement", "100", "Additive health added to everyone."
      "sm_mhsoldier", "200", "Health to increaseSoldiers max health"
      "sm_mhpyro", "200", "Health to increase Pyros max health"
      "sm_mhspy", "200", "Health to increaseSpys max health"
      "sm_mhdemoman", "200", "Health to increaseDemomans max health"
      "sm_mhsniper", "200", "Health to increaseSniers max health"
      "sm_mhengineer", "200", "Health to increaseEngineers max health"
      "sm_mhheavy", "200", "Health to increaseHeavys max health"
      "sm_mhscout", "200", "Health to increaseScouts max health"
      "sm_mhmedic", "200", "Health to increaseMedics max health"

    • Changelog.
      Fixed overheals bug - 03/08/2020.
      First release - 24/07/2020.

    • Bugs.
    • Dependencies.
      This plugin uses tf2attributes
      https://github.com/FlaminSarge/tf2attributes/releases

    • How to install.
      Download the plugin and drop it into your plugins folder, on launch, a config file should be generated located at cfg/sourcemod/setclassmaxhealth.cfg.

    • Repository.
      This plugin is also available on my repository here.



    This is my first plugin that i did with a bit of help thanks to Drixevel, hope everyone likes it, if you have any question dont heistate to ask!

    Best regards, Frenzoid .
    Attached Files
    File Type: sp Get Plugin or Get Source (setclassmaxhealth.sp - 192 views - 5.5 KB)
    File Type: smx setclassmaxhealth.smx (4.8 KB, 263 views)

    Last edited by MrFrenzoid; 08-03-2020 at 08:52.
    MrFrenzoid is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 07-24-2020 , 17:59   Re: [TF2] Set Class Max Health (v4.0 24/07/2020)
    Reply With Quote #2

    Since this plugin doesn't use any external dependencies, you don't have to put up the .smx for download as they can just click Get Source.

    Besides that, good work.
    Drixevel is offline
    KennyAtom
    New Member
    Join Date: Apr 2021
    Location: Washington
    Old 04-07-2021 , 05:17   Re: [TF2] Set Class Max Health (v4.0 24/07/2020)
    Reply With Quote #3

    Is there any way to only enable this effect on yourself/specific users?

    I want to do a Juggernaut gamemode where someone is on a team by themselves with a huge amount of health, and everyone else is on the other team and is tasked with killing them, but I'm prevented from doing this due to the fact that it gives this health boost to everyone, and not just to myself/a specific user.
    KennyAtom 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 01:30.


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