SiN Episodes - Tutorial - Arena Mode Map

From Valve Developer Community
Jump to: navigation, search
SiN Episodes Level Creation


Skill Level

This tutorial expects you to have this amount of knowledge within the topic to follow along smoothly.

Novice Familiar Competent Proficient Expert



Enemy Spawning

Start off by creating a Hammer entity.png point entity with class npc_druglab_grunt_pistol somewhere in your level and give it a name like 'arena_grunt_01', this npc will be used as a template together with the game's dynamic difficulty system to spawn enemies throughout the map when the player is not looking and to upgrade them depending on the player's performance. Set the Squad Name the npc is in to 'arena_squad_01' which will make all of the spawned enemies in the same squad so that they can share information regarding the player's location and the seriousness of the situation. Also check the flags 'Fade Corpse' and 'Template NPC', so there is not laying bodies everywhere and the entity can be used as a template.


Next make another entity of class npc_template_maker with the following keyvalues and check the flags 'Infinite Children' and 'Don't Spawn While Visible':

Property Name Value
Name arena_template_01
Start Disabled Yes
Frequency -1
Name of Template NPC arena_grunt_01
Name of Destination Group arena_spawn_01


Player Finder

Finish off


Note:This tutorial assumes that you are familiar with the creation of maps using the Source SDK.
  1. Start the SiN Episodes SDK.
  2. Launch Hammer.
  3. Create a new map.
  4. Create a room to hold your template(s). This will be called the template room in this document.
  5. In the template room, create an npc_druglab_grunt_pistol entity.
    1. Name the entity. (We'll assume that you have named it arenaGrunt01.)
    2. Set the "Fade Corpse" flag.
    3. Set the "Template NPC" flag.
  6. In the template room, create an npc_template_maker entity.
    1. Name the entity. (We'll assume that you have named it arenaTemplate01.)
    2. Set "Start Disabled" to Yes.
    3. Set "Frequency" to -1.
    4. Set "Name of Template NPC" to arenaGrunt01.
    5. Set "Name of Destination Group" to arenaSpawn01.
    6. Set the "Infinite Children" flag.
  7. In the template room, create a logic_auto entity.
    1. Create a new OnMapSpawn output pointing to the Enable endpoint on arenaTemplate01. Have a 5 second delay on it.
  8. Create the remainder of your map.
  9. When you are ready to place spawn points for the grunts, create several info_npc_spawn_destination entities around the level.
    1. Name all of them arenaSpawn01, or whatever you named them in step 6.5.
  10. Create an info_player_start entity somewhere in your level.
  11. Add whichever weapons you want the player to start to the level, and position them inside the bounding box for the info_player_start entity. Remember to set their ammo counts.
  12. If you want your map to run the default 15 minutes, go on to the next step.
    1. To change the time limit, go to the Map menu, and select Map Properties...".
    2. Select the "Arena Mode Time Limit" property, and set it to the number of seconds that you want the level to last. (15 minutes is 900 seconds.)
  13. Save your map with a name starting with arena_. If your map name does not start with arena_, it will not appear in the map list.
  14. Compile and run the map.
  • Make sure that you compiled your map.
    • If you set it up so that the game runs automatically after every compile, exit out to the main menu.
    • If it doesn’t run automatically, compile then run Sin Episodes.
  • Once there, click on Play Arena, where you select maps, your custom map should now appear in the list as long as you named it correctly (ex, arena_xxxx).