Skip to content

Viewing Changes In Game

Derpduck edited this page Dec 3, 2021 · 7 revisions

<- (Previous) Design Goals | Understanding Bitwise Operations and Spawnflags (Next) ->

ShowUpdate() function

The map changes from the Last Stand update can be viewed in-game by doing the following:

  1. Launch the game in developer mode via the -dev launch option.
  2. Load map via console: map [map_name] [gamemode]
    • The changes loaded depend on the gamemode, be sure to view the changes in the gamemode relevant to your config or server.
    • Some potential gamemodes are: versus, coop, survival, realism, scavenge, mutation15 (vs survival)
    • Versus based gamemodes require sb_all_bot_game 1 to prevent automatic server shutdown.
  3. Enable sv_cheats.
  4. Type script ShowUpdate() into console.
    • This is case sensitive.
    • Additional changes may also be printed to the console but not highlighted.
  5. Type script HideUpdate() to stop highlighting the changes.

Thanks to this new functionality, it is now possible to easily view Stripper additions in-game:

  1. Find the entities you want to view.
  2. Insert a targetname parameter.
  3. Prefix the targetname with anv_mapfixes_.

This will also highlight Valve's _commentary.txt blockers.

Now those entities will be highlighted with the full functionality of script ShowUpdate(). Any env_physics_blocker and env_player_blocker entities will always be highlighted without this, but will only display as black boxes, changing the targetname will allow the blockers to be viewed with the correct colors.

Brush Entities

To make added brush entities visibile in-game it's targetname will require an additional prefix. The prefix used does not change anything about the entity but does determine how it is displayed: *

Additional Viewing

To view some additional useful things that are usually hidden the following commands can be used:

  • r_drawclipbrushes 2 - Shows the clip brushes compiled into the map. Red = all, pink = survivor only, purple = infected only.
  • showtriggers_toggle - Shows all trigger brushes.
  • r_drawothermodels 2 - Draws all non-static models in wireframe, and shows them through walls.
Clone this wiki locally