Hi, This plugin fixes level changing from degrading server performance 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 Admin_Root 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).