This wiki is archived and useful information is being migrated to the main bzflag.org website

Editing Timedctf

Jump to: navigation, search

Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.

The administrator who locked it offered this explanation: Archived wiki

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
Timedctf is a standard [[Plug-ins|plug-in]] that is shipped with the [[BZFlag Source]] code.
+
{{DoDoc|Describe the basics of plug-in development.}}
The timedctf plugin will start a timed capture the flag game in which a team must capture another team's flag in a configurable amount of time.
+
  
=Description=
+
==Description==
* If the time expires before the team captures a flag, all members of the team will be destroyed and the timer will restart for that team.
+
* If the team captures another team's flag before their time expires, their timer is reset and starts counting down again.
+
* All 4 teams have individual timers.
+
  
There are '''warning messages''' sent to individual teams as their time starts to expire:
+
The timedctf plugin will start a timed capture the flag game in which a team must capture another team's flag in a configurable amount of time. If the time expires before the team captures a flag, all members of the team will be destroyed and the timer will restart for that team. If the team captures another team's flag before their time expires, their timer is reset and starts counting down again. All 4 teams have individual timers.
  
* A warning every minute (with time remaining) until the last minute.<br />
+
There are warning messages sent to individual teams as their time starts to expire:
* A warning at 30 seconds before time expires.
+
* A warning at 20 seconds before time expires.
+
* A warning at 10 seconds before time expires.
+
  
The plugin also monitors the '''balance of teams''' and will disable the timer if teams are uneven. To determine if teams are balanced or not, at least a 75% match is used. This means that even teams would be considered:
+
A warning every minute (with time remaining) until the last minute.<br />
 +
A warning at 30 seconds before time expires.<br />
 +
A warning at 20 seconds before time expires.<br />
 +
A warning at 10 seconds before time expires.<br />
 +
(boom)
  
These would work:
+
The plugin also monitors the balance of teams and will disable the timer if teams are uneven. To determine if teams are balanced or not, at least a 75% match is used. This means that even teams would be considered:
* 2 vs 2 (100%)
+
* 3 vs 4 (75%)
+
  
These won't:
+
1 vs 1 (100%)<br />
* 2 vs 4 (50%)
+
2 vs 2 (100%)<br />
* 1 vs 4 (25%)
+
3 vs 3 (100%)<br />
 
+
3 vs 4 (75%)<br />
The percentage is calculated this way:
+
4 vs 4 (100%)<br />
smaller team / larger team * 100
+
4 vs 5 (80%)<br />
 +
5 vs 5 (100%)<br />
 +
5 vs 6 (83%)<br />
 +
and so on.
  
 
If the teams are uneven, capture the flag is disabled; if a player tries to pick up a team flag, it will almost immediately be dropped.
 
If the teams are uneven, capture the flag is disabled; if a player tries to pick up a team flag, it will almost immediately be dropped.
Line 44: Line 42:
 
present before allowing timed CTF to take place.
 
present before allowing timed CTF to take place.
  
=Usage=
+
==Usage==
  
 
The plugin will allow the time limit to be passed to the plugin through the -loadplugin command line with bzfs.  The format is as follows:
 
The plugin will allow the time limit to be passed to the plugin through the -loadplugin command line with bzfs.  The format is as follows:
Line 51: Line 49:
  
  
=Server Commands=
+
==Server Commands==
The plugin has the following '''administration''' commands available:
+
 
 +
The plugin has the following commands available to administrators:
 +
 
 +
"tctftime <iii>" : this will change required capture time to <iii> (1-120 minutes).<br />
 +
"tctfoff" : this will disable timed CTF.<br />
 +
"tctfon" : this will enable timed CTF.<br />
 +
"tctfsoundoff" : this will disable timed CTF sounds.<br />
 +
"tctfsoundon" : this will enable timed CTF sounds.<br />
 +
"tctfstatus" : this will return the current status of functions and the current time limit.<br />
 +
"fairctfoff" : this will disable the fair ctf function.<br />
 +
"fairctfon" : this will enable the fair ctf function.<br />
  
/tctftime <iii> - this will change required capture time to <iii> (1-120 minutes).<br />
 
/tctfoff        - this will disable timed CTF.<br />
 
/tctfon        - this will enable timed CTF.<br />
 
/tctfsoundoff  - this will disable timed CTF sounds.<br />
 
/tctfsoundon    - this will enable timed CTF sounds.<br />
 
/tctfstatus    - this will return the current status of functions and the current time limit.<br />
 
/fairctfoff    - this will disable the fair ctf function.<br />
 
/fairctfon      - this will enable the fair ctf function.<br />
 
  
  
 +
[[Category:Development]]
 
[[Category:Plug-Ins]]
 
[[Category:Plug-Ins]]

Please note that all contributions to BZFlagWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BZFlagWiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)