Call of Duty 5: Large Maps Tips

From COD Modding & Mapping Wiki
Revision as of 21:40, 25 July 2010 by Zeroy (talk | contribs) (Created page with '{{Note|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.<br> The …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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:

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);'''
}