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

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 4: Line 4:
'''2: ''' Copy the following into the file.
'''2: ''' Copy the following into the file.


<pre>
<syntaxhighlight lang="cpp">
 
main()
main()
{
{
Line 20: Line 21:
game["allies_soldiertype"] = "german";
game["allies_soldiertype"] = "german";
game["axis_soldiertype"] = "german";
game["axis_soldiertype"] = "german";
setdvar( "r_specularcolorscale", "1" );
setdvar("compassmaxrange","2100");
}
}
</pre>
</syntaxhighlight>


'''3: '''Save the file in  
'''3: '''Save the file in  
Line 32: Line 29:


[[Image:Warning.png]] 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.
[[Image:Warning.png]] 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==
==Editing Your Script File==


*<font color="yellow">'''maps\mp\mp_yourmapname_fx::main();'''</font>
*<font color="blue">'''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 [[Call of Duty 5: FXs|FXs]].
*<font color="yellow">'''maps\mp\_load::main();'''</font>
*<font color="blue">'''maps\mp\_load::main();'''</font>
**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>
*<font color="blue">'''maps\mp\_compass::setupMiniMap("compass_map_mp_yourname");'''</font>
**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";'''
*<font color="blue">'''game["allies"] = "marines";'''
*'''game["axis"] = "german";'''</font>
*'''game["axis"] = "german";'''</font>
**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";'''
*<font color="blue">'''game["attackers"] = "axis";'''
*'''game["defenders"] = "allies";'''</font>
*'''game["defenders"] = "allies";'''</font>
**Change to what role you want each team to play.
**Change to what role you want each team to play.
*<font color="yellow">'''game["allies_soldiertype"] = "german";'''
*<font color="blue">'''game["allies_soldiertype"] = "german";'''
*'''game["axis_soldiertype"] = "german";'''</font>
*'''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==
Line 63: Line 60:
*Open the CoDWaW Compile Tools application and go to the "Level Compiling" tab.
*Open the CoDWaW Compile Tools application and go to the "Level Compiling" tab.
*Build your Fast File then click on "Update Zone File".
*Build your Fast File then click on "Update Zone File".
*Look for "rawfile,maps/mp/mp_yourmapname.gsc" on the right.  If its missing then create the entry.
*Look for  
 
rawfile,maps/mp/mp_yourmapname.gsc
 
on the right.  If its missing then create the entry
 
*Rebuild your Fast File and test the map.<br>
*Rebuild your Fast File and test the map.<br>



Latest revision as of 14:53, 16 December 2010

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";
}

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 FXs.
  • 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

  • Make sure your file is properly saved and updated in
\raw\maps\mp\mp_yourmapname.gsc
  • Open the CoDWaW Compile Tools application and go to the "Level Compiling" tab.
  • Build your Fast File then click on "Update Zone File".
  • Look for
rawfile,maps/mp/mp_yourmapname.gsc

on the right. If its missing then create the entry

  • Rebuild your Fast File and test the map.


Sources: Treyarch's Wiki