Creating a Wingman Map
Here, you can learn how to modify a competitive map for it, and how all of this works.
|Players per team||5||2|
|Roundtime in minutes||1:55||1:30|
|Freezetime in seconds||15||10|
Officially, the game mode plays as follows:
- Two teams of two people play a match in a competitive environment.
- There is one accessible bombsite.
Adding Wingman support to a Map
Any competitive map can be modified to support Wingman in the same way as Cobblestone, Inferno, Overpass, Vertigo, Nuke and Train. If these maps are launched in Wingman, the spawnpoints and buyzones are shifted if needed and there are blockers that limit the playable area to only one bombsite.
If you are designing your map to only work with Wingman, then you probably don't need this tutorial. This tutorial is for the case that you already have (or are planning to create) a map for one of the Classic game modes that shall also support the Wingman mode.
- A logic_auto
- A logic_script called script.2v2
- Default spawn points for both teams called spawnpoints.standard
- Wingman spawn points for both teams called spawnpoints.2v2
- func_buyzones called buyzone.2v2
- func_brushes called brush.blocker
- func_nav_blockers called navblocker.2v2
Our map must detect the current game mode and check if it is Wingman; To do that, we must use VScripting. Fortunately, Valve has already make a VScript that does that and made it available to any map, so you don't have to write any code.
To run that script, create a logic_script entity in your map, and call it script.2v2.
Entity Scripts property to
Then make a logic_auto and in the Outputs tab, create an output to
OnMapSpawn with the target entity script.2v2, via the output
RunScriptCode, with the parameter of
This will change the entities in our level depending on the game mode we are on. Because of that, all of the following entity names are required to be exactly as listed here, otherwise it will not work.
Spawn points and buyzones
Here, we set the custom spawn points. But before that, select all of the normal spawn points (both CT and T) that are going to be used in the normal Classic mode. Change their names to spawnpoints.standard. The script will deactivate these in Wingman, otherwise enable them.
Now, create at least two spawn points for each team that should be used in Wingman.
In the official Valve maps, they use 4 for each team.
Select them all, name them spawnpoints.2v2 and set
Enable by default? to
If these spawns are not already inside of a buyzone, just create another one for them, select the team and name it buyzone.2v2. Do the same for the other team. The standard buyzone will not be disabled by the script in Wingman, as it is either outside the playable area or unable to affect gameplay.
Blocking the playable area
The game can work as it is now, but you will probably want only one bombsite to be reachable.
The way to do this is by adding physical blockers in every hallway that leads to the other bombsite to block players from going there.
To do that, create some brushes in the places that you don't want the player to go with the tools/toolsclip texture.
Convert them to func_brushes and name them brush.blocker.
Start disabled to
Yes and the script will enable them only in Wingman.
You can even use the cool
tools/wrongway texture on that to signalize to players that they can't go through that invisible wall. It even fades out with distance!
Anyway, if you do everything right, it should be working.
You should use func_nav_blocker entities to stop bots from trying to walk through the blockers in Wingman.
To do this, create brushes with the
Then convert it to a func_nav_blocker entity and name it navblocker.2v2.
The VScript will finally fire
BlockNav to these entities in Wingman or
UnblockNav in all other game modes.
Testing and uploading
When you upload the map to the workshop, be sure to select "Wingman" in the list of game modes so that people can select that when they open the map through the in-game workshop tab. Done!