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

[L4D2] Anti Safe Room Breach ( Anti Spawn Near Door )


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Before I start explaining, I must say that I'm generally a bad scripter but I made this plugin and no bugs were found in the tests.

The plugin when the cvar is set to 1 sends any player that spawns near safe room door to ghost, preventing him from exploiting a bug that allows him to "teleport" to inside.

There is only one cvar, which is "l4d2_anti_breach".
When the cvar is set to 0, the plugin is disabled.
When the cvar is set to 1, the plugin is enabled.
When the cvar is set to 2, the plugin kills any player infected that spawn from 150 units to the safe room door without attempting to send them to ghost state.

If you don't add the game data, the cvar set to 1 acts as if it were set to 2.

Other than tutorials, I took some of the code from these locations:
1. InfectedForceGhost from InfectedAPI ( https://forums.alliedmods.net/archiv.../t-114979.html )
2. Locating all entities that exist from Silvers' response to my question. ( https://forums.alliedmods.net/showpo...46&postcount=2 )
3. The classname of the safe room door from l4d_loading. ( https://forums.alliedmods.net/showthread.php?p=836849 )

Please comment if you find any problems with the plugin.

Attached Files
File Type: sp Get Plugin or Get Source (AntiBreach.sp - 3.8 KB)
File Type: txt l4d2_anti_breach.txt (685 Bytes)

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ę...