The cone object is a BZW object that defines a cone in the game arena.
To place an cone into your map file, the following template is suggested:
cone name example_cone divisions 16 flatshading position 0 0 0 rotation 0 size 10 10 10 shift 0 0 0 shear 0 0 0 scale 1 1 1 spin angle nx ny nz phydrv physics_driver_name smoothbounce matref material end
Valid parameters for a cone are:
|name||defines the name of cone, often unused|
|divisions||defines the number of subdivisions in the cone|
|flatshading||defines the use of flat shading, smooth is the default|
|position||defines the position of the cone in X-pos, Y-pos and the height of the cone in Z.|
|rotation||defines a rotation around the Z axis for the cone, in degrees.|
|size||defines the distance from the center to the side of the cone in X and Y, and the total height of the cone in Z.|
|shift||shift the cone (repeatable)|
|scale||defines the scale of the cone in x,y, and z, 1 is the default, lower values make it smaller (repeatable)|
|spin angle||rotate the cone around a vector by angle. ONE of nx, ny, and nz should be 1, the others should be 0. (repeatable)|
|phydrv||reference to a predefined physics driver.|
|smoothbounce||defines that shot bounces use normals|
|matref||reference to a predefined material.|
The cone, by default, has the red brick wall texture on the curved surface, and the grey roof of normal boxes on the bottom. However, using matref, one can change the appearance of the cone.
The cone object has been supported since BZFlag 2.0.0. In previous versions of BZFlag, this object will not work.