Extract physics collision data from Counter-Strike 2 maps (both official and workshop maps).
This tool finds your CS2 maps and extracts their physics collision meshes in multiple formats from world_physics.vmdl_c files. Choose between .tri (triangle mesh), .vphys (physics data), or both formats. Useful for Visibility checks on external cheats.
- Windows PC
- Steam with Counter-Strike 2 installed
- .NET Framework/.NET Core
- Download or clone this repository
- Install required packages:
dotnet add package ValveResourceFormat dotnet add package SteamDatabase.ValvePak
- Build and run:
dotnet build dotnet run
- Run the program
- Choose what to process:
- All maps (official + workshop)
- Only official maps
- Only workshop maps
- Choose output format:
.trifiles (triangle mesh data).vphysfiles (physics collision data)- Both formats
- Physics data saves to output folder as
{mapname}.triand/or{mapname}.vphys
- Automatically finds your Steam installation
- Scans CS2 map files (
.vpkformat) - Extracts physics collision meshes from
world_physics.vmdl_cfiles - Saves collision data in your chosen format(s)
.tri- Triangle mesh format with vertex coordinates.vphys- Physics collision data in text format- Choose one or both formats during extraction
MIT License - you can use this code however you want.
This tool only reads your locally installed CS2 files. It doesn't modify anything or connect to the internet.