gmtemplate is a bare-bones Garry's Mod gamemode template designed to cut down on the hassle of creating new gamemodes.
- An empty
content/
directory tree, to make organizing new content as easy as possible - A recursive file includer, which eliminates the trouble of
include
andAddCSLuaFile
- Convenient code snippets within
gamemode/extras/
directory- Game taskbar icon will flash once the game has fully loaded, if the window does not have focus.
- Clone repository as a new gamemode directory
- Rename changeme.txt and modify file to match your gamemode
- Update gamemode details in shared.lua
- Create new lua files anywhere within the
gamemode/
subdirectory with the appropriate naming prefix- (Lua files will be automatically included in the appropriate context on next map refresh)
- Files with the cl_* prefix will be included on clients.
- Files with the sh_* prefix will be included on clients and the server.
- Files with the sv_* prefix will be included on the server.
- Files with no matching prefix will not be included.
New directories created within the gamemode/
subdirectory will automatically be searched in the automatic inclusion.