Skip to content

surf_stagezone

Chris Charlesworth edited this page Jun 11, 2020 · 3 revisions

surf_stagezone

surf_stagezone is a brush entity that controls the entire stage / checkpoint system. This entity fundamentally has two underlying responsibilities: signalling when a player has completed a stage and where it believes a player should be sent to if they wish to change stage via a gamemode function.

Key / Value pairs

  • stageid - What stage we are considered to be.
  • spawnpos - A hammer-compatible vector that suggests where we should place the player if they wish to go to that stage.

Key information

  • At least one surf_stagezone must always exist.
  • The final stage zone is always considered to be the final surf_splitzone
    • Any logic for handling the player "completing the map" should be handled here.

Best Practises

  • A stage spawnpos is always considered to be on the launch platform, with the actual brush representing the stage being on the landing platform.
    • In the case of a linear map, spawnpos would be at the start and the actual brush would be located at the end of the map, on the completion platform.
Clone this wiki locally