PDA

View Full Version : [Tutorial]Campaign: Flags and Spawns



Mana_SG
11-13-2006, 08:38 PM
Hello everyone, this shall be the 1st mapping tutorial that will explain how exactly Capture Points and Spawns work in Dark Messiah.

Before we start we need to know this:
A "CapturePoint" is married to a certain amount of "info_player_teamspawn"s a "CapturePoint" whitout atleast one "info_player_teamspawn" would cause all sorts of troubles such as people being unable to spawn when all other working "CapturePoint"s were taken.

As noted above the Flag entity is called "CapturePoint" and the player spawn (deathmatch, team deathmatch, crusade, etc) is called "info_player_teamspawn".

So here we go with the long version of the tutorial:
First of all open up hammer and make a new map (if you don't know how to do that, then this tutorial won't be of much use just yet)

Then go to the Toolbar and choose the Entity Tool:
http://is1337.net/flag-tut/toolbar.PNG

To make a Flag go over to the right side toolbar and choose "CapturePoint" under objects.
http://is1337.net/flag-tut/toolbar-right.PNG

Once selected click on the 3d view (or the 2d views) where you want the flag to be. Once clicked you should see something like this:
http://is1337.net/flag-tut/capture-flag.png

Once you have your flag made double click it (or press ALT+Enter while it's selected) and you should see a it's properties pop up. In there look for "Name". Under "Name" you put the Name of the flag. For this one since the flag was in the undead spawn I called the flag "undead_spawn"
http://is1337.net/flag-tut/flag-name.png

Once you have named your flag go and click on "Team Number" under keyvalues. And since I called the flag "undead_spawn" I shall choose the Undead Team under "Team Number"
http://is1337.net/flag-tut/flag-team.png

Now repeated that step until you have enough flags on your map. Once you have your flags placed you should add some spawn so that people could actually play your map.

Click on the entity tool again and go over to the right side menu and choose "info_player_teamspawn" under objects:
http://is1337.net/flag-tut/team-spawn.png

The spawns can be placed wherever and do not have to be anywhere near the flag but if it's a campaign map you are making it would be a good idea to place the spawns near the flag.

Once you have selected "info_player_teamspawn" click in the 3d or 2d views where you want the spawns to apear (remember these will be the places where people will spawn so space them apart).

Once you have placed your team spawns select them all (the ones that you want to assign to a certain flag) using the Selection Tool (Red Arrow) and press ALT+Enter to open up the properties for them. For this I am doing the undead spawns.

First of all I will click on "Team Number" under Keyvalues and choose the Undead Team. After that I shall click on "Capture Point" and type in "undead_spawn" because that is how I named the flag where the spawns are located in.
http://is1337.net/flag-tut/team-spawn-edit.png

(The Capture Point name whit in "info_player_teamspawn" must match the name of the "CapturePoint" where the flag is located or else they won't work)

Here is the map used in this tutorial:
http://is1337.net/flag-tut/capt_point_tut.vmf
It's does work but it's rather simple and not optimized.

I will be posting more tutorials this week for people interesting in making their own maps http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif

Mana_SG
11-13-2006, 08:38 PM
Hello everyone, this shall be the 1st mapping tutorial that will explain how exactly Capture Points and Spawns work in Dark Messiah.

Before we start we need to know this:
A "CapturePoint" is married to a certain amount of "info_player_teamspawn"s a "CapturePoint" whitout atleast one "info_player_teamspawn" would cause all sorts of troubles such as people being unable to spawn when all other working "CapturePoint"s were taken.

As noted above the Flag entity is called "CapturePoint" and the player spawn (deathmatch, team deathmatch, crusade, etc) is called "info_player_teamspawn".

So here we go with the long version of the tutorial:
First of all open up hammer and make a new map (if you don't know how to do that, then this tutorial won't be of much use just yet)

Then go to the Toolbar and choose the Entity Tool:
http://is1337.net/flag-tut/toolbar.PNG

To make a Flag go over to the right side toolbar and choose "CapturePoint" under objects.
http://is1337.net/flag-tut/toolbar-right.PNG

Once selected click on the 3d view (or the 2d views) where you want the flag to be. Once clicked you should see something like this:
http://is1337.net/flag-tut/capture-flag.png

Once you have your flag made double click it (or press ALT+Enter while it's selected) and you should see a it's properties pop up. In there look for "Name". Under "Name" you put the Name of the flag. For this one since the flag was in the undead spawn I called the flag "undead_spawn"
http://is1337.net/flag-tut/flag-name.png

Once you have named your flag go and click on "Team Number" under keyvalues. And since I called the flag "undead_spawn" I shall choose the Undead Team under "Team Number"
http://is1337.net/flag-tut/flag-team.png

Now repeated that step until you have enough flags on your map. Once you have your flags placed you should add some spawn so that people could actually play your map.

Click on the entity tool again and go over to the right side menu and choose "info_player_teamspawn" under objects:
http://is1337.net/flag-tut/team-spawn.png

The spawns can be placed wherever and do not have to be anywhere near the flag but if it's a campaign map you are making it would be a good idea to place the spawns near the flag.

Once you have selected "info_player_teamspawn" click in the 3d or 2d views where you want the spawns to apear (remember these will be the places where people will spawn so space them apart).

Once you have placed your team spawns select them all (the ones that you want to assign to a certain flag) using the Selection Tool (Red Arrow) and press ALT+Enter to open up the properties for them. For this I am doing the undead spawns.

First of all I will click on "Team Number" under Keyvalues and choose the Undead Team. After that I shall click on "Capture Point" and type in "undead_spawn" because that is how I named the flag where the spawns are located in.
http://is1337.net/flag-tut/team-spawn-edit.png

(The Capture Point name whit in "info_player_teamspawn" must match the name of the "CapturePoint" where the flag is located or else they won't work)

Here is the map used in this tutorial:
http://is1337.net/flag-tut/capt_point_tut.vmf
It's does work but it's rather simple and not optimized.

I will be posting more tutorials this week for people interesting in making their own maps http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif

antiy4ho0
11-13-2006, 10:19 PM
Thanks for posting this Mana! I look forward to more of them. I think a setting up Hammer for DMoMM would be a good one as well, because it is a bit trickier than other games.

chaofan
11-14-2006, 12:08 AM
Yeah, I'm having a lot of trouble setting up hammer for dark messiah.

chaofan
11-15-2006, 06:17 PM
Seriously, what are your hammer settings?

Mana_SG
11-15-2006, 07:18 PM
My gameconfig.txt won't really help you at all. But here it is (atleast one of them):
<BLOCKQUOTE class="ip-ubbcode-quote"><div class="ip-ubbcode-quote-title">quote:</div><div class="ip-ubbcode-quote-content"> "Configs"
{
"Games"
{
"MightAndMagic"
{
"GameDir" "I:\MP\MightAndMagic"
"hammer"
{
"GameData0" "I:\MP\MightAndMagic\cfg\base.fgd"
"GameData1" "I:\MP\MightAndMagic\cfg\MightAndMagic.fgd"
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"GameExe" "I:\MP\MightAndMagic\mm.exe"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "info_player_deathmatch"
"BSP" "I:\MP\MightAndMagic\bin\vbsp.exe"
"Vis" "I:\MP\MightAndMagic\bin\vvis.exe"
"Light" "I:\MP\MightAndMagic\bin\vrad.exe"
"GameExeDir" "I:\MP\MightAndMagic"
"MapDir" "I:\MP\MightAndMagic\mapsrc"
"BSPDir" "I:\MP\MightAndMagic\maps"
"CordonTexture" "tools\toolsskybox"
"MaterialExcludeCount" "0"
}
}
}
"SDKVersion" "2"
}
</div></BLOCKQUOTE>