MODSon[line.com] Wiki - Beta 1.0

Call of Duty 4: mapname.gsc

From MODSonline Wiki

Jump to: navigation, search

This is the first script file that is loaded when the map is run by the server. Here is an example taken from mp_backlot:

main()
{
	maps\mp\mp_bloc_fx::main();
	maps\createart\mp_bloc_art::main();
	maps\mp\_load::main();
	
	maps\mp\_compass::setupMiniMap("compass_map_mp_bloc");

	ambientPlay("ambient_middleeast_ext");

	game["allies"] = "sas";
	game["axis"] = "russian";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "woodland";
	game["axis_soldiertype"] = "woodland";

	setdvar( "r_specularcolorscale", "1" );

	setdvar("compassmaxrange","2000");
	
	// raise up planes to avoid them flying through buildings
	level.airstrikeHeightScale = 1.8;
}
Personal tools