This article relates to the game "Team Fortress 2". Click here for more information.
This article's documentation is for anything that uses the Source engine. Click here for more information.

Team Fortress 2 engine branch

From Valve Developer Community
(Redirected from TF2 branch)
Jump to navigation Jump to search

English (en)Русский (ru)中文 (zh)Translate (Translate)
Broom icon.png
This article or section needs to be updated to include current information regarding the subject because:
All first party Source 2013 Multiplayer games run on this branch now. Update all other pages to mention the Team Fortress 2 branch instead of Source 2013 Multiplayer, and add new features to this page (if there are any). If something says (only in Source 2013 Multiplayer), say (in all games since Source 2013 Multiplayer) instead.
Remember to check for any notes left by the tagger at this article's talk page.

The Team Fortress 2 branch Team Fortress 2 branch (also referred as Source 2013 Multiplayer v2, Source 2025 Multiplayer, or TF2 branch for short) is a newer version of Source 2013 Multiplayer Source 2013 Multiplayer, developed from updates to Team Fortress 2 Team Fortress 2 (since 2022). Half-Life 2: Deathmatch was also upgraded to this branch after the 20th Anniversary update. All remaining Source 2013 Multiplayer games (Counter-Strike: Source, Half-Life Deathmatch: Source, Day of Defeat: Source and Source SDK Base 2013 - Multiplayer SDK Base 2013 - MP) were upgraded to this branch on 18 February 2025.

Currently, this branch, along with Source 2013 Singleplayer, is the latest Source engine branch available, and actively being maintained.

The branch also adds new features, including ones from Half-Life 2 20th Anniversary Update (bicubic lightmaps), Left 4 Dead engine branch (radial fog) and other features from later branches.

Some Source mods and tools that are built on Source 2013 Multiplayer (sometimes known as Source 2013 Multiplayer Legacy) will not work on this branch, due to semi-incompatible Wikipedia icon ABIs. Nonetheless, the TF2 branch is still considered a sub-branch of Source 2013 Source 2013, alongside Source 2013 Singleplayer Source 2013 Singleplayer and the supplanted Source 2013 Multiplayer Source 2013 Multiplayer.

Features

Added

New since the Source 2013 Multiplayer Source 2013 Multiplayer branch is:

Wikipedia icon 64-bit binaries (also in Garry's Mod)
Allows the game to access more than 4GB RAM and have slightly better performance. Additionally, tools such as Hammer, map compilers (VBSP, VVIS, VRAD), etc. also have 64-bit binaries.
Note.pngNote:64-bit is not available on Mac.
Icon-Bug.pngBug:The 64-bit versions of some tools, such as StudioMDL, are broken.
VScript (also in Mapbase No More Room in Hell Left 4 Dead engine branch Portal 2 engine branch CS:GO engine branch)
A powerful new scripting system primarily using Squirrel Squirrel. Third-party games may have different VScript implementation.
WebM video playback (also in Hunt Down the Freeman Garry's Mod Counter-Strike: Global Offensive Strata Source)
Used for game intros or cutscenes. WebM allows smaller file sizes without significant degradation in video quality. In the Team Fortress 2 engine branch, it is only used in 64-bit mode, as 32-bit still use Bink & plays Bink video.
Note.pngNote:Not used in games like Half-Life 2: Deathmatch, Counter-Strike: Source, Day of Defeat: Source and Half-Life Deathmatch: Source, which continues to use Bink, but only when launched with 32-bit executable. 64-bit versions of the game fails to play Valve intro because it uses WebM, and valve.webm isn't present in hl2\media folder.
Vulkan renderer (also in Half-Life 2 Portal Left 4 Dead 2 Portal 2 engine branch CS:GO engine branch Strata Source Xengine)
A low-overhead, cross-platform graphics API, successor to OpenGL.
First introduced in 2022 with the release of Steam Deck update for Half-Life 2 and Portal, and later added to Team Fortress 2 during the 64-bit update. Portal with RTX also uses Vulkan as part of the RTX Remix runtime. Using DXVK, a library used to translate Direct3D calls to Vulkan. This is disabled by default, but can be enabled in supported games by passing -vulkan into the game's launch options.
VGUI High Wikipedia icon DPI support (also in Half-Life 2 20th)
VGUI elements are now properly scalable on higher resolutions such as 4K (3840x2160).
Steam Networking (also in Synergy)
Allows self-hosting using Steam Datagram Relay, meaning users can easily create joinable servers without port forwarding.
Icon-Important.pngImportant:Enabled by default. If you are currently working on mapping for games that have Steam Networking enabled, make sure sv_use_steam_networking is set to 0 (disabled), to prevent users from easily joining your server.
Wikipedia icon Bicubic lightmap filtering (also in Half-Life 2 20th Half-Life: Source)
Introduced in 2024, bicubic filtering is used on lightmaps when r_lightmap_bicubic is enabled, smoothing out aliasing caused by the lower resolution of lightmaps. It can be also enabled by setting the Shader detail to "Very High".
Radial fog (also in Mapbase Left 4 Dead engine branch Alien Swarm engine branch Portal 2 engine branch CS:GO engine branch Strata Source Half-Life 2 20th)
Unlike planar-based fog, radial fog does not strengthen or weaken the apparent amount of fog in a particular spot when you rotate the camera.
You can either use radial fog or planar-based fog by changing env_fog_controller "Use Radial Fog (fogRadial)" KeyValues.
Texture streaming (also in CS:GO engine branchTitanfall branch)
Reduces system RAM and graphics card VRAM usage by streaming textures as needed instead of loading them all when loading the map.
Swaying trees (also in Garry's Mod Mapbase Left 4 Dead engine branch Alien Swarm engine branch Portal 2 engine branch CS:GO engine branch Strata Source Xengine)
Introduced in Team Fortress 2's Jungle Inferno update. A material parameter that gives the effect of trees swaying in the wind.
Updated shader compilation tools
Now by default SCell555's shader compiler is included in the SDK.

Changed / Fixes

Removed options to disable/enable Direct3D 9Ex (Windows Aero DirectX extensions) in Advanced Video Options.
While the option has been removed, likely because it does nothing when trying to disable it through in-game options/settings (possibly broken since Windows 10), disabling D3D9Ex through -nod3d9ex still works.
Numerous security fixes
See GitHub post.
Fixed building cubemaps
Building cubemaps on this branch no longer requires deleting pre-built (blank) cubemap, and building cubemaps doesn't need cheats to be enabled. However, you still needs to follow some of the steps correctly to make sure you built cubemaps on both LDR & HDR rendering and having consistent exposure/brightness on HDR cubemaps.

Removed

Removal of Miles Sound System middleware
Uses open-source minimp3 minimp3 for MP3 playback instead. Files related to Miles Sound System will remain on the game's 🖿bin folder (contains 32-bit DLLs), but left unused.

Known issues / Report bugs

To report bugs or find existing issues on this engine branch, see Source games and Source SDK 2013 repo GitHub issues page in order to prevent duplicate or outdated bug reports at the wiki.

Availability

Source code (game, tools) for this branch is available on GitHub.

Valve

Note.pngNote:Mods built on Source 2013 Multiplayer Source SDK Base 2013 - Multiplayer prior to the upgrade to the Team Fortress 2 branch may not work properly if the mod is launched with updated SDK Base 2013 MP, so if you want to use legacy version of Source SDK Base 2013 - Multiplayer to play older mods (or use older tools), follow the instructions:
  1. Open Steam, go to Source SDK 2013 Multiplayer, right click Properties
  2. A window will open. Go to "Betas", select previous2021 beta branch.
  3. Steam will automatically re-download the files. Once it's done, run Source SDK Base 2013 MP as normal, or use it's tools.