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
m (Category:Map_making to Category:Map Making and formating)
m (add oncap)
Line 10: Line 10:
 
   size 1 2 3
 
   size 1 2 3
 
   color 1
 
   color 1
 +
  oncap SW
 
  end
 
  end
 
|}
 
|}
Line 17: Line 18:
 
*'''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.
 
*'''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.
 
*'''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 fired whenever a flag is caped at this base.[[ShockWave]] is a very common [[FlagCode]] to use here.
  
 
Bases do not support [[Material]], [[Texture Matrix]], or [[Physics Drivers]].
 
Bases do not support [[Material]], [[Texture Matrix]], or [[Physics Drivers]].

Revision as of 02:01, 15 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
 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 fired whenever a flag is caped at this base.ShockWave is a very common FlagCode to use here.

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.