Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

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


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
  • Name
    setclassmaxhealth.smx

  • Description.
    A very simple plugin that changes each class own max health, or everyones max health using an incremental percentage formula, such as +20% of 100 = 120, it can also be resticted to specific teams.

  • Features.
    Modes (see cvar sm_mhmode):

    0: all classes will get a +% depending on the cvar "sm_mhincrement" value, for example, if sm_mhincrement = 0.2, then, all classes will get +20% on their max health depending on their default max healh.

    As for another example: sm_mhincrement = 0.2, Max HP = 100 -> (0.2 * 100) + 100 = 20 + 100 = 120.


    1: each class will get a static 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", "0.2", "% incremented on the default maxhealth to all classes"
    "sm_mhsoldier", "200", "Sets Soldiers max health"
    "sm_mhpyro", "200", "Sets Pyros max health"
    "sm_mhspy", "200", "Sets Spys max health"
    "sm_mhdemoman", "200", "Sets Demomans max health"
    "sm_mhsniper", "200", "Sets Sniers max health"
    "sm_mhengineer", "200", "Sets Engineers max health"
    "sm_mhheavy", "200", "Sets Heavys max health"
    "sm_mhscout", "200", "Sets Scouts max health"
    "sm_mhmedic", "200", "Sets Medics max health"

  • Changelog.
    First release - 24/07/2020.

  • Bugs.
    Ovearheals don't seem to work.

  • 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 :D.

Attached Files
File Type: sp Get Plugin or Get Source (setclassmaxhealth.sp - 5.5 KB)
File Type: smx setclassmaxhealth.smx (4.8 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

×
×
  • Dodaj nową pozycję...