flagstay, KOTH, rabbidRabit, and wwzone Updates

General talk about the map making process.
Post Reply
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 809
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

flagstay, KOTH, rabbidRabit, and wwzone Updates

Post by allejo »

Moving forward beginning with 2.4.3+, the map syntax for flagstay, KOTH, rabbidRabit, and wwzone zones have changed; the bbox and cylinder syntax is now deprecated. The existing syntax has been replaced with the familiar syntax all other map objects follow in order to keep things consistent and math is no longer required for the map maker to calculate what the bbox or cylinder syntax is.

All of these plug-ins make use of the new bz_CustomZoneObject class available in the BZFS API, which supports the bbox and cylinder syntax but are now deprecated and will be removed by BZFlag 2.6. If you are a plug-in developer and would like to make use of this class, I've documented the process here.

BBOX Syntax

Code: Select all

koth
 bbox -30 30 -30 30 10 40
 teamplay
 holdtime 60
end
New Syntax

Code: Select all

koth
  position 0 0 30
  size 30 30 30
  teamplay
  holdtime 60
end
Cylinder Syntax

Code: Select all

koth
 cylinder 0 0 20 40 15
 holdtime 100
 teamplay
 autotime 5 25
 nosound
end
New Syntax

Code: Select all

koth
 position 0 0 20
 height 20
 radius 15
 holdtime 100
 teamplay
 autotime 5 25
 nosound
end
Post Reply