Setting default gamemode
From GMod Wiki
Go to: Mapping Entities |
Mapping: Gamemode by default |
Description: | How to set default gamemode in your map. |
Original Author: | Cuel |
Created: | 23rd April 2007 |
This tutorial will show you how to automatically start Garry's Mod Deathmatch gamemode when a map loads in GMod.
First, you will need a working map.
Setting gamemode without garrysmod.fgd
If the garrysmod.fgd is not loaded into hammer, you will not find the entity needed to set gamemode. However, it can be done without the .fgd.
- Place any entity in hammer (Not brushed-based ones)
- Bring up properties by selecting the entity and pressing Alt + Enter, or click Edit -> Properties
- Type info_gamemode into Class (name of the entity) and press apply. (Image 1)
- SmartEdit must turned off
- Click "Add" and add these settings:
Key Value GamemodeName gmdm - Click Apply. GMod will now load Garry's Mod Deathmatch gamemode when the map loads
Setting gamemode with the garrysmod.fgd
Quite easier.
- Select the Entity Tool (shift+e) and select info_gamemode in the Entity list and place the entity in the map.
- Select the entity and bring up properties. (Alt + Enter)
- In the "GameMode Name" box, type "gmdm" without the quotes.
Other Notes
"gmdm" can be replaced by other gamemodes. For example; "LightRP", "sandbox" and so on.