COUNTER-MAP:  Counter-Strike Mapping
Visit us on IRC at gamesnet.net, #countermap
Pic of the Week
Poll
Map Spotlight
Weekly Playtests
Random Map Idea
In the News
About Counter-Map
The Crew
Mapping Forums
Important Links

Submit

Tutorials

Mapster
Nemesis' Utilities
Map Packs
Texture Packs
Mapping Utilities
File Database
EditLife.net
 

 Back to Tutorials Page   Other Tutorials by Lacos 

Resetting Entities at the Start of Every Round (Part 1)
By Lacos  Last changed Mar 13 2001

Usefulness of content:  270 users  
 out of 5
 1.8 out of 5

I assume you already have at least one room done. If not, head on to WaveLength (planethalflife.com/wavelength/levels/) for room creation tutorials. Let's start...

Step 1. Place a func_door (brush based entity) somewhere outside your map. You could use any existing door, but you may redo/delete it by accident at some part.
Give the door the following variables:
Target (target) : reset_manager

Step 2. Place a multi_manager (point entity) somewhere in your map.
Give the door the following variables:
Name (targetname) : reset_manager
[create this value by clicking off "SmartEdit" and pressing "add"] (roundreset) : 1

Step 3. For the entities you want to reset each round, just change their names to roundreset. If you've already given the entities unique names, just add another variable with that unique name to the multi_manager with a value of 1.

[Optional] Step 4. You might want to use this technique to set some lights start on/off at the start of every round. You can do this by using a trigger_relay, and this step explains how to use it.

Step 4.1. Create a trigger_relay (point entity) in your map.
Give the relay the following variables:
      Name (targetname) : turnofflights
      Target (targer) : lightname (change this to the name of your light entity)
      Trigger State (triggerstate) : Off (0)
      
Step 4.2. Add another custom variable to your multi_manager: [create this value by clicking off "SmartEdit" and pressing "add"]
      (turnofflights) : 1
    

NOTE! The value "1" in the custom values for the multi_manager indicates that the entity is triggered 1 second after round start. It could be 0, but resetting entities so fast could cause problems, and sometimes the entities might not be triggered.

 Back to Tutorials Page   Other Tutorials by Lacos 

 Rate this tutorial for us! 
 Poor   1  2  3  4  5  Excellent
 Usefulness of Content  
Get Hammer level editor, the most commonly used editor for CS and HL levels.
- - - - - - - - - - - -

Get Zoner's Half-Life Compile Tools, the premier compiling tools for CS maps.
- - - - - - - - - - - -

Get the "experts" Hammer configuration for CS mappers to utilize advanced custom CS entities.
- - - - - - - - - - - -

An improved CS:S entity definition file, to allow CS:S mappers to use all entities and options.
- - - - - - - - - - - -