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

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
(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 …')
 
mNo edit summary
Line 5: Line 5:
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 '''SetCullDist(DIST);''' 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:<br><br>
The function is called simply place in your Map GSC like shown in the example below (last line):<br><br>


<pre>
<pre>
Line 27: Line 27:
maps\mp\gametypes\_spawning::level_use_unified_spawning(true);
maps\mp\gametypes\_spawning::level_use_unified_spawning(true);


         '''SetCullDist(5000);'''
         SetCullDist(5000);
}
}
</pre>


</pre>
--[[User:Zeroy|Zeroy.]] 18:40, 25 July 2010 (UTC)

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)