Skip to content
Oxters Wyzgowski edited this page Oct 26, 2019 · 4 revisions

Overview

This project has only been tested with files from Counter Strike: Global Offensive.

Supported Types

  • BSP
  • VPK
  • MDL
  • VVD
  • VTX
  • VMT
  • VTF

Basic Usage

Loading a map

BSPMap.vpkLoc = @"C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo";
BSPMap map = new BSPMap(@"C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\maps\ar_shoots.bsp");
map.ParseFile();
map.MakeGameObject();

Extra Options

BSPMap.combineMeshesWithSameTextures = true;
BSPMap.excludeMapFaces = true;
BSPMap.excludeModels = true;
SourceTexture.averageTextures = true;
SourceTexture.maxTextureSize = 256;

Disposing a map

map.Unload();

Make sure to call this function when you are done with a map to release its memory.

Clone this wiki locally