Skip to content

Creating a mod

shishkabob27 edited this page Oct 13, 2022 · 9 revisions

Using s&box’s addons, custom campaigns and gamemodes can be created for Half-Life: Source 2.

Game Info

Game info is located in code/GameInfo.cs

HL:S2’s default GameInfo:

public class GameInfo
{
	public static string game = "Half-Life";
	public static string startmap = "shishkabob.hls2_c1p0";
	public static string trainmap = "shishkabob.hls2_t0";
}

game used in menus. Ex: Learn how to play <game>..

startmap is the map that loads when selecting New Game.

trainmap is the map that loads when selecting Hazard Course.

Clone this wiki locally