Tutorial: Creating S&D Bombs

Tutorials for Call of Duty 4 mapping

Moderator: Core Staff

Post Reply
User avatar
Marshall
CJ Spammer!
CJ Spammer!
Posts: 820
Joined: December 10th, 2005, 11:28 am
Location: UK

Tutorial: Creating S&D Bombs

Post by Marshall » January 21st, 2008, 7:01 am

Ok, so you have your map.. it works with Deathmatch and now you want to add Search and Destroy.

--

Right click on the grid, and select Misc > prefabs.

Close the file browser that appears.

With the red box (undefined entity), press spacebar twice to paste another two.

Now you have 3 seperate undefined enities,

Select one of the red boxes..

..Double click key N.

--

Creating the Case Bomb ~ bomb which you pickup.

Give the first box the following keys and values.

Code: Select all

Key: model
Value: prefabs/mp/sd_bomb.map
Now place this entity / prefab, close to the attackers spawn area.

(attackers are defined by the spawn points)

--

Creating Bomb zone A ~ area where you plant bomb A.

Give the second box the following keys and values.

Code: Select all

Key: model
Value: prefabs/mp/sd_bombzone_nuke_a.map
Now place this entity / prefab, where you want bomb A to be planted.

--

Creating Bomb zone B ~ area where you plant bomb B.

Give the second box the following keys and values.

Code: Select all

Key: model
Value: prefabs/mp/sd_bombzone_nuke_b.map
Now place this entity / prefab, where you want bomb B to be planted.

--

Create your GSC file!

If you haven't already got a .GSC file, here's where you make one.

Go to your Desktop.

Create a text file and open it up..

..copy and paste the following:

Code: Select all

main()
{
	maps\mp\_load::main();
	
	maps\mp\_compass::setupMiniMap("compass_map_mp_shipment");
	
	//setExpFog(500, 3500, .5, 0.5, 0.45, 0);
	ambientPlay("ambient_middleeast_ext");
	//VisionSetNaked( "mp_vacant" );
	
	game["allies"] = "sas";
	game["axis"] = "russian";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "desert";
	game["axis_soldiertype"] = "desert";

	setdvar( "r_specularcolorscale", "1" );

	setdvar("r_glowbloomintensity0",".1");
	setdvar("r_glowbloomintensity1",".1");
	setdvar("r_glowskybleedintensity0",".1");
	setdvar("compassmaxrange","1500");




}
NOTE:

If you want to switch the race / team, which attack or defend..

..swap the information around in this part of the .GSC file:

Code: Select all

	
game["allies"] = "sas";
game["axis"] = "russian";
game["attackers"] = "axis";
game["defenders"] = "allies";
Once the file is complete, save as mp_maptest.gsc. (or whatever your map is called)

Place that file in the following folder:

Code: Select all

Call of Duty 4 Root Folder/raw/maps/mp/
Remember to repackage your Fastfiles everytime you change or add the .GSC file.

YouBeenBaked
CJ Newbie
CJ Newbie
Posts: 67
Joined: February 11th, 2009, 11:53 pm
Location: Canada
Contact:

Re: Tutorial: Creating S&D Bombs

Post by YouBeenBaked » June 27th, 2009, 2:48 am

Wow, nice tut!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests