A BZFlag plug-in for adding zones to a map where flags are disallowed, meaning players who enter these zones with specific flags will have it removed.
- BZFS 2.4.4+
This plug-in follows my standard instructions for compiling plug-ins.
This plugin loads without any configuration options.
-loadplugin neutralZones
This plug-in introduces the NEUTRALZONE map object which supports the traditional position, size, and rotation attributes for rectangular objects and position, height, and radius for cylindrical objects.
neutralzone
position 0 0 0
size 5 5 5
rotation 0
# Repeatable custom properties
team <0 | 1 | 2 | 3 | 4 | 5 | 6>
flag <* | abbv>
end
The team property can be used multiple times in an object allowing you to specify this zone to affect more than one team. For example, a neutral zone that affects both the red team and the green team, your zone would look like the following,
neutralzone
position 0 0 0
size 5 5 5
rotation 0
team 1
team 2
flag SW
flag GM
flag L
end
For a neutral zone to affect all teams, simply omit the team property from the zone. For example, disallowing the Genocide flag from a specific area of the map for all teams would look like the following,
neutralzone
position 0 0 0
size 5 5 5
rotation 0
flag G
end
In order to disallow all flags from being carried, the special * directive can be used to affect all flags.
neutralzone
position 0 0 0
size 5 5 5
rotation 0
flag *
end
Determining when a player has entered the given zone carries some latency and will not result in the player's flag being removed immediately. These may be a 1-2 second delay before the flag removal happens depending on player/server lag.