VS Code Extensions
G

GoldSrc Mod Tools

by veeanti

VS Code extension for GoldSrc mod... modding. Has support for: .res files, cfg files, liblist.gam, WAD/PAK tools, FGD support, Hammer integration

Downloads

31

Rating

— (0)

Version

1.0.4

Last updated

May 20, 2026

A VS Code extension for GoldSrc mod... modding. Yeah. Providing syntax highlighting and tools for working with game files.

Features

Syntax Highlighting

  • .res files - Resource files for precaching models, sounds, sprites
  • .fgd files - Forge Game Data files for Hammer entity definitions
  • .gam files - Game configuration files (liblist.gam)
  • .cfg files - Configuration files with cvar highlighting

Commands

  • GoldSrc: Create PAK from Directory - Pack a folder into a .pak file
  • GoldSrc: Extract WAD Contents - Extract textures, sounds, and models from .wad files
  • GoldSrc: Pack WAD from Directory - Create a WAD package from a directory
  • GoldSrc: Validate liblist.gam - Check your game configuration for errors
  • GoldSrc: Create New Mod - Generate a basic mod structure with template files
  • GoldSrc: Open Hammer Editor - Launch Hammer level editor (requires HL path config)
  • GoldSrc: Run Current Map - Compile and run the current .map file in-game

Explorer View

The "GoldSrc Pak Explorer" view shows PAK and WAD files in your workspace. Click to expand and see file contents.

Code Snippets

Type precache_ for resource file snippets or entity for FGD entity definitions.

Configuration

Set these in your VS Code settings:

  • goldsrc.halfLifePath - Path to your Half-Life installation (for Hammer integration)
  • goldsrc.gameDirectory - Path to your mod directory

Mod Templates

When creating a new mod, the extension generates:

yourmod/
├── liblist.gam      # Game configuration
├── server.cfg       # Default server config
├── yourmod.res      # Resource precache file
├── dlls/            # DLL output directory
├── models/          # Model files
├── maps/            # Map files
├── sound/           # Sound files
└── sprites/         # Sprite files

Requirements

  • VS Code 1.90.0 or later
  • (Optional) Half-Life installation for Hammer integration
    • Note: this has not been fully tested.

Related extensions