Call of Duty 5: Large Maps Tips: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
CODWAW brings a new function which is similar to COD2 CullFog except no fog is required to get this one to work.<br>
CODWAW brings a new function which is similar to COD2 CullFog except no fog is required to get this one to work.<br>


The Stock map Outskirts uses it, the function '''SetCullDist(DIST);''' where DIST is the distance in Units at which the Models will not be drawn.<br>
The Stock map Outskirts uses it, the function <font color="yellow">'''SetCullDist(DIST);'''</font> where DIST is the distance in Units at which the Models will not be drawn.<br>


The function is called simply place in your Map GSC like shown in the example below (last line):<br><br>
The function is called simply place in your Map GSC like shown in the example below (last line):<br><br>

Revision as of 21:40, 25 July 2010

Tips for better FPS in Large Multiplayer Maps

CODWAW brings a new function which is similar to COD2 CullFog except no fog is required to get this one to work.

The Stock map Outskirts uses it, the function SetCullDist(DIST); where DIST is the distance in Units at which the Models will not be drawn.

The function is called simply place in your Map GSC like shown in the example below (last line):

main()
{
	maps\mp\_load::main();
	maps\mp\_compass::setupMiniMap("compass_map_mp_somelevel");

	game["allies"] = "marines";
	game["axis"] = "german";
	game["attackers"] = "allies";
	game["defenders"] = "axis";
	game["allies_soldiertype"] = "pacific";
	game["axis_soldiertype"] = "german";

	setdvar("compassmaxrange","2100");

	setVolFog(600, 1000, 100, -200, 0.74903, 0.74903, 0.74903, 0);

	// enable new player spawning system
	maps\mp\gametypes\_spawning::level_use_unified_spawning(true);

        SetCullDist(5000);
}


--Zeroy. 18:40, 25 July 2010 (UTC)