Game mode settings
Each game asset has a gameModeData object. Its gameType picks the mode, and the rest are that mode’s settings. Each mode has its own page.
| Mode | gameType |
|---|---|
| Domination | dom |
| Team Deathmatch | tdm |
| Free For All | ffa |
| Gun Game | gg |
| Infected | inf |
| Offensive | of |
| Saboteur | def |
| Trouble Town | ttt |
| Bootcamp | boot |
| Campaign | camp |
Run /assets save-all when you’re done setting up a game, and /assets test to see what’s missing.
Shared types
Section titled “Shared types”Position: an object with x, y, z, pitch and yaw, all required.
Box: an object with min and max, each with x, y and z. Boxes are selected in game with the region wand.
Boundary: a list of points that form a wall around the play area, each with x and y. Here y is the world Z coordinate. Boundaries are also drawn with the region wand.
Sequence: a camera sequence for a match intro or outro. It holds shots, loop, showUI, allowSkip, fadeWhenFinished and an optional showPlayer.
The region wand
Section titled “The region wand”The region wand (bf:region_wand) selects boxes and boundaries, and needs creative mode. Middle-click switches between box and boundary mode.
- Box: left-click sets one corner and right-click sets the other.
- Boundary: left-click adds a point.
- Either: shift and left-click clears the selection.
