RSSy MYGO.pl Opublikowano Listopad 23, 2017 o 03:44 RSSy Udostępnij Opublikowano Listopad 23, 2017 o 03:44 Introduction Phoenix0001 suggested a plugin like this so Tak (Chaosxk) wrote a short one. Unfortunately, it wasn't properly checking for the amount of players on the server after every map transition. Lux then revised the code but the plugin still didn't work reliably. I then decided to revise his revision and made this.Description Adjusts difficulty based on the number of clients on the server. The requirement for each difficulty can be set via cvars. Difficulty is adjusted by updating (resetting and checking) the client count each time a player joins or leaves. The client count is also updated on round start, round end, map transition, and map start. This will ensure that the client count is monitored throughout the game to keep an accurate representation of the difficulty rate.Cvars Spoiler PHP Code: // Minimum players required for Advanced. // - // Default: "3" l4d_da_advanced "3" // Minimum players required for Easy. // - // Default: "1" l4d_da_easy "1" // Enable the Difficulty Adjuster? (0: OFF, 1: ON) // - // Default: "1" l4d_da_enable "1" // Minimum players required for Expert. // - // Default: "4" l4d_da_expert "4" // Minimum players required for Normal. // - // Default: "2" l4d_da_normal "2" CreditsTak (Chaosxk) - For the original code found here.Lux - For revising the original code found here.phoenix0001 - For the idea, original post here and new post here.Changelog Spoiler Version 1.0 (November 22, 2017) Initial release. Installation 1. Place l4d_difficulty_adjuster.smx in addons/sourcemod/plugins folder.Upgrading to Newer Versions 1. Delete l4d_difficulty_adjuster.smx from addons/sourcemod/plugins folder. 2. Delete l4d_difficulty_adjuster.cfg from cfg/sourcemod folder. 3. Follow the Installation guide above. Attached Files Get Plugin or Get Source (l4d_difficulty_adjuster.sp - 4.0 KB) 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ę