AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] MixMap - (1.1) [22/Oct/2023] (https://forums.alliedmods.net/showthread.php?t=344268)

yuzumi 10-21-2023 23:51

[L4D2] MixMap - (1.1) [22/Oct/2023]
 
3 Attachment(s)


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 

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.

kochiurun119 10-24-2023 09:25

Re: [L4D2] MixMap - (1.1) [22/Oct/2023]
 
nice plugin

zonbarbar 10-24-2023 22:42

Re: [L4D2] MixMap - (1.1) [22/Oct/2023]
 
does anyone tried a game with never reached to the end

ringrr 12-05-2023 05:52

Re: [L4D2] MixMap - (1.1) [22/Oct/2023]
 
When I start the game, a chat message saying

“[Mix Map] An uncharted rift in space-time has appeared. After changeLevel, you will travel to c4m5_milltown_escape ...”

appears. How do I disable the message?

Sev 04-28-2024 16:41

Re: [L4D2] MixMap - (1.1) [22/Oct/2023]
 
Pretty solid idea.

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.


All times are GMT -4. The time now is 02:04.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.