Call of Duty 5: MP - Map GSC File: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
(New page: ==Create A Map Script File== '''1: ''' Create a new Notepad or [http://www.textpad.com/ TextPad] file and open it.<br> '''2: ''' Copy the following into the file. <pre> main() { //maps\...)
 
Line 36: Line 36:
==Editing Your Script File==
==Editing Your Script File==


*'''maps\mp\mp_yourmapname_fx::main();'''
*<font color="yellow">'''maps\mp\mp_yourmapname_fx::main();'''</font>
**Calls the main() function of maps\mp\mp_yourmapname_fx.gsc, this is used for FX.
**Calls the main() function of maps\mp\mp_yourmapname_fx.gsc, this is used for FX.
 
*<font color="yellow">'''maps\mp\_load::main();'''</font>
*'''maps\mp\_load::main();'''
**Calls the main() function of maps\mp\_load.gsc
**Calls the main() function of maps\mp\_load.gsc
**Required for just about everything, always leave alone.
**Required for just about everything, always leave alone.
 
*<font color="yellow">'''maps\mp\_compass::setupMiniMap("compass_map_mp_yourname);'''</font>
*'''maps\mp\_compass::setupMiniMap("compass_map_mp_yourname);'''
**Change it to the '''material''' name of you minimap texture.
**Change it to the '''material''' name of you minimap texture.
 
*<font color="yellow">'''game["allies"] = "marines";'''
*'''game["allies"] = "marines";'''
*'''game["axis"] = "german";'''</font>
*'''game["axis"] = "german";'''
 
**Change the nationality at the end to change the respective team nationality.
**Change the nationality at the end to change the respective team nationality.
***"marines", "russian", "german", "japanese"
***"marines", "russian", "german", "japanese"
 
*<font color="yellow">'''game["attackers"] = "axis";'''
*'''game["attackers"] = "axis";'''
*'''game["defenders"] = "allies";'''</font>
*'''game["defenders"] = "allies";'''
 
**Change to what role you want each team to play.
**Change to what role you want each team to play.
*'''game["allies_soldiertype"] = "german";'''
*<font color="yellow">'''game["allies_soldiertype"] = "german";'''
*'''game["axis_soldiertype"] = "german";'''
*'''game["axis_soldiertype"] = "german";'''</font>
**This sets the clothing for each team.
**This sets the clothing for each team.
***"german" or "pacific"  
***"german" or "pacific"
 


==Combining With Your Map==
==Combining With Your Map==

Revision as of 01:02, 11 November 2008

Create A Map Script File

1: Create a new Notepad or TextPad file and open it.
2: Copy the following into the file.

main()
{
	//maps\mp\mp_yourmapname_fx::main();		
	maps\mp\_load::main();
	
	//maps\mp\_compass::setupMiniMap("compass_map_mp_yourmapname");

	// If the team nationalites change in this file,
	// you must update the team nationality in the level's csc file as well!
	game["allies"] = "marines";
	game["axis"] = "german";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "german";
	game["axis_soldiertype"] = "german";

	setdvar( "r_specularcolorscale", "1" );
	setdvar("compassmaxrange","2100");

}

3: Save the file in

raw\maps\mp\mp_yourmapname.gsc

Remember that when saving you may have to select "All Files" as it night save your file as "mp_yourmapname.gsc.txt" and that's no good.


Editing Your Script File

  • maps\mp\mp_yourmapname_fx::main();
    • Calls the main() function of maps\mp\mp_yourmapname_fx.gsc, this is used for FX.
  • maps\mp\_load::main();
    • Calls the main() function of maps\mp\_load.gsc
    • Required for just about everything, always leave alone.
  • maps\mp\_compass::setupMiniMap("compass_map_mp_yourname);
    • Change it to the material name of you minimap texture.
  • game["allies"] = "marines";
  • game["axis"] = "german";
    • Change the nationality at the end to change the respective team nationality.
      • "marines", "russian", "german", "japanese"
  • game["attackers"] = "axis";
  • game["defenders"] = "allies";
    • Change to what role you want each team to play.
  • game["allies_soldiertype"] = "german";
  • game["axis_soldiertype"] = "german";
    • This sets the clothing for each team.
      • "german" or "pacific"

Combining With Your Map

1: Make sure your file is properly saved and updated in "\raw\maps\mp\mp_yourmapname.gsc".

2: Open the CoDWaW Compile Tools application and go to the "Level Compiling" tab.

3: Build your Fast File then click on "Update Zone File".

4: Look for "rawfile,maps/mp/mp_yourmapname.gsc" on the right. If its missing then create the entry.

5: Rebuild your Fast File and test the map.


Sources: Treyarch's Wiki