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] Emergency Treatment With First Aid Kit And CPR (Fork)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Authors: panxiaohai & AtomicStryker & Ivailosp & OtterNas3 (Fork by Dragokas)

Notice:
This is a fork of original work from panxiaohai. Published by request.
My previous public version was 1.0.5. See the changelog for news.
Description:
When some one die, there are two ways to bring him back to life in this plugin:
  • 1. Using First Aid Kit:
    - Going close to blinking light, select medkit and press Crouch+Use for several seconds befor blinking light disappear, after revive, the medkit will disappear.
  • 2. Using CPR:
    - Going close to blinking light, press Crouch+Use for several seconds as quick as possible, the dead one will be revived and go to black and white.
Settings (ConVars):
Can be found in cfg/sourcemod/l4d_revive&cpr.cfg
PHP Code:

// Enable ability to revive a dead player? (0 - No, 1 - Yes)
l4d_revive_enable "1"

// How long does revive with medkit take?
l4d_revive_duration "10"

// Revive with medkit health
l4d_revive_health "50"

// Dead bodys can be revived with medkit up to x seconds, 0:disable revive
l4d_revive_maxtime "300"

// Enable ability to CPR a dead player? (0 - No, 1 - Yes)
l4d_CPR_enable "1"

// Dead bodys can be CPR within x seconds, 0:disable artificial respiration
l4d_CPR_maxtime "15"

// How long does CPR take
l4d_CPR_duration "6"

// Incaps count set after somebody CPR you (set -1 to use default game black/white incap count)
l4d_CPR_incap_count "-1"

// Y Offset from the floor of spawned particle light effect
l4d_CPR_floor_offset "0" 

Particle Light types:
There 3 types, which can be selected by checging value of "LIGHT_TYPE" in file l4d_revivecpr.sp and recompilation:
PHP Code:

// (default) - to use little red light
#define LIGHT_TYPE 1

// (default) - to use little green light
#define LIGHT_TYPE 2

// (default) - to use bright red light (attention: performance issues are noticed when I used this particle!)
#define LIGHT_TYPE 3 

Commands:
Nothing.

Natives & Forwards: (for developers)
Spoiler


Compatibility:
- L4D1
- L4D2

ChangeLog:
Spoiler


Donate
Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
- Patreon (Paypal)
- BitCoin
- Ю.Money

Attached Files
File Type: zip CPR.zip (26.6 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ę...