Map loadouts
From Goldeneye: Source
Intro
This is a tutorial on how to set up the weapon and item spawner's to work with GoldenEye Source.
Weapon sets are loaded into the game on map load from 2 locations. One set called the map_default is load from [map_name].txt in location \maps\loadouts and the other is loaded from weapon_sets_*.txt in the location \scripts\sets.
But for theses to work the server needs to know where abouts in the map the weapon and item spawner's are and this infomation is included into the loadout text document under the same name of the map ([map_name].txt in location \maps\loadouts). Each map is divided up into 6 locations with a weapon and ammo set for theses locations and a special location for armor placements. Each locations can have as many spawner's in it as you can dream of (You can place up to 128 [from memory] item spawn locations per zone so really that is heaps.) and location number 1 normally contains the feature weapon of the weapon set.
Hammer
First thing to do is load up you map in hammer. Every where you want to place an weapon spawn place an entity called ge_weaponspawner and set the uniquename property to reflect where on the map that spawner is (must be different for each one). It is important to remember the exact spelling of it because we will need this later on.
The same goes for ammo and armor spawns. Place ge_itemspawner around the map where you want them to go and set the uniquename property to reflect where on the map that spawner is and as for the weapon spawner must have a different name. Thats it from hammer. Compile the map and its done.
Note: When naming the spawner's it is good to get into a habbit of a naming convention. In GES, the mappers tend to name them in the format [map_name]_[type].[location] so for example a spawner in Facility Bathrooms looks like fac_weapon.bathroom.
Loadouts.txt
This is the easy part.
Open up the directory [steam apps]\sourcemods\gesbeta\maps\loadouts and make a copy of the file template.txt. Rename it to be the same name as your map, character for
character. For example; if your map was called ge_johnyb_super_world.bsp the text document would be called ge_johnyb_super_world.txt.
Open it up and you will see a hole heap of text.
Basically put your weapon spawner's names in to the 6 locations under WeaponSpawnLoc.
It MUST be in quotes and MUST have an empty set of quotes after them. So using the example from above, fac_weapon.bathroom in loc_1 would look like:
"MapData"
{
WeaponSpawnLoc
{
"loc_1"
{
"fac_weapon.bathroom" ""
}
...
Do the same for the ammo spawners into ItemSpawnLoc and armor into armor_full and armor_half under ItemSpawnLoc.
Last thing to do is set up your map default weapons. See the tutorial here for information on how to do that :
Note: If you ever get stuck open up some of the other maps loadouts and have a look how they are done.
Lodle
GE:S Dev
