Skip to content

(Obsolete) Tool for automatic placename assignment

Notifications You must be signed in to change notification settings

Wukkopi/CSGOAutoPlaces

Repository files navigation

Disclaimer

Since the release of CS2, this tool has become obsolete. For CS2 place names you can create an 'env_cs_place' mesh entity (in similar fashion like this tool allowed for CS:GO) from where you can choose the appropriate place name for the area (https://developer.valvesoftware.com/wiki/Env_cs_place).

CSGOAutoPlaces

Tool for map creators to automatically augment placenames into CS:GO nav-file.

How it works

The tool searches all solids with appropriately named visgroups and finds navmesh areas which match the painting strategy's search criteria; painting them with the attached Place name. Navareas that do not get painted with any placename will be unset.

Configuring Hammer

  1. Open "Run Map..." dialog.
    1. Make sure to enable expert mode
  2. Add new configuration
    1. Click Edit
    2. Click New
    3. Enter name for the new configuration. For example [AutoPlaces]
  3. Set up newly created configuration
    1. Click New
    2. Click Cmds
      1. Choose Executable and navigate to the executable of CSGOAutoPlaces
    3. Set parameters to: -vmf=$path/$file.vmf -nav=$gamedir/maps/$file.nav -strategy=raycast
  4. Done

How to use

Before using the tool, there needs to be the nav file generated. Compile the map and run the game to generate the navmap. To regenerate the navmap; execute nav_generate in the developer console.

Placenames are assigned through VisGroups with naming convention of ap_<Place>. For example: ap_CTSpawn. You can find the full list of compatible placenames by typing nav_use_place into the developer console. Or you can look them up from Here

Strategies

Raycast (default)

-strategy=raycast
Goes through all nav areas, and casts a ray downwards from the center of the cell. Closest hit with a solid with placenames attached get's painted.

AABB

-strategy=aabb
Does an AABB collision check between nav areas and solids. As nav areas hover on top of walkable solids, you need to create new hidden solids wherever nav areas are generated. Create placenames by assigning appropriate VisGroup for brushes on the floor. For maximal compatibility, assign only one placename per brush.

About

(Obsolete) Tool for automatic placename assignment

Topics

Resources

Stars

Watchers

Forks

Languages