duplicatemap v2.0

Expand and mod your server.
Post Reply
User avatar
flying_popcorn
Private First Class
Private First Class
Posts: 88
Joined: Wed Dec 14, 2005 2:40 am
Contact:

duplicatemap v2.0

Post 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)
Attachments
duplicatemap.cpp
(4.09 KiB) Downloaded 241 times
Last edited by flying_popcorn on Sun Sep 07, 2008 3:42 am, edited 2 times in total.
User avatar
Marines
Private First Class
Private First Class
Posts: 77
Joined: Sun Jan 13, 2008 6:03 pm
Location: Planet Mars Landing site 11828

Post by Marines »

ooh thats helpfull! thanks popcorn :D
Poke Me And Die!
User avatar
Spectre
Private First Class
Private First Class
Posts: 174
Joined: Sat May 24, 2008 2:33 pm

Post by Spectre »

Do I have to compile it, or just do -loadplugin duplicatemap.cpp? I'm not familiar with using plugins...
Keeping Latin alive in 2766 AUC.
Enigma
Private First Class
Private First Class
Posts: 212
Joined: Sat Apr 23, 2005 3:13 am

Post 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.
Anxuiz
Private First Class
Private First Class
Posts: 31
Joined: Fri Sep 05, 2008 3:38 am

Post 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.
Attachments
duplicatemap.zip
duplicatemap win32 build
(9.42 KiB) Downloaded 211 times
User avatar
Zehra
Private First Class
Private First Class
Posts: 915
Joined: Sun Oct 18, 2015 3:36 pm
Location: Within the BZFS API and Beyond it
Contact:

Re: duplicatemap v2.0

Post by Zehra »

Updated to 2.4

duplicatemap

-Zehra

(If this doesn't work, let me know.)
Those who are critical of me, I'll likely be the same of them. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.
Visit BZList.net for a modern HTML5 server stats site.

Click here to view the 101 Leaderboard & Score Summaries Last updated 2021-01-12 (YYYY-MM-DD)
Latest 101 thread
Post Reply