mirror of
https://github.com/mapbase-source/mapbase-game-src.git
synced 2024-12-26 16:05:27 +03:00
116 lines
4.6 KiB
Plaintext
116 lines
4.6 KiB
Plaintext
"GameInfo"
|
|
{
|
|
game "Mapbase - HL2:DM"
|
|
title "HALF+LIFE'"
|
|
title2 "deathmatch"
|
|
|
|
nomodels 0
|
|
nohimodel 1
|
|
nocrosshair 1
|
|
|
|
type multiplayer_only
|
|
supportsvr 0
|
|
|
|
GameData "bin/hl2mp.fgd"
|
|
|
|
// All versions run on the EP2 version of the flashlight by default,
|
|
// but you could use this setting to make it run on the HL2 & EP1 version of the flashlight,
|
|
// which runs on the player's own aux power.
|
|
use_legacy_flashlight 1
|
|
|
|
// Indicates this is an original Mapbase mod and not just a mod using its features.
|
|
mapbase_core 1
|
|
|
|
icon "resource/icon1"
|
|
|
|
FileSystem
|
|
{
|
|
SteamAppId 243750 // This sets the app ID in Steam
|
|
|
|
//
|
|
// Mapbase has a fairly unique file system that needs some explanation.
|
|
// In its rawest form, it is spread out across 2-3 folders:
|
|
//
|
|
// mapbase_shared - Shared Mapbase content, like editor icons, that are not unique to Half-Life 2.
|
|
// mapbase_hl2 - Original HL2 branch of Mapbase.
|
|
// mapbase_episodic - Episodic branch of Mapbase.
|
|
// mapbase_hl2mp - Multiplayer branch of Mapbase.
|
|
//
|
|
// Except mapbase_hl2mp, each folder relies on the previous, meaning mapbase_episodic cannot function
|
|
// without mapbase_hl2 and mapbase_hl2 cannot function without mapbase_shared.
|
|
// mapbase_hl2mp is split like mapbase_episodic is: It relies on mapbase_hl2, but not mapbase_episodic.
|
|
//
|
|
// mapbase_episodic > mapbase_hl2 > mapbase_shared
|
|
// mapbase_hl2mp > mapbase_hl2 > mapbase_shared
|
|
//
|
|
// Each Mapbase folder has its own "content" subfolder contianing VPKs.
|
|
// These are mounted similar to the "custom" folder in which everything is mounted without listing out their names.
|
|
//
|
|
SearchPaths
|
|
{
|
|
// First, mount all user customizations. This will search for VPKs and subfolders
|
|
// and mount them in alphabetical order. The easiest way to distribute a mod is to
|
|
// pack up the custom content into a VPK. To "install" a mod, just drop it in this
|
|
// folder.
|
|
//
|
|
// Note that this folder is scanned only when the game is booted.
|
|
game+mod+addon |gameinfo_path|custom/*
|
|
game+mod+addon hl2/custom/*
|
|
|
|
// Now search loose files. We'll set the directory containing the gameinfo.txt file
|
|
// as the first "mod" search path (after any user customizations). This is also the one
|
|
// that's used when writing to the "mod" path.
|
|
game+mod+mod_write+default_write_path |gameinfo_path|.
|
|
gamebin |gameinfo_path|bin
|
|
|
|
game+mod |gameinfo_path|content/*
|
|
|
|
// Get our shared mapbase files.
|
|
// They should be right next to this mod.
|
|
game+mod |gameinfo_path|../mapbase_hl2
|
|
game+mod |gameinfo_path|../mapbase_hl2/content/*
|
|
game+mod |gameinfo_path|../mapbase_shared/shared_content_v7_0.vpk
|
|
gamebin |gameinfo_path|../mapbase_shared/shared_misc/bin
|
|
|
|
// We search VPK files before ordinary folders, because most files will be found in
|
|
// VPK and we can avoid making thousands of file system calls to attempt to open files
|
|
// in folders where they don't exist. (Searching a VPK is much faster than making an operating
|
|
// system call.)
|
|
game_lv hl2/hl2_lv.vpk
|
|
game+mod hl2mp/hl2mp_english.vpk
|
|
game+mod hl2mp/hl2mp_pak.vpk
|
|
game |all_source_engine_paths|hl2/hl2_english.vpk
|
|
game |all_source_engine_paths|hl2/hl2_pak.vpk
|
|
game |all_source_engine_paths|hl2/hl2_textures.vpk
|
|
game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
|
|
game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
|
|
game |all_source_engine_paths|hl2/hl2_misc.vpk
|
|
platform |all_source_engine_paths|platform/platform_misc.vpk
|
|
|
|
// Add the hl2mp directory as a game search path. This is also where where writes
|
|
// to the "game" path go.
|
|
game+game_write hl2mp
|
|
|
|
// Where the game's binaries are
|
|
gamebin hl2mp/bin
|
|
|
|
// Last, mount in shared HL2 loose files
|
|
game |all_source_engine_paths|hl2
|
|
platform |all_source_engine_paths|platform
|
|
|
|
// Random files downloaded from gameservers go into a seperate directory, so
|
|
// that it's easy to keep those files segregated from the official game files
|
|
// or customizations intentially installed by the user.
|
|
//
|
|
// This directory is searched LAST. If you visit a server and download
|
|
// a custom model, etc, we don't want that file to override the default
|
|
// game file indefinitely (after you have left the server). Servers CAN have
|
|
// custom content that overrides the default game files, it just needs to be
|
|
// packed up in the .bsp file so that it will be mounted as a map search pack.
|
|
// The map search pack is mounted at the top of the search path list,
|
|
// but only while you are connected that server and on that map.
|
|
game+download hl2mp/download
|
|
}
|
|
}
|
|
}
|