RSSy MYGO.pl Opublikowano Maj 15, 2017 o 18:59 RSSy Udostępnij Opublikowano Maj 15, 2017 o 18:59 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 Get Plugin or Get Source (AntiBreach.sp - 3.8 KB) l4d2_anti_breach.txt (685 Bytes) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
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ę