RSSy MYGO.pl Opublikowano Październik 22, 2023 o 03:51 RSSy Udostępnij Opublikowano Październik 22, 2023 o 03:51 About:Random map at the map transition. Support player item transition. (using valve landmark and changelevel entity) Support setting the maximum of random map that can be triggered throughout the process from first map to final map. Support add map to random map list setting. Requirements: Sourcemod 1.11+ Admin Commands: (requires "z" flag) PHP Code: // add map to random map list (If the required requirements are met) sm_rm_addconfig // reload random map list sm_rm_reload CVars: PHP Code: // 0 - plugin disable, 1 - plugin enable random_map_enable = 1 // 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. Attached Files Get Plugin or Get Source (l4d2_mix_map.sp - 21.2 KB) l4d2_mix_map.txt (2.2 KB) l4d2_mix_map.cfg (2.6 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi