Page 1 of 1

duplicatemap v2.0

Posted: Sat Aug 30, 2008 7:10 pm
by flying_popcorn
Author: flying_popcorn
Description: This plugin doesn't let you join blue or purple until green and red are full.
Min Version: idk.
Files: Attached is the plugin source

This plugin doesn't let you join blue or purple until green and red are full.
This is for small two team CTFs or FFAs. Have you ever had lots of observers waiting to play? Just make two copies of the map, red vs green, and blue vs purple. Then with this plugin, you cannot join the blue vs purple game until the green vs red game is full.

Plugin takes an optional five digit parameter. #####. First digit is number of players per team. The next two are the colors of the first game. The next two are the colors of the second game. So if you wanted Red vs Blue and Green vs Purple, 5vs5, you'd do -loadplugin /path/to/duplicatemap.so,51324. If you do the parameter string wrong, you may have unexpected results.

If you leave the parameter out, it defaults to 4vs4, Red vs Green and Blue vs Purple (or, 41234).

You must have -autoTeam in your map config/options

License: GPLv3

New version, 2.0. You can now configure team colors, and a bug was fixed where an sometimes an unlimited number of players could join (I rewrote most of the plugin)

Posted: Sun Aug 31, 2008 2:13 am
by Marines
ooh thats helpfull! thanks popcorn :D

Posted: Fri Sep 05, 2008 6:04 pm
by Spectre
Do I have to compile it, or just do -loadplugin duplicatemap.cpp? I'm not familiar with using plugins...

Posted: Fri Sep 05, 2008 7:32 pm
by Enigma
Big Old Bad Bucko wrote:Do I have to compile it, or just do -loadplugin duplicatemap.cpp? I'm not familiar with using plugins...
You have to compile it: C++ is a compiled language, not an interpreted language. The .cpp file is really a text file.

Posted: Sat Dec 27, 2008 4:01 am
by Anxuiz
Here's a DLL for anyone who cares.

Compiled with BZFlag 2.0.10 API and VC++8
Compiled just fine, but hasn't been tested.

Re: duplicatemap v2.0

Posted: Fri May 11, 2018 6:33 pm
by Zehra
Updated to 2.4

duplicatemap

-Zehra

(If this doesn't work, let me know.)