Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allejo/shotlimitzone
A BZFlag plugin that allows you add shot limits to flags based on the location where they are picked up.
https://github.com/allejo/shotlimitzone
bzflag bzflag-plugin
Last synced: 5 days ago
JSON representation
A BZFlag plugin that allows you add shot limits to flags based on the location where they are picked up.
- Host: GitHub
- URL: https://github.com/allejo/shotlimitzone
- Owner: allejo
- License: mit
- Created: 2013-12-22T01:52:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-08-21T05:27:22.000Z (about 4 years ago)
- Last Synced: 2024-10-12T19:47:35.298Z (about 1 month ago)
- Topics: bzflag, bzflag-plugin
- Language: C++
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Shot Limit Zone
[![GitHub release](https://img.shields.io/github/release/allejo/shotLimitZone.svg)](https://github.com/allejo/shotLimitZone/releases/latest)
![Minimum BZFlag Version](https://img.shields.io/badge/BZFlag-v2.4.4+-blue.svg)
[![License](https://img.shields.io/github/license/allejo/shotLimitZone.svg)](LICENSE.md)A BZFlag plugin that allows you add shot limits to flag based on the location of the flag. The difference between this plugin and the default BZFS `-sl` option is that by using the option, you are limiting all of the flags of the same type where with this plugin you will only limit the shot limit of a flag if grabbed from a specific area in the map. This plugin will not overwrite the `-sl` option.
## Requirements
- BZFlag 2.4.4+
This plug-in follows [my standard instructions for compiling plug-ins](https://github.com/allejo/docs.allejo.io/wiki/BZFlag-Plug-in-Distribution).
## Usage
### Loading the plug-in
This plug-in does not take any configuration options at load time.
```
-loadplugin shotLimitZone
```### Custom Map Objects
This plug-in introduces the `SHOTLIMITZONE` map object which supports the traditional `position`, `size`, and `rotation` attributes for rectangular objects and `position`, `height`, and `radius` for cylindrical objects.
**Box**
```
shotLimitZone
position 0 0 0
size 10 10 5
rotation 0
shotLimit 10
flag SW
end
```**Cylinder**
```
shotLimitZone
position 0 0 0
radius 15
height 10
shotLimit 10
flag SW
end
```#### Notes
- This custom zone will not actually spawn a SW flag, you will need to add a regular zone object to do so.
- The name ('shotLimitZone') of the object is case-insensitive so camel case is not required.## License
[MIT](LICENSE.md)