Perfect Dark Source: Creating a Map: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (→‎Setting up Hammer: Unicodifying, replaced: [[Image: → [[File: (6))
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{stub}}
<noinclude>{{lang|Perfect Dark Source: Creating a Map}}
== Setting up Hammer ==
Follow the pictures to set up hammer for creating Perfect Dark: Source maps. Each picture has its description.
 
 
[[File:Perfect_dark_source_hammer1.png|thumb|left|200px|Step 1]]
[[File:Perfect_dark_source_hammer2.png|thumb|left|200px|Step 2]]
[[File:Perfect_dark_source_hammer3.png|thumb|left|200px|Step 3]]
{{clr}}
[[File:Perfect_dark_source_hammer4.png|thumb|left|200px|Step 4]]
[[File:Perfect_dark_source_hammer5.png|thumb|left|200px|Step 5]]
[[File:Perfect_dark_source_hammer6.png|thumb|left|200px|Step 6]]
{{clr}}
 
 
 
== Entities ==
 
[[Perfect Dark Source: info player start|info_player_start]] : The player spawn entity.
 
[[Perfect Dark Source: item weaponset|item_weaponset]] : The weapon spawn entity.
 
[[Perfect Dark Source: trigger zone|trigger_zone]] : Brush entity used on King of the Hill game mode.
 


== Setting up Hammer ==
== Map Description ==
* Load Hammer and open the Options dialog.
 
* Add ''pdark.fgd''
Maps may use a text file including the description to be shown in the team menu when players join a server. The file has a keyvalue structure that allows for translations of the description to different languages.
* Set build options as this.


Place a text file next to the map and name it the same as the map's name. ie. For the map ''villa.bsp'', create ''villa.txt''. The following is an example of the contents of ''villa.txt''.


The player spawn entity used by the mod is [[info_player_start]]. The weapon spawn entity is [[Perfect Dark Source: item weaponset|item_weaponset]].
"MapDescriptions"
{
"villa"
{
"english"
{
"description" "Villa, a (...) meditation.\n\nDue to the (...) ever? \n\nVilla, (...) players."
}
"french"
{
"description" "Villa, (...) repos.\n\nDu (...) indéfiniement?\nVilla, (...) adversaires."
}
"spanish"
{
"description" "La (...) siempre? \nVilla, (...) jugadores."
}
"german"
{
"description" "Villa (...) entstand.\n\nDurch (...) können?\n\nVilla, (...) teilnehmen."
}
"portuguese"
{
"description" "Villa, (...) sempre? Villa, (...) jogadores."
}
}
}


Edit accordingly for your custom map. The description entry may include the scape character ''\n'' for new lines, or new entries for other languages.


== See Also ==
== See also ==
[[Perfect Dark Source: Weapon Sets|Weapon Sets]]
[[Perfect Dark Source: Weapon Sets|Weapon Sets]]


{{otherlang:en}} {{otherlang:en:fr|Perfect_Dark_Source:_Creating_a_Map:fr}}
[[Category:Perfect Dark Source]]
[[Category:Perfect Dark Source]]

Latest revision as of 18:24, 7 January 2024

English (en)Deutsch (de)Español (es)Français (fr)Translate (Translate)

Setting up Hammer

Follow the pictures to set up hammer for creating Perfect Dark: Source maps. Each picture has its description.


Step 1
Step 2
Step 3
Step 4
Step 5
Step 6


Entities

info_player_start : The player spawn entity.

item_weaponset : The weapon spawn entity.

trigger_zone : Brush entity used on King of the Hill game mode.


Map Description

Maps may use a text file including the description to be shown in the team menu when players join a server. The file has a keyvalue structure that allows for translations of the description to different languages.

Place a text file next to the map and name it the same as the map's name. ie. For the map villa.bsp, create villa.txt. The following is an example of the contents of villa.txt.

"MapDescriptions"
{
	"villa"
	{
		"english"
		{
			"description"	"Villa, a (...) meditation.\n\nDue to the (...) ever? \n\nVilla, (...) players."
		}
		"french"
		{
			"description"	"Villa, (...) repos.\n\nDu (...) indéfiniement?\nVilla, (...) adversaires."
		}
		"spanish"
		{
			"description"	"La (...) siempre? \nVilla, (...) jugadores."		
		}
		"german"
		{
			"description"	"Villa (...) entstand.\n\nDurch (...) können?\n\nVilla, (...) teilnehmen."
		}
		"portuguese"
		{
			"description"	"Villa, (...) sempre? Villa, (...) jogadores."
		}
	}
}

Edit accordingly for your custom map. The description entry may include the scape character \n for new lines, or new entries for other languages.

See also

Weapon Sets