// Chance of random map in map transition
random_map_chance = 0.5
// 0 = Use the entire random list, 1 = Use only official maps from random list
random_map_only_official = 1
// Maximum number of random maps that can be triggered throughout the entire process from the first map to the final map
random_map_max_mix_count = 5
Known Issue:
If the item carried during the transition do not exist on the map after the transition, they will disappear or report an error. (ex. Melee weapons not unlocked on post-transition map)
If you unload the plugin on the way to use it, it will cause the safehouse items to be misplaced during the first transition to the map.
Due to the mismatch between the size of the safe house after triggering the random transition and the size of the safe house before the transition, some players will be outside the map or outside the safe house. (this plugin use team warp to temporarily avoid this issue)
ChangeLog:
Code:
1.1 - use warp_to_start_area command avoid transitioned to outside safe house.
1.0 - Initial release.
Thanks:
Silvers - Source of the IsFirstMapInScenario method (in Left 4 DHooks Direct)
sorallll - Some help on the code and fix player_transitioned event not working properly in 4+ player.
Installation:
Download "l4d2_mix_map.cfg" and put into your servers \addons\sourcemod\data\ folder.
Download "l4d2_mix_map.txt" and put into your servers \addons\sourcemod\gamedata\ folder.
Download "l4d2_mix_map.sp" and put into your servers \addons\sourcemod\scripting\ folder.
Compiling plugin and put into your servers \addons\sourcemod\plugins\ folder.
My only real request is a feature or a hard code so it only works on official maps, not custom campaigns so when you play custom campaigns, you don't get switched out to a regular map.