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

RSS[L4D/L4D2] Self Help Items (nov 12 2022)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
description
this plugin is a modification to the Self Revive plugin, which was based off of the Self Help plugin. i also used parts of the Auto Help plugin
it brings back using items - survivors will use medkit, pills, adrenaline, or nothing to revive. these will give their respective health values of 80 permanent health, 50 temporary health, and 25 temporary health. (health restored by medkit is affected by first_aid_heal_percent)
by default, you can still stand up without any items, but you will only have 10 temporary health afterwards. (can be disabled entirely with selfrevive_noitem) (health amount can be changed with selfrevive_noitem_health)
you cannot choose what item (or lack of item) you stand up with - by default you will use temporary healing items first, then medkits, then nothing. you can make medkits be used before temporary healing items by changing selfrevive_itempriority
medkits will reset the incapacitation count properly when used to get up (actually gets reset to 1 because of the incapacitation that it is being used to recover from)
you can disable items from being used for revival by changing selfrevive_adrenaline, selfrevive_medkit, and selfrevive_pills
by default this plugin will not work on bots - you will need to change selfrevive_bot and make sure selfrevive_noitem is 1. bots cannot use items (because when they revive using an item they keep the item they used, please help on how to remove items from them)
anything else from the self revive plugin should be intact
let me know if anything is wrong/if you have feedback - this is my first experience with sourcemod plugins

cvars
Code:

selfrevive_adrenaline "1" - allow using adrenaline to revive
selfrevive_bot "0" - let bots self revive, requires selfrevive_noitem to be 1
selfrevive_delay "0.0" - Self revive delay
selfrevive_delay_incap "0.0" - Self revive delay for incapacitation
selfrevive_delay_ledge "0.0" - Self revive delay
selfrevive_duration "3.0" - Self revive duration
selfrevive_duration_incap "5.0" - Self revive duration for incapacitation, setting higher than 5 will disable animation
selfrevive_duration_ledge "4.5" - Self revive duration for ledge grab, setting higher than 5 will disable animation
selfrevive_grab "1" - Self revive for smoker grab, 0:Disable, 1:Enable
selfrevive_hint_delay "4.0" - Self revive hint delay
selfrevive_incap "1" - Self revive for incapacitation, 0:Disable, 1:Enable
selfrevive_itempriority "0" - set this to 1 if you want medkit to be used before pills/adrenaline
selfrevive_kill "0" - Do not kill special infected when breaking free; 1: Kill special infected when breaking free
selfrevive_ledge "1" - Self revive for ledge grabs, 0:Disable, 1:Enable
selfrevive_medkit "1" - allow using medkit to revive
selfrevive_noitem "1" - allow reviving without items
selfrevive_noitem_health "10.0" - how much temporary health you will have after reviving with no item
selfrevive_pills "1" - allow using pills to revive
selfrevive_pounce "1" - Self revive for hunter pounce, 0:Disable, 1:Enable
selfrevive_pummel "1" - Self revive for charger pummel , 0:Disable, 1:Enable
selfrevive_ride "1" - Self revive for jockey ride, 0:Disable, 1:Enable
selfrevive_versus "0" - 0: Disable in versus, 1: Enable in versus


Attached Files
File Type: smx l4d_2_selfreviveitem.smx (16.0 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

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...