NWI Mapping Gameplay Setup Guide
This article will detail the requirements of NWI's game logic, including the spawn zone and control point system for gamemodes that utilize them via map script. The process of creating these is the same for both Insurgency and Day of Infamy. This article will assume you already have knowledge mapping for the Source Engine.
Spawn zones consist of 2 entities, a ins_spawnzone brush entity and one or more ins_spawnpoint point entities. ins_spawnpoints must be placed at least 8 units away from surfaces nearby or they won't be seen by the spawn zone as valid spawn points. You can also set the
World Model keyvalue to a model that represents the team this spawn point is for or set it to
models/editor/playerstart.mdl (note that this has no effect in-game, its just for in-editor representation).
The ins_spawnzone must be created so that it encompasses the ins_spawnpoints. Spawn points within the ins_spawnzone's brush volume will be used for spawning when the spawn zone is active. It will need to be textured with a trigger tool texture (recommending
tools/toolstrigger_spawnzone). You will need to give the spawn zone a name so that it may be used in the map script.
In short, a valid spawn zone that can be utilized by the game must pass the checklist below.
|ins_spawnpoint(s) are at least 8 units away from surfaces nearby|
|The ins_spawnzone brush encompasses the ins_spawnpoint(s) you want it to utilize|
|Both the ins_spawnpoint(s) and the ins_spawnzone have matching |
|The ins_spawnzone is named|
Control points consist of 2 entities, a trigger_capture_zone brush entity or destructible point entity and a point_controlpoint point entity. point_controlpoint requires very little setup, all you need to do is name it and optionally give it a print name using the
Print Name keyvalue (print names show up when a player captures the control point).
You then either create a destructible entity or a capture zone that associates with the point_controlpoint.
Create a trigger_capture_zone brush entity, and then set the
Associated Control Point keyvalue to the name of the control point you created.
Multiple entities provided by Insurgency and Day of Infamy can be created to associate with the control point. You will need to make one of the following point entities:
- obj_weapon_cache (missing model in )
- obj_destructible_vehicle (missing model in )
In Hammer, all destructible entities are missing keyvalues. Most importantly some are missing the
Associated Control Point keyvalue. If it's missing you will need to add the keyvalue manually by turning SmartEdit off and adding a key named
controlpoint with the value being the name of the control point you want associated with the destructible.
In short, a valid control point that can be utilized by the game must pass the checklist below.
|The point_controlpoint must have a unique name|
|The trigger_capture_zone or destructible entity must have it's |
ins_viewpoints should be scatter around for spectators. At least one should be in the map or otherwise the game will spam a error message about it.