This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Base"

From BZFlagWiki
Jump to: navigation, search
(Appearance)
m (Category:Map_making to Category:Map Making and formating)
Line 3: Line 3:
 
==Code==
 
==Code==
 
The code for a box object is as follows
 
The code for a box object is as follows
 
+
{|
 +
|
 
  base
 
  base
 
   position 10 20 30
 
   position 10 20 30
Line 10: Line 11:
 
   color 1
 
   color 1
 
  end
 
  end
 
+
|}
 
Valid parameters for a base are
 
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.
 
*'''position'''; defines the center of the box in X and Y and the bottom of the box in Z.
Line 29: Line 30:
 
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.
 
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.
  
[[Category:Map_making]]
+
[[Category:Map Making]]
 
[[Category:Map_Objects]]
 
[[Category:Map_Objects]]

Revision as of 20:01, 11 March 2007

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.

Code

The code for a box object is as follows

base
 position 10 20 30
 rotation 45
 size 1 2 3
 color 1
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.

Bases do not support Material, Texture Matrix, or Physics Drivers.

Appearance

Base 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.