GoldSrc
< Zh
金源引擎
Screenshot in-game of 半衰期, using the GoldSrc Engine.
Developer(s)
Release date(s)
1998年11月19日
Platform(s)
Written in
SDK
License
Proprietary (source code available for non-commercial purposes)
Links
GitHub page
(source code & bug reports)
(source code & bug reports)
Successor
金源 (也被称为GoldSource, 以前简称为半衰期引擎) 是由Valve于1996年创造的3D电子游戏引擎。 它是90年代末、00年代初许多著名游戏的引擎, 如半衰期, 军团要塞 经典, 反恐精英, 与 胜利之日。金源引擎是雷神之锤引擎的魔改版本,运行在C++上(带有一些C)。金源引擎及其关卡编辑器Valve Hammer Editor由 Valve 发布供公众使用,使其成为无数社区mod的开发工具。
金源引擎被它的继任者替代,即2004年所发布的 起源,目前它是Valve游戏mod的首选引擎。 尽管金源引擎已经过了巅峰时期,但许多玩家和一些开发者仍热衷于开发模组与游戏。
至 2023 年,Valve 正在积极更新和维护该引擎,最近随着半衰期的 25 周年更新,增加了引擎限制并修复了许多错误。
![](/w/images/thumb/f/fc/Half-life_shadows.jpeg/300px-Half-life_shadows.jpeg)
一张半衰期:蓝色行动的截图, 展示了基本的阴影
![](/w/images/thumb/4/43/Cry_of_Fear_Lake.png/300px-Cry_of_Fear_Lake.png)
一张恐惧之泣的截图, 它运行在一个大量修改的金源上
![](/w/images/thumb/a/a4/Counter-Strike_Condition_Zero_-_Screenshot_3.jpg/300px-Counter-Strike_Condition_Zero_-_Screenshot_3.jpg)
一张反恐精英:零点行动, 使用了更高清的玩家模型的贴图。
![](/w/images/thumb/9/92/Counter-Strike_%28Xbox%29_-_Screenshot_3.png/300px-Counter-Strike_%28Xbox%29_-_Screenshot_3.png)
Xbox上反恐精英的一张截图
Contents
特性
待完善: 在这里展开或添加链接
- 集群AI - NPC 可以聚集在,使用Houndeyes来看见对方
- 骨骼动画 - 与《雷神之锤》中的顶点动画相比,骨骼动画更加稳定
- 更多边数 - 比《雷神之锤》更加精细的模型,允许更多的边数
- 高清模型
- 脚本序列 - 广泛用于讲述《半条命》的故事
- 玩家机器人 (仅存在于
之中),
- A3D/EAX 硬件加速音频 - 改进了 DSP 音效(例如消除回声的嗡嗡声),并添加了环绕声支持(自 2013 年 SteamPipe 更新以来已删除)。
自2003年来的Steam更新
自2013年来的SteamPipe更新
自25周年纪念来的更新
- 减少引擎限制 - Valve 减少了引擎限制,允许更多实体和详细地图。
- func_vehicle 实体 ,来自
反恐精英
- 原生
Steam Deck 支持
- Steam Input 支持 - 添加了 Steam Input支持,使游戏能够支持更多控制器。
渲染器
金源有两种渲染器: 软件加速 和 OpenGL (之前有三个,因为Direct3D 7 支持在 2013 年 SteamPipe 更新中被删除),这两个渲染器都有差异。
- 彩色照明 - 雷神之锤只有单色照明
- 透明纹理 - 地图里可以弄玻璃了
- 透明水体
- 水波纹
- 水波
- 动态光圈模拟 - a自动调整屏幕亮度。类似于起源的HDR 。 (仅存在于
之中)
- 精细的纹理 (仅存在于
之中)
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
自2013年来的SteamPipe更新
- FBO 渲染器 - 一种新的渲染游戏方法,它允许 MSAA 与 GoldSrc 引擎一起使用。这也允许游戏在无边框窗口中以全屏方式运行,并且与显示器不同的纵横比(例如,16:9 上的 4:3)不会被拉伸以填充黑条。
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
-nofbo
禁用新的 FBO 渲染器,注意,这也将禁用 MSAA。- MSAA 抗锯齿 - 金源现在原生支持抗锯齿,特别是 MSAA 4X,这在大多数现代硬件上默认启用。这将减少锯齿状边缘/阶梯对几何体的影响。
自25周年纪念来的更新
- 着色器支持 (OpenGL)
- 借助着色器支持,它还修复了在 OpenGL 下无法正常工作的过亮照明问题。
- 模板阴影
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![雷神之锤](/w/images/thumb/3/3b/Quake1-16px.png/15px-Quake1-16px.png)
r_shadows 1
版本和分支
待完善: 其中大多数不是分支;分支同时存在,而不是完全取代旧的代码库。.
待完善: SDK 2.1、2.2 和 2.3 何时发布?
Year | Version | Company | Features | Base | Notes |
---|---|---|---|---|---|
1998 [澄清] | v1.0.x.x/SDK v1 | ![]() |
Per-texture palettes, Coloured lighting | Quake (id Tech 2) | v30 .bsp, v10 .mdl |
1998[澄清] | v1.1.x.x/SDK v2.0 | ![]() |
VGUI | v1.0.x.x/SDK v1 | v30 .bsp, v10 .mdl |
2001 (leak)[澄清] | Dreamcast | ![]() |
Compressed model textures | v1.1.x.x/SDK v2.0 | v30 .bsp, v11 .mdl |
2002 | 007 Nightfire | ![]() |
Direct3D 8 renderer MSAA support |
v1.1.x.x/SDK v2.0 (For PC) Modified id Tech 3 (For consoles)[citation needed] |
v42 .bsp, v14 .mdl |
2003 | PlayStation 2 | ![]() |
LOD models | Dreamcast | v40 .bs2, v10 .dol |
2003 | Xbox | ![]() |
Improved lighting | Counter-Strike: Condition Zero engine branch earlier version | v30 .bsp, v11 .mdl, .sxwad format instead of wad |
2003 | Counter-Strike Neo engine branch | Namco | Heavily modified OpenGL Renderer Native linux support |
v1.1.x.x/SDK v2.0![]() Counter-Strike: Condition Zero engine branch (ver.2) |
v30 .bsp, v10 .mdl [证实] |
2003 | Steam | ![]() |
VGUI2 Widescreen resolution support |
v1.1.x.x/SDK v2.0 | v30 .bsp, v10 .mdl |
2004 | Counter-Strike: Condition Zero engine branch | ![]() ![]() ![]() ![]() |
Player Bots Detail textures |
v1.1.x.x/SDK v2.0[证实] | v30 .bsp, v10 .mdl [证实] |
2007[澄清] | ![]() |
Paranoia Team | New OpenGL Renderer | Counter-Strike: Condition Zero engine branch | v30 .bsp, v10 .mdl [证实] |
2013 | ![]() |
Team Psykskallar | Improved paranoia's OpenGL Renderer | ![]() |
v30 .bsp, v10 .mdl [证实] |
2013 | 2013 SteamPipe (SDK 2.4) | ![]() |
Linux and Mac support FBO renderer MSAA (4X) support Removed support for EAX/A3D surround sound and Direct3D 7 renderer |
Steam | v30 .bsp, v10 .mdl |
2016 | ![]() |
Sven Co-op Team | AngelScript FMOD audio (restores EAX/surround sound features) Extended engine limits |
2013 SteamPipe | v30 .bsp, v10 .mdl |
2023 | 25th anniversary, aka HL25 (SDK 2.5) | ![]() |
Increased engine limit Steam Input Shaders Widescreen (Hor+) FOV |
2013 SteamPipe | v30 .bsp, v10 .mdl |
半条命 SDK
主条目: 半条命 SDK
截止至2013年8月, 它可用于 Steam的 "工具" 选项下。 随之而来的是
Hammer 3.4, 3ds Max 提供了许多切割和制作NPC以及玩家和武器模型的方法, 用于将纹理打包到 WAD 中的工具,有关将语音聊天等联机功能实现到Mod 中的详细文档。
最新版本的 SDK 的完整源代码可以在 Valve的Github页面找到
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Hammer 3.x](/w/images/thumb/d/da/Icon-Hammer_3.x.png/16px-Icon-Hammer_3.x.png)
![Sven Co-op](/w/images/thumb/1/13/Sven-16px.png/16px-Sven-16px.png)
使用金源的游戏 ![View](/w/images/thumb/b/b1/Icon-visibility-filled.png/12px-Icon-visibility-filled.png)
![Discuss](/w/images/thumb/d/d7/Icon-chat.png/12px-Icon-chat.png)
![Edit template](/w/images/thumb/b/b0/Icon-edit-filled.png/12px-Icon-edit-filled.png)
![Click to "Purge" this page to reload this template. Use this if the template has been recently edited. Purge](/w/images/thumb/4/44/Icon-deblur.png/12px-Icon-deblur.png)
Year | Title | Developer(s) | Publisher(s) | Platforms | Notes |
---|---|---|---|---|---|
1998 |
![]() |
Valve | Sierra Entertainment (retail) Valve (digital) |
个人电脑: Windows, Mac, Linux Console(s): PlayStation 2 |
First official game to use the GoldSrc engine. The ![]() The game received a major update in November 17, 2023, for it's 25th anniversary, which fixes tons of bugs, added new maps and content and increased engine limits. |
1999 |
![]() |
Gearbox Software, Valve | 个人电脑: Windows, Mac, Linux | First official expansion for ![]() |
|
![]() |
Valve | 个人电脑: Windows, Mac, Linux | Remake of Quake mod, ![]() |
||
![]() |
Sven Co-op Team | Sven Co-op Team | 个人电脑: Windows, Mac, Linux | GoldSrc was later forked into Svengine since version 5.0, which was slightly different than GoldSrc, and has support for Hor+ FOV, better audio via FMOD, and so on..., aswell as increased engine limitations. Sven Co-op is a co-op mod that allows you to play ![]() |
|
2000 |
![]() |
Valve | Sierra Entertainment (retail) Valve (digital) |
个人电脑: Windows, Mac, Linux | Originally was an 半衰期 mod, it was later available to purchase seperately from 半衰期. The game later become popular when it was released and kickstart several tournaments involving 反恐精英 games. |
![]() |
Rewolf Entertainment | Sierra Entertainment | 个人电脑: Windows | ||
![]() |
Valve | Valve | 个人电脑: Windows, Mac, Linux | ||
2001 |
![]() |
个人电脑: Windows, Mac, Linux | |||
![]() |
Gearbox Software, Valve | Sierra Entertainment (retail) Valve (digital) |
个人电脑: Windows, Mac, Linux | Second official expansion to the original 半衰期, aswell was set hours earlier and during the event of 半衰期. Players play as Barney Carlhoun, who later returned in 半衰期2 series. | |
![]() |
Maverick Developments | Maverick Developments | 个人电脑: Windows | ||
![]() |
Gearbox Software | Sierra Entertainment | 个人电脑: Windows (unofficial) Console(s): PlayStation 2 |
Half-Life last expansion, exclusive to PlayStation 2. An unofficial port of Half-Life Decay for PC developed by Hoaxer, was released in 2008. | |
2002 |
![]() |
Unknown Worlds | Unknown Worlds | 个人电脑: Windows | |
![]() |
Eurcom, Gearbox Software (PC) | Electronic Arts | 个人电脑: Windows, Mac (PowerPC) Console(s): PlayStation 2, Original Xbox, GameCube, Game Boy Advance |
Highly modified engine with MSAA support (up to 8X) and Direct3D 8 (DX8). Consoles version uses entirely different engines, and have more content than PC version. Also only GoldSrc game to be ported to PowerPC-based Mac (半衰期 port to PPC Mac was cancelled). |
|
2003 |
![]() |
Valve | Activision, Valve (digital) | 个人电脑: Windows, Mac, Linux | |
![]() |
Ritual Entertainment, Turtle Rock Studios | Xbox Game Studios (formerly Microsoft Studios) | 个人电脑: Windows Consoles: Original Xbox |
||
![]() |
Namco | Namco | 个人电脑 (Arcade) | ||
2004 |
![]() ![]() |
Valve, Ritual Entertainment, Gearbox Software, Turtle Rock Studios | Sierra Entertainment, Valve (digital) | 个人电脑: Windows, Mac, Linux | Last Valve game to be developed on GoldSrc engine (CS Online and Nexon Studio does not count). |
2007 |
![]() |
Paranoia Team | Paranoia Team | 个人电脑: Windows, Mac, Linux | Features modified OpenGL renderer for better graphics, downside of this is that the custom OpenGL renderer file "opengl32.dll " may get deleted by the game when launching any GoldSrc game outside Paranoia or prevents the player from playing multiplayer (due to ![]() |
2008 |
![]() |
Valve, Nexon | Nexon | 个人电脑: Windows | Free to play game based off ![]() This version doesn't require Steam, and is only available in Asia. The console commands has been restricted to only some commands to prevent cheating and other exploits. |
2013 |
![]() ![]() |
Team Psykskallar | Team Psykskallar | 个人电脑: Windows, Mac, Linux | Runs on older, but highly modified version of GoldSrc (based off ![]() |
2014 |
![]() |
Valve, Nexon | Nexon | 个人电脑: Windows | Last officially licensed game to use the GoldSrc engine. Worldwide (America, Europe) version of ![]() |
2015 |
Headcrab Frenzy! | Crystice Softworks | 个人电脑: Windows, Linux | ||
2020 |
Halfquake Trilogy | Philipp Lehner | 个人电脑: Windows | ||
Digital Paintball Redux | DPB Redux Dev Team | 个人电脑: Windows | |||
![]() |
Cobalt-57 | 个人电脑: Windows | |||
2023 |
![]() |
MMod Team | Gunship_Mark_II | 个人电脑: Windows, Linux | |
Year | Title | Developer(s) | Publisher(s) | Platforms | Notes |
有关更多游戏以及有关使用金源引擎的游戏的文章,请参阅 金源游戏目录
规格
Limits | 金源 Pre-25th | 金源 Post-25th | ![]() |
![]() |
---|---|---|---|---|
Maximum number of dynamic sound channels | 8 | 32 | 64 | N/A |
Default max number of server entities (MAX_EDICTS ) |
900 | 1200 | 600 - 8192 | 8192 |
Absolute max number of server entities (via liblist.gam edits) | 2048 | 2048 | 8192 | N/A |
Maximum number of temporary entities (MAX_TEMPENTS ) |
500 | N/A | 300 - 2048 | N/A |
Maximum number of particles (MAX_PARTICLES ) |
4096 | N/A | 1024 - 131072 | N/A |
Maximum number of beams (MAX_BEAMS ) |
64 | N/A | 64 - 512 | 256 |
Maximum number of visible entities in the package (MAX_VISIBLE_PACKET ) |
256 | 1024 | 2048 | N/A |
Maximum number of pre-cacheable models and sprites (MAX_MODELS ) |
512 | N/A | 1024 (4096 in FWGS) | 8192 |
Maximum number of pre-cached sounds (MAX_SOUNDS ) |
512 | N/A | 2048 | 4096 |
Maximum number of entries to read sentences made up of sentences (MAX_SENTENCES ) |
1536 | 2048 | 4096 | N/A |
Maximum number of user messages (MAX_USER_MESSAGES ) |
128 | N/A | 191 | N/A |
Max number of loaded textures (MAX_TEXTURES ) |
2048 | N/A | 4096 (8192 in FWGS) | N/A |
Max number of GL textures (MAX_GLTEXTURES ) |
4800 | 10000 | 4096 (8192 in FWGS) | N/A |
Number of messages titles.txt (MAX_MESSAGES ) |
1024 | N/A | 2048 | N/A |
Maximum size of indexed textures | 512х512 | 512x512 | 8192х8192 | N/A |
Maximum size of full color textures | 512х512 | 512x512 | 8192х8192 | N/A |
Maximum number of models on the map (MAX_MAP_MODELS ) |
256 | N/A | 768 (1024 in FWGS) | 4096 |
Maximum number of map leafs (MAX_MAP_LEAFS ) |
8192 | N/A | 32767 | 65536 |
Maximum number of entities per packet (MAX_PACKET_ENTITIES ) |
256 | 1024 | 256 | 512 |
Maximum number of spans (software renderer geometry limit) | 3000 | 6000 | N/A | N/A |
Maximum number of surfaces (software renderer geometry limit) | 2000 | 4000 | N/A | N/A |
Maximum number of edges (software renderer geometry limit) | 7200 | 14400 | N/A | N/A |
Bugs and Limitations
![Icon-broom.png](/w/images/thumb/7/71/Icon-broom.png/32px-Icon-broom.png)
This article or section needs to be updated to include current information regarding the subject because:
Half-Life 25th Anniversary Update fixes a lot and breaks other stuff.
Remember to check for any notes left by the tagger at this article's talk page.Use GitHub in order to prevent duplicate or outdated bug reports at the wiki.
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
![半衰期](/w/images/thumb/a/a0/Hl_icon.png/16px-Hl_icon.png)
Other games like
![军团要塞 经典](/w/images/thumb/c/cf/Tfc-16px.png/16px-Tfc-16px.png)
![反恐精英](/w/images/thumb/8/8f/Cs_icon.png/16px-Cs_icon.png)
![Paranoia](/w/images/thumb/a/ae/Paranoia-16px.png/16px-Paranoia-16px.png)
![恐惧之泣](/w/images/thumb/9/9d/Cof_icon.png/16px-Cof_icon.png)
![PlacementTip.png](/w/images/thumb/c/cc/PlacementTip.png/14px-PlacementTip.png)
steam_legacy
on 半衰期 (and in some games such as 反恐精英) by going to Half-Life > Properties... > Betas > select steam_legacy
. Once those games has been fixed, you can opt out by set the beta branch to "None".![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
gl_overbright 1
) is broken due to an OpenGL extension used for multi-texturing, which is required for the detail textures used by ![反恐精英:零点行动](/w/images/thumb/9/9e/Cscz_icon.png/16px-Cscz_icon.png)
![胜利之日](/w/images/thumb/c/cf/Dod_icon.png/16px-Dod_icon.png)
This make the color less saturated and lighting much less brighter, as well as introduce chromatic aberration on brightly lit lightmaps.
The issue was fixed in the 25th anniversary update, which deprecated the
gl_overbright 1
in favor of gl_use_shaders 1
. However, there are more issues that was yet to be fixed with the new overbright lighting.This issue can be also found on GLQuake , but for different reasons.
![PlacementTip.png](/w/images/thumb/c/cc/PlacementTip.png/14px-PlacementTip.png)
![半衰期](/w/images/thumb/a/a0/Hl_icon.png/16px-Hl_icon.png)
steam_legacy
branch) and most standalone mods, see ![Pcgw icon.png](/w/images/thumb/b/b1/Pcgw_icon.png/16px-Pcgw_icon.png)
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
![Windows](/w/images/thumb/5/5a/Windows-7-Icon.png/16px-Windows-7-Icon.png)
![PlacementTip.png](/w/images/thumb/c/cc/PlacementTip.png/14px-PlacementTip.png)
- Set the game (
hl.exe
) to "High Priority" in Task Manager. Disable multitexturing.
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
![PlacementTip.png](/w/images/thumb/c/cc/PlacementTip.png/14px-PlacementTip.png)
![Pcgw icon.png](/w/images/thumb/b/b1/Pcgw_icon.png/16px-Pcgw_icon.png)
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
![半衰期](/w/images/thumb/a/a0/Hl_icon.png/16px-Hl_icon.png)
![反恐精英](/w/images/thumb/8/8f/Cs_icon.png/16px-Cs_icon.png)
![反恐精英:零点行动](/w/images/thumb/9/9e/Cscz_icon.png/16px-Cscz_icon.png)
![零点行动 关卡模式](/w/images/thumb/a/a5/Czds_icon.png/16px-Czds_icon.png)
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
hl.dll
and client.dll
) on the mod folder itself was renamed. But keep in mind that this method may breaks some mods and cause it to crash, or made several new additions such as new weapons, new NPCs, etc... from the mod stops working.![Icon-Important.png](/w/images/thumb/5/5c/Icon-Important.png/10px-Icon-Important.png)
花絮
- "金源" 的名称来自 Source 引擎。 半衰期发售的前几个月, 半条命引擎分为两个分支: Src 与 GoldSrc. 金源分支是代码库的gold master 版本, 并用于游戏的最终发布。Src 分支, comparatively, would be continually iterated upon, adding and changing features for use in the sequel , with the term "Source Engine" eventually being picked up by marketing.[1]
参见
- For information about converting GoldSrc content to the Source engine, see Porting GoldSrc content (maps, models, etc.) to Source
- GoldSrc on Wikipedia
- GoldSrc SDK (Half-Life SDK) Documentation
- GoldSrc SteamPipe Directories
外部链接
- Source code + GitHub Issues - bug reports and the GoldSrc source code can be found here.
参考文献
- User talk:Erik Johnson (Revision as of 12:53, 1 September 2005)
- Half-Life 25th Anniversary Update
- Relation between Paranoia & COF