Giter Club home page Giter Club logo

flagcontrol's Introduction

Flag Control

Minimum BZFlag Version License

When there are less players than the number determined by _allFlagsAllowedAt then players holding a flag listed in the config file will drop it after one kill.

Requirements

This plug-in follows standard instructions for compiling plug-ins.

Usage

Loading the plug-in

-loadplugin flagControl,controlledFlags.conf

Configuration File

A file with a list of flags that will be "controlled". Can be followed with a comma or space separated number. The number defines how many kills you can get before the flag is dropped. If no number is set it defaults to 1, if the number is set to 0 the flag will be dropped as soon as it is grabbed. Each flag must be on a new line, e.g.

ST
L 1
GM,2
CL,0

Custom BZDB Variables

These custom BZDB variables can be configured with -set in configuration files and may be changed at any time in-game by using the /set command.

-set <name> <value>
Name Type Default Description
_allFlagsAllowedAt int 4 Number of players needed for plugin to no longer take effect.
_oneKillOnlyAt int 0 Number of players where all flags are limited to one kill.

Custom Slash Commands

Command Permission Description
/flagcontrol on, off, list, add, remove FLAGCONTROL on enables the plugin, off disables, list lists all flags presently affected, add a flag to the list, remove a flag from the list

License and Credits

LICENSE

Thanks to zeL who contributed with the making of this.

flagcontrol's People

Contributors

righthandson avatar

Stargazers

 avatar Noah Dunbar avatar

Watchers

 avatar  avatar

flagcontrol's Issues

Broadcast message about flag control (not) in effect misses some players

I have not set out to reproduce this but I have noticed recently that sometimes Flag Control is turned off and then on (by # of players joining/parting) and I get one of the notices (Flag Control is now off....) but not the other. I am a user already joined to the server and participating. I will better reproduce and better document.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.