This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Pyramid: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
New page: A Pyramid is a BZW map structure that defines a polyhedron having a polygonal base and triangular sides with a common vertex in the world. ==Code== The code for a pyramid object is as...
 
Red rider (talk | contribs)
 
(17 intermediate revisions by 8 users not shown)
Line 2: Line 2:


==Code==
==Code==
[[Image:PyraAppearance.png|frame|right|A pyramid with the default blue marble texture]]
The code for a pyramid object is as follows
The code for a pyramid object is as follows
 
{|
|
  pyramid
  pyramid
   position 10 20 30
   position 10 20 30
Line 9: Line 11:
   size 1 2 3
   size 1 2 3
  end
  end
|}


Valid parameters for a pyramid are
Valid parameters for a pyramid are:
*'''position'''; defines the center of the pyramid in X and Y and the bottom of the pyramid in Z.
{|{{Prettytable}}
*'''rotation'''; defines a rotation around the Z axis for the pyramid, in degrees.
|-
*'''size'''; defines the distance from the center to the side of the pyramid in X and Y, and the total height of the pyramid in Z.
| {{Hl3}} |'''Parameter'''
| {{Hl3}} |'''Description'''
|-
| '''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.
|-
| '''matref''' || reference to a predefined [[material]]. (requires [[BZFlag_2.0.9|v2.0.9]]+).
|-
| '''phydrv''' || reference to a predefined [[physics|physics driver]]. (requires [[BZFlag_2.0.9|v2.0.9]]+).
|-
| '''drivethrough''' || lets a player drive into the pyramid without the oscillation overthruster flag.
|-
| '''shootthrough''' || lets a player shoot into the object without the super bullet flag.
|-
| '''ricochet''' || lets shots bounce off it without the ricochet flag; shootthrough takes precedence.
|}


Pyramids do not support [[Material]], [[Texture Matrix]], or [[Physics Drivers]]. The [[MeshPyr]] object replaces the pyramid object and supports these features.
Pyramids do not support the use of [[Material]] or [[Physics Drivers]] before [[BZFlag_2.0.9|v2.0.9]] . The [[meshpyr]] object replaces the pyramid object starting from [[BZFlag 2.0.0]] and supports these features. In [[BZFlag_2.0.9|v2.0.9]] the pyramid will be rendered as a [[meshpyr]], if required by one of the properties.
 
Pyramids (after [[BZFlag_2.0.9|v2.0.9]]) support the argument "bottom matref <yourmaterialgoeshere>". This command will texture only the bottom of the pyramid with the chosen material.


==Appearance==
==Appearance==
Pyramid objects by default have an interesting blue texture on all sides.
The pyramid object has a marble blue texture on all sides by default. This texture is a darker version of the texture for [[WaterLevel|waterLevel]] objects.
 
[[Image:PyraAppearance.png]]


==History==
==History==
The pyramid is one of the original objects supported by BZFlag and has been a mainstay of maps since the very beginning. Pyramids are heavily used by the software when generating random maps. As of 2.0 a new pyramid object was added to support the new 2.0 [[Material]] and [[Physics Drivers]]. This new pyramid is known as the [[MeshPyr]]. The original pyramid definition was not changed, in order to maintain functional compatibility for older maps.
The pyramid is one of the original objects supported by BZFlag and has been a mainstay of maps since the very beginning. Pyramids are heavily used by the software when generating random maps. As of [[BZFlag 2.0.0|v2.0.0]] the [[meshpyr]] object replaced the pyramid to add support for [[Material|Materials]] and [[Physics Drivers]]. The original pyramid definition left unchanged, in order to maintain functional compatibility for older maps.


==Editor Support==
==Editor Support==
The pyramid object is supported by all known editors.
The pyramid object is supported by all known editors.


[[Category:Map_making]]
[[Category:Map Making]]
[[Category:Map_Objects]]
[[Category:Map_Objects]]

Latest revision as of 05:43, 2 November 2025

A Pyramid is a BZW map structure that defines a polyhedron having a polygonal base and triangular sides with a common vertex in the world.

Code

A pyramid with the default blue marble texture

The code for a pyramid object is as follows

pyramid
 position 10 20 30
 rotation 45
 size 1 2 3
end

Valid parameters for a pyramid are:

Parameter Description
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.
matref reference to a predefined material. (requires v2.0.9+).
phydrv reference to a predefined physics driver. (requires v2.0.9+).
drivethrough lets a player drive into the pyramid without the oscillation overthruster flag.
shootthrough lets a player shoot into the object without the super bullet flag.
ricochet lets shots bounce off it without the ricochet flag; shootthrough takes precedence.

Pyramids do not support the use of Material or Physics Drivers before v2.0.9 . The meshpyr object replaces the pyramid object starting from BZFlag 2.0.0 and supports these features. In v2.0.9 the pyramid will be rendered as a meshpyr, if required by one of the properties.

Pyramids (after v2.0.9) support the argument "bottom matref <yourmaterialgoeshere>". This command will texture only the bottom of the pyramid with the chosen material.

Appearance

The pyramid object has a marble blue texture on all sides by default. This texture is a darker version of the texture for waterLevel objects.

History

The pyramid is one of the original objects supported by BZFlag and has been a mainstay of maps since the very beginning. Pyramids are heavily used by the software when generating random maps. As of v2.0.0 the meshpyr object replaced the pyramid to add support for Materials and Physics Drivers. The original pyramid definition left unchanged, in order to maintain functional compatibility for older maps.

Editor Support

The pyramid object is supported by all known editors.