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\...)
 
mNo edit summary
 
(6 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==


*'''maps\mp\mp_yourmapname_fx::main();'''
*<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="blue">'''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="blue">'''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="blue">'''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="blue">'''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="blue">'''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==


'''1: ''' Make sure your file is properly saved and updated in "\raw\maps\mp\mp_yourmapname.gsc".
*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.
*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


'''3: ''' Build your Fast File then click on "Update Zone File".
rawfile,maps/mp/mp_yourmapname.gsc


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


'''5: ''' 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