Profiles

Profiles exist for games featuring alternative implementations of “mainline” bsp lump versions. if you can’t find the game you’re working for in this list, either the game is fully in line with the “mainline” source branch or it’s not currently supported.

valvebsp.profiles.TEAMFORTRESS2 = 'TF2'
valvebsp.profiles.PORTAL2 = 'P2'
valvebsp.profiles.LEFT4DEAD2 = 'L4D2'
valvebsp.profiles.ALIENSWARM = 'AS'
valvebsp.profiles.ZENOCLASH = 'ZC'
valvebsp.profiles.VINDICTUS = 'VIN'
valvebsp.profiles.CONTAGION = 'CON'
valvebsp.profiles.TITANFALL = 'TIT'
valvebsp.profiles.THESHIP = 'SHIP'
valvebsp.profiles.PROFILES = {'ALIENSWARM': 'AS', 'CONTAGION': 'CON', 'LEFT4DEAD2': 'L4D2', 'PORTAL2': 'P2', 'TEAMFORTRESS2': 'TF2', 'THESHIP': 'SHIP', 'TITANFALL': 'TIT', 'VINDICTUS': 'VIN', 'ZENOCLASH': 'ZC'}

dict : Utility dict listing available profiles.

Usage

You are not required to use the profile constants, they exist mostly for reference.

These are Equivalent:

from valvebsp.profiles import PROFILES
bsp = Bsp('map.bsp', profiles['TEAMFORTRESS2'])
from valvebsp.profiles import TEAMFORTRESS2
bsp = Bsp('map.bsp', TEAMFORTRESS2)
bsp = Bsp('map.bsp', 'TF2')