Left 4 Dead 2 Gamemodes.txt File

From Valve Developer Community
Revision as of 18:01, 22 May 2010 by Thegreen (talk | contribs) (Added in mutation names)
Jump to navigation Jump to search


This is the Gamemode.txt file included which is located in the /Left4dead2/update/pak01_dir.vpk. Feel free to use this as a template for the metadata for your own Mutation Gametype (L4D2)

Left 4 Dead 2 Gamemodes.txt

"GameModes"
{
	"coop"
	{
		"base"		"coop"
		"maxplayers"	"4"
		
		"x360ctx"	"0"
		"x360matchrule"		"0"
		"x360presence"		"5"
		"x360presence:"
		{
			"network:offline"	"11"
			"play:commentary"	"3"
			"play:credits"		"2"
		}

		"hasdifficulty"		"1"
	}

	"realism"
	{
		"base"		"realism"
		"maxplayers"    "4"	// realism
		"x360ctx"	"6"
		"x360matchrule"		"0"
		"x360presence"		"5"

		"hasdifficulty"		"1"

		// set base gamemode convars first, then the current gamemode
		convar {
			sv_disable_glow_survivors 1
			sv_disable_glow_faritems 1
			sv_rescue_disabled 1
			z_non_head_damage_factor_multiplier 0.5
			z_head_damage_causes_wounds 1
			z_use_next_difficulty_damage_factor 1
			z_witch_always_kills 1
		}

	}

	"survival"
	{
		"base"		"survival"
		"maxplayers"    "4"	// survival
		"x360ctx"	"3"
		"x360matchrule"		"2"
		"x360matchruleteam"	"3"
		"x360presence"		"9"

		"singlechapter"		"1"
	}

	"versus"
	{
		"base"		"versus"
		"maxplayers"    "8"	// versus
		"x360ctx"	"1"
		"x360matchrule"		"1"
		"x360matchruleteam"	"3"
		"x360presence"		"7"

		"playercontrolledzombies"	"1"

		convar
		{
			"z_scrimmage_creep_delay" 0
			"z_scrimmage_creep_rate" 100
			"z_spawn_safety_range" 200
			"tongue_miss_delay" 3
			"tongue_hit_delay" 15
			"tongue_dropping_to_ground_time" 0.5
			"tongue_los_forgiveness_time" 1.5
			"tongue_no_progress_choke_early_delay" 1.0
			"z_pounce_stumble_radius" 160
			"z_pounce_damage_interrupt" 150
			"z_hunter_limit" 2
			"z_smoker_limit" 2
			"z_max_stagger_duration" 0.9
			"sv_alltalk" 0
			"z_ghost_los_expected_progress" 2000
			"tongue_choke_damage_amount" 5
			"tongue_break_from_damage_amount" 300

			// these are 360 only convar changes, if you prefix with 360_, they'll
			// get set on 360 and dedicated for 360
			"360_z_mega_mob_size" 25
			"360_z_mob_spawn_max_size" 18
			"360_z_versus_wandering_density" 0.026
		}
	}

	"scavenge"
	{
		"base"		"scavenge"
		"maxplayers"    "8"	// scavenge
		"x360ctx"	"4"
		"x360matchrule"		"4"
		"x360matchruleteam"	"5"
		"x360presence"		"9"

		"singlechapter"		"1"
		"hasroundlimit"		"1"

		"playercontrolledzombies"	"1"

		convar
		{
			"z_scrimmage_creep_delay" 0
			"z_scrimmage_creep_rate" 100
			"z_spawn_safety_range" 200
			"tongue_miss_delay" 3
			"tongue_hit_delay" 15
			"tongue_dropping_to_ground_time" 0.5
			"tongue_los_forgiveness_time" 1.5
			"tongue_no_progress_choke_early_delay" 1.0
			"z_pounce_stumble_radius" 160
			"z_pounce_damage_interrupt" 150
			"z_hunter_limit" 2
			"z_smoker_limit" 2
			"z_max_stagger_duration" 0.9
			"sv_alltalk" 0
			"z_ghost_los_expected_progress" 2000
			"tongue_choke_damage_amount" 5
			"tongue_break_from_damage_amount" 300

			// these are 360 only convar changes, if you prefix with 360_, they'll
			// get set on 360 and dedicated for 360
			"360_z_mega_mob_size" 25
			"360_z_mob_spawn_max_size" 18
			"360_z_versus_wandering_density" 0.026
		}
	}

	"mutation3" // Bleed Out
	{
		"base"		"coop"
		"maxplayers"    "4"
		"achievementindex"	"2"
		"x360ctx"	"9"
		"dlcmask"	"0x0000000000000002"

		convar {
			pain_pills_decay_rate 0.27
		}
	}

	"mutation9" // Last Gnome On Earth
	{
		"base"		"coop"
		"maxplayers"    "4"
		"achievementindex"	"8"
		"x360ctx"	"15"
		"dlcmask"	"0x0000000000000002"
	}

	"mutation12" // Realism Versus
	{
		"base"		"versus"
		"maxplayers"    "8"
		"achievementindex"	"13"	// intentionally mis-numbered
		"playercontrolledzombies"	"1"
		"x360ctx"	"20"
		"dlcmask"	"0x0000000000000002"

		convar {
			sv_disable_glow_survivors 1
			sv_disable_glow_faritems 1
			sv_rescue_disabled 1
			z_non_head_damage_factor_multiplier 0.5
			z_head_damage_causes_wounds 1
			z_use_next_difficulty_damage_factor 1
			z_witch_always_kills 1
		}

	}

	"mutation13" // Follow The Liter
	{
		"base"		"scavenge"
		"maxplayers"    "8"
		"achievementindex"	"12"
		"playercontrolledzombies"	"1"
		"x360ctx"	"22"
		"dlcmask"	"0x0000000000000002"
	}
}