RSSy MYGO.pl Opublikowano Październik 16, 2019 o 05:56 RSSy Udostępnij Opublikowano Październik 16, 2019 o 05:56 Hi, This plugin fixes level changing with a native to use in your map changing plugins This plugin does near nothing on it's own it's for dev's to include in their mission managers. However there is a command "sm_changelevel" This requires root admin access or from server console function same as sm_map.Tech stuff Spoiler Since using forced map changing in l4d2 causes the vscript engine to not clear up all it's resources these pile up degrading performance overtime (for linux, not tested enough on windows but added support for it just incase ^_-), while vscript is apart of the issue there are still issues else where in the game which causes same effect just is far less of an impact now. Instead we call the voting function to from survival which is vote map PHP Code: CDirector::OnChangeChapterVote() This can be called from an easy native. PHP Code: L4D2_ChangeLevel(const char[] sMapName) This functions near identical to ForceChangeLevel() function, and map. Only difference is server waits for everyone to fully load before starting map, intro sequences play and anyplayer idle before map changes will take over their bot (prevents them being put on spec team).Git RepoLink Native PHP Code: /*** @param sMapName Map String without .bsp* @noreturn*/native void L4D2_ChangeLevel(const char[] sMapName); A fork including this change [L4D2] Improved Automatic Campaign Switcher (ACS)https://github.com/LuxLuma/l4d2_mission_manager Aswell are SirPlease's L4D2-Competitive-Rework Thanks: SirPlease for testing. Silvers throwing ideas like a machine gun :P Maybe this method will get merged into sourcemod for l4d2 only?Installation: 1.Download the .zip file. 2.Merge with \addons\ folder. 3.Restart the server. Attached Files l4d2_changelevel.zip (9.8 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ę