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

[CS:GO] Minigames/MG Auto-Respawn + Spawn Protection


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:
A quick plugin, designed to detect spawn killers on course maps and respawn players. (primarily for minigames server). The plugin also provides an effective spawn protection on non-course maps.

This plugin was inspired by Franc1sco Franug's Auto Respawn Plugin, however only utilises his method for detecting course maps.

For those interested that don't want to bother looking through the code, it essentially works by checking for every disabled trigger_hurt at the beginning of the map, it then checks through these trigger_hurt's for spawn points. If it finds any spawn points, that trigger_hurt is added to an array and that array is set to be checked on a 0.1s timer, checking the disabled status of each trigger_hurt. See, whereas most other auto respawners require one or more players to die, in some cases twice, this detection method doesn't disrupt the player's experience.

As for the spawn protection, it's just the usual spawn protection timer, however it is properly terminated when the player dies, the round ends, or they leave the server (this prevents the player's spawn protection being ended prematurely, in the next round).

Cvars:
Quote:

sm_auto_respawn "1" // Enable Auto-Respawn.
sm_spawn_protection "1" // Enable Spawn Protection.
sm_protect_time "5.0" // Set the Spawn Protection Duration.

Attached Files
File Type: sp Get Plugin or Get Source (autores_spawnprotect.sp - 6.4 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

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

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