Raised This Month: $32 Target: $400
 8% 

[L4D] Change Maps by Campaign (Menu)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Downtown1
Veteran Member
Join Date: Mar 2004
Old 01-05-2009 , 17:08   [L4D] Change Maps by Campaign (Menu)
Reply With Quote #1

Hey guys, I got tired of using the built-in change level menu since it takes forever to scroll to the VS maps and even then there's way too many options to choose .. unfortunately it has to be at the top level .

Code:
	"L4D Change Campaign"
	{
		"(VS) Blood Harvest"
		{
			"cmd"	"sm_map #1"
			"admin"	"sm_map"
			"1"
			{
				"type"	"list"
				"title"	"(VS) Blood Harvest"

				"1"	"l4d_vs_farm01_hilltop"
				"1."	"Hilltop"
				"2"	"l4d_vs_farm02_traintunnel"
				"2."	"Train Tunnel"
				"3"	"l4d_vs_farm03_bridge"
				"3."	"Bridge"
				"4"	"l4d_vs_farm04_barn"
				"4."	"Barn"
				"5"	"l4d_vs_farm05_cornfield"
				"5."	"Cornfield"
			}
		}

		"(Versus) Dead Air"
		{
			"cmd"	"sm_map #1"
			"admin"	"sm_map"
			"1"
			{
				"type"	"list"
				"title"	"(Versus) Dead Air"

				"1"	"l4d_vs_airport01_greenhouse"
				"1."	"Greenhouse"
				"2"	"l4d_vs_airport02_offices"
				"2."	"Offices"
				"3"	"l4d_vs_airport03_garage"
				"3."	"Parking Garage"
				"4"	"l4d_vs_airport04_terminal"
				"4."	"Flight Terminal"
				"5"	"l4d_vs_airport05_runway"
				"5."	"Runway"
			}
		}

		"(Versus) Death Toll"
		{
			"cmd"	"sm_map #1"
			"admin"	"sm_map"
			"1"
			{
				"type"	"list"
				"title"	"(Versus) Death Toll"

				"1"	"l4d_vs_smalltown01_caves"
				"1."	"Caves"
				"2"	"l4d_vs_smalltown02_drainage"
				"2."	"Drainage"
				"3"	"l4d_vs_smalltown03_ranchhouse"
				"3."	"Ranch House"
				"4"	"l4d_vs_smalltown04_mainstreet"
				"4."	"Main St."
				"5"	"l4d_vs_smalltown05_houseboat"
				"5."	"Boat House"
			}
		}

		"(VS) No Mercy"
		{
			"cmd"	"sm_map #1"
			"admin"	"sm_map"
			"1"
			{
				"type"	"list"
				"title"	"(VS) No Mercy"

				"1"	"l4d_vs_hospital01_apartment"
				"1."	"Apartment"
				"2"	"l4d_vs_hospital02_subway"
				"2."	"Subway"
				"3"	"l4d_vs_hospital03_sewers"
				"3."	"Sewers"
				"4"	"l4d_vs_hospital04_interior"
				"4."	"Interior Hospital"
				"5"	"l4d_vs_hospital05_rooftop"
				"5."	"Rooftop"
			}
		}

		"(Coop) Blood Harvest"
		{
			"cmd"	"sm_map #1"
			"admin"	"sm_map"
			"1"
			{
				"type"	"list"
				"title"	"(Coop) Blood Harvest"

				"1"	"l4d_farm01_hilltop"
				"1."	"Hilltop"
				"2"	"l4d_farm02_traintunnel"
				"2."	"Train Tunnel"
				"3"	"l4d_farm03_bridge"
				"3."	"Bridge"
				"4"	"l4d_farm04_barn"
				"4."	"Barn"
				"5"	"l4d_farm05_cornfield"
				"5."	"Corn Field"
			}
		}

		"(Coop) Dead Air"
		{
			"cmd"	"sm_map #1"
			"admin"	"sm_map"
			"1"
			{
				"type"	"list"
				"title"	"(Coop) Dead Air"

				"1"	"l4d_airport01_greenhouse"
				"1."	"Greenhouse"
				"2"	"l4d_airport02_offices"
				"2."	"Offices"
				"3"	"l4d_airport03_garage"
				"3."	"Parking Garage"
				"4"	"l4d_airport04_terminal"
				"4."	"Flight Terminal"
				"5"	"l4d_airport05_runway"
				"5."	"Runway"
			}
		}

		"(Coop) Death Toll"
		{
			"cmd"	"sm_map #1"
			"admin"	"sm_map"
			"1"
			{
				"type"	"list"
				"title"	"(Coop) Death Toll"

				"1"	"l4d_smalltown01_caves"
				"1."	"Caves"
				"2"	"l4d_smalltown02_drainage"
				"2."	"Drainage"
				"3"	"l4d_smalltown03_ranchhouse"
				"3."	"Ranch House"
				"4"	"l4d_smalltown04_mainstreet"
				"4."	"Main St."
				"5"	"l4d_smalltown05_houseboat"
				"5."	"Boat House"
			}
		}

		"(Coop) No Mercy"
		{
			"cmd"	"sm_map #1"
			"admin"	"sm_map"
			"1"
			{
				"type"	"list"
				"title"	"(Coop) No Mercy"

				"1"	"l4d_hospital01_apartment"
				"1."	"Apartment"
				"2"	"l4d_hospital02_subway"
				"2."	"Subway"
				"3"	"l4d_hospital03_sewers"
				"3."	"Sewers"
				"4"	"l4d_hospital04_interior"
				"4."	"Interior Hospital"
				"5"	"l4d_hospital05_rooftop"
				"5."	"Rooftop"
			}
		}
	}
We'll have to make do with this until someone wants to make a better plugin that will parse the map file names automatically and create a menu automatically.

Last edited by Downtown1; 06-04-2009 at 00:14.
Downtown1 is offline
Downtown1
Veteran Member
Join Date: Mar 2004
Old 06-04-2009 , 00:14   Re: [L4D] Change Maps by Campaign (Menu)
Reply With Quote #2

Updated to include dead air/death toll versus.
Downtown1 is offline
ltgenkd
AlliedModders Donor
Join Date: Sep 2008
Old 12-13-2009 , 12:33   Re: [L4D] Change Maps by Campaign (Menu)
Reply With Quote #3

Is there a plugin yet for this ?
ltgenkd is offline
Downtown1
Veteran Member
Join Date: Mar 2004
Old 12-14-2009 , 01:36   Re: [L4D] Change Maps by Campaign (Menu)
Reply With Quote #4

There is actually, it's called gamemode changer but it needs to be fixed so only admins can change the gamemode/map.
Downtown1 is offline
ltgenkd
AlliedModders Donor
Join Date: Sep 2008
Old 12-14-2009 , 10:58   Re: [L4D] Change Maps by Campaign (Menu)
Reply With Quote #5

I guess i will request a new plugin to be made. We run Coop and its our Steam Group server. So basically everyone has admin rights (No Votes Needed) We have many add-on campaigns. Writing the code for every add-on campaign in the adminmenu_custom.txt would be very time consuming i would imagine. I don't know much about making plugins but, maybe it would be easier to have a plugin do the job than writing all that code in the admincustom_menu.txt for every custom campaign addon we have. Not that im lazy but we have alot of addon campaigns on the server. All we need is a menu to change the Custom Campaign addon in the admin menu. If the coding for the plugin takes more time than adding code to the adminmenu_custom.txt i will do it no problem
Hey maybe you could do it ....
ltgenkd is offline
Downtown1
Veteran Member
Join Date: Mar 2004
Old 12-14-2009 , 14:38   Re: [L4D] Change Maps by Campaign (Menu)
Reply With Quote #6

Well none of these detect automatically what gamemodes the map support, I know in L4D1 you could by looking at the missions.txt file but not sure about L4D2. You should make a specific plugin request for that that will detect custom maps as well, in the plugin requests forum.
Downtown1 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:48.


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