This wiki is archived and useful information is being migrated to the main bzflag.org website
Base
A base is a BZW map object that defines structure very similar to a standard box, but has with the specific properties of being a base for capture the flag style game play modes. In standard CTF games, each team (excluding rogues) will be allocated one or more bases to which they must take an opposing team's flag to to capture.
Contents
Code
The code for a box object is as follows
base position 10 20 30 rotation 45 size 1 2 3 color 1 oncap SW end |
Valid parameters for a base are
- position; defines the center of the box in X and Y and the bottom of the box in Z.
- rotation; defines a rotation around the Z axis for the box, in degrees.
- size; defines the distance from the center to the side of the box in X and Y, and the total height of the box in Z. A Z size of 0 creates a thin base with no thickness or walls.
- color; defines the team that that base is allocated to: 1 = red, 2 = green, 3 = blue, 4 = purple.
- oncap; if specified, indicates that a world weapon with the specified FlagCode is to be automatically generated and fired whenever a flag is captured at this base.ShockWave is a very common FlagCode to use here.
Bases do not support Material, Texture Matrix, or Physics Drivers.
Appearance
The vertical walls of a base a colored striped texture, unlike the standard box. The top and bottom of the base are textured with a colored base logo. The color if the textures corresponds to the team that owns the base, for easy recognition. A base with a Z size of 0 will not have any vertical walls.
Editor Support
The base object is supported by all known editors.
History
The base is one of the original objects supported by BZFlag and has been a mainstay of CTF maps since the very beginning. Bases added automatically for random CTF maps by the BZFS server.