限时抢购 50% 全场服务器优惠 最后一天!
距结束还剩: 00D 00H 00M 00S
background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
分类

Half-Life 2 Deathmatch 服务器设置指南


本指南涵盖如何在 Legion Hosting 上设置 Half-Life 2: Deathmatch (HL2DM) 专用服务器、配置启动变量、编辑 server.cfg、设置地图轮换以及连接到您的服务器。HL2DM 以 Half-Life 2 的物理引擎和重力枪为特色,提供快节奏的多人战斗。有关管理员命令和 SourceMod 支持,请参阅 Half-Life 2: Deathmatch 管理员命令

注意: HL2DM 运行在 Source 引擎上。如果您有其他 Source 引擎服务器(CS:GO、TF2、Garry's Mod)的经验,许多设置和命令会很熟悉。

1. 首次启动

  1. 登录 GPanel 并选择您的 HL2DM 服务器。
  2. 转到 Startup 标签页并查看可配置的变量(参见第 2 节)。
  3. 设置您首选的 MAP_NAMESERVER_NAME 和密码。
  4. 返回 Console 标签页并点击 Start
  5. 等待控制台显示 Connection to Steam servers successful.
端口为随机分配,除非您拥有独立 IP。请在 GPanel 的 Network 标签页查看您分配到的端口。参见 如何查找您的服务器 IP 和端口

2. GPanel 启动变量

变量默认值描述
SERVER_NAMEPterodactyl-server在浏览器中显示的服务器名称。
MAP_NAMEdm_lockdown服务器启动时加载的地图。
MAX_PLAYERS20最大同时在线玩家数(1-20)。
SERVER_PASSWORDChangeMe加入密码。设为空则为公开服务器。
RCON_PASSWORDChangeMe远程控制台密码。
TICK_RATE66服务器 tick 速率。更高的值 = 更流畅的游戏体验但更多 CPU 占用。
AUTO_UPDATE1启动时自动更新服务器。
请立即更改两个默认密码。 SERVER_PASSWORDRCON_PASSWORD 默认均为 ChangeMe。如果您想公开访问,请将服务器密码设为空,并始终使用强 RCON 密码。

3. 服务器配置 (server.cfg)

如需详细设置,请编辑 server.cfg。在进行更改之前请停止服务器。

文件位置

hl2mp/cfg/server.cfg

关键设置

设置默认值描述
hostname(来自启动变量)在浏览器中显示的服务器名称。
sv_password(来自启动变量)加入密码。留空为公开。
rcon_password(来自启动变量)远程控制台密码。
mp_timelimit20每张地图的时间限制(分钟)。
mp_fraglimit0结束回合的击杀数限制。0 = 无限制。
mp_friendlyfire0团队模式中的友军伤害。
mp_autoteambalance0TDM 中的自动队伍平衡。
sv_alltalk1跨队语音聊天。
mp_forcerespawn1死亡后强制立即重生。
sv_hl2mp_weapon_respawn_time20武器重生计时器(秒)。
sv_hl2mp_item_respawn_time30物品重生计时器(秒)。

示例 server.cfg

hostname "My Legion HL2DM Server"
sv_password ""
rcon_password "MySecretRcon"
mp_timelimit 20
mp_fraglimit 30
mp_friendlyfire 0
sv_alltalk 1
mp_forcerespawn 1

4. 地图轮换

编辑地图循环文件:

hl2mp/cfg/mapcycle.txt

每行列出一张地图:

dm_lockdown
dm_overwatch
dm_powerhouse
dm_resistance
dm_runoff
dm_steamlab
dm_underpass

可用地图

  • dm_lockdown -- 监狱主题,包含狭窄走廊和开阔庭院。
  • dm_overwatch -- 城市屋顶,具有垂直战斗。
  • dm_powerhouse -- 工业发电厂,包含物理物体。
  • dm_resistance -- 城市街道和建筑。
  • dm_runoff -- 水处理设施。
  • dm_steamlab -- 实验室,包含实验性武器。
  • dm_underpass -- 高速公路地下通道,具有长距离视线。

5. 如何连接

选项 A -- Steam 服务器浏览器

  1. 从 Steam 启动 Half-Life 2: Deathmatch
  2. 进入 Find Servers
  3. Internet 标签页中按名称搜索您的服务器。
  4. 选择并连接。

选项 B -- 控制台连接

  1. 打开控制台(~)。如需要,在 Options > Keyboard > Advanced > Enable Developer Console 中启用。
  2. 输入:
    connect <your-server-ip>:<port>

相关文章

需要帮助?

如果您遇到本指南未涵盖的 HL2DM 服务器问题,请 提交支持工单,并附上您的服务器 IP、问题描述以及 GPanel 控制台中的相关错误信息。


这篇文章对您有帮助吗?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.