Day of Infamy:Map Scripts

From New World Interactive Wiki
Jump to: navigation, search

Map Scripts

Fields

  • "cpsetup.txt"
    • "navfile" - Point to navmesh file generated by nav_generate. This should match the map name.
    • "nightlighting" - "0", "1" ["0" means daytime, and "1" nighttime.]
    • "theater_conditions" - Weapon is one of: "fg42", "stg44", "m1para"
      • "?has_weapon_access" - "0", "1" ["0" Weapon is disabled, "1" Weapon is enabled.]
    • "allowed_units" - Each listed will be enabled for the map.
      • "unit" - "unit_faction_unitname"
    • "<gamemode>": "stronghold", "raid", "entrenchment", "offensive", "frontline", "liberation", "invasion", "firefight", "sabotage", "intel"

Lowercase title of available game modes.

Example

Example from sdk_invasion, April 8th, 2017:

"cpsetup.txt"
{
	
	"navfile"   		"sdk_invasion"
	"nightlighting"		"0"
		
	"theater_conditions"
	{
		"?has_stg44_access"		"1"
		"?has_fg42_access"		"1"
		"?has_m1para_access"	"1"
	}

	"allowed_units"      
	{
		//commonwealth  
		"unit"		"unit_commonwealth_british"
		"unit"		"unit_commonwealth_canada"
		"unit"		"unit_commonwealth_no2commando"
		"unit"		"unit_commonwealth_princess_patricia"
		"unit"		"unit_commonwealth_highlander"
		"unit"		"unit_commonwealth_12thfrontier"
		"unit"		"unit_commonwealth_argyll"
		"unit"		"unit_commonwealth_unit_commonwealth_seaforth"
		"unit"		"unit_commonwealth_royal_hamilton"
		"unit"		"unit_commonwealth_grenadier"
		"unit"		"unit_commonwealth_fusilier"
		
		// german
		"unit"		"unit_german_wehrmacht"
		"unit"		"unit_german_1stinfantry"
		"unit"		"unit_german_15thpanzer"
		"unit"		"unit_german_panzerss"
		"unit"		"unit_german_fallschirmjager"
		"unit"		"unit_german_3rdfallschirmjager"
		"unit"		"unit_german_3rdpanzer"
		"unit"		"unit_german_17thpanzerss"
		"unit"		"unit_german_352infanterie"
		"unit"		"unit_german_29thpanzer"
		
		// american
		"unit"		"unit_american_usarmy"
		"unit"		"unit_american_ranger"
		"unit"		"unit_american_82ndairborne"
		"unit"		"unit_american_92ndinfantry"
		"unit"		"unit_american_1stinfantry"
		"unit"		"unit_american_3rddivision"
		"unit"		"unit_american_101stairborne"
		"unit"		"unit_american_28thdivision"
		"unit"		"unit_american_2ndrangers"
		"unit"		"unit_american_29thinfantry"
	}


	"invasion"	//Set up is the same as offensive mode without the regroup control point
	{
		"TeamOne"		"americans"
		"TeamTwo"		"axis"
		
		"AttackingTeam"		"TEAM_ONE"
		"controlpoint"		"cp_a"
		"controlpoint"		"cp_b"
		"controlpoint"		"cp_c"
		"controlpoint"		"radiopoint_axis_final"
		
		"spawnzones"
		{
			"disablespawns" "1"
			"0"  "spawnzone_offensive_a"
			"1"  "spawnzone_offensive_b"
			"2"  "spawnzone_offensive_c"
		}
		
		"entities"
		{
			// Radio point
			"obj_destructible"
			{
				"origin"		"4753 6 -988"
				"angles"		"0 90 0"
				"targetname"		"radio_axis_final"
				"teamnumber"		"3"
				"ControlPoint"		"radiopoint_axis_final"
			}
			"point_controlpoint"
			{
				"origin"		"4753 6 -948"
				"angles"		"0 90 0"
				"targetname"		"radiopoint_axis_final"
				"printname"		"#CP_Axis_Radio"
			}		
		}
	}
}