Capture the Base

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:

Capture the Base

Post by flying_popcorn »

Author: flying_popcorn
Description: Prevents players from picking their own team flag up. Also it flag resets (unused) when a flag is captured.
Min Version: I don't know

Capture the Base is a game style where you zone one team's flags on the opposite team's base. Then you set up spawn zones so the two teams spawn on the side of the map opposite their base. The goal is to get across the map to your base, where you can immediately capture the opponent's flag.

But there is a common problem with this game style -- some players don't get how to play, and repeatedly capture their own flag. This plugin prevents players from capturing their own flag. If someone picks up their own team flag, the plugin will /flag take it from them before they can capture their own flag.

This plugin also does /flag reset unused whenever a flag gets captured. This keeps flags evenly spread out and keeps team flags on the bases.
Attachments
ctb.tar.gz
a compiled .so file
(82.01 KiB) Downloaded 190 times
ctb.cpp
cpp source file
(3.18 KiB) Downloaded 201 times
User avatar
Propane Tank
Private First Class
Private First Class
Posts: 99
Joined: Mon Aug 17, 2009 12:44 pm

Re: Capture the Base

Post by Propane Tank »

can i get a windows version? I can't use Linux, so I don't use it. Just of the Plug-in though.
Thanks

[edit]Or is that Mac? Well, what ever it is, can I get Windows version? Would greatly appreciate it.[/edit]
-Propane Tank
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Capture the Base

Post by Bambino »

The tar.gz. is for linux but the .cpp is the source code that you can compile for windows.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
Propane Tank
Private First Class
Private First Class
Posts: 99
Joined: Mon Aug 17, 2009 12:44 pm

Re: Capture the Base

Post by Propane Tank »

What do I open the source code with? Will a text editor work, like notepad?
-Propane Tank
User avatar
blast
General
General
Posts: 4794
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Capture the Base

Post by blast »

You have to compile it with Visual C++. And it might have to be the same version that built your version of bzfs. (The official 2.0.10 windows package was done with Visual Studio .NET 2003)

If you're intending to run a public server, I would recommend not using Windows for hosting. Hosting on Windows has a lot more issues than Linux/BSD/OSX. I would also recommend using the latest 2.0.x code instead of 2.0.10 or 2.0.12. The v2_0branch SVN is 2.0.13 (odd number means it's a development version). There are a few bzfs fixes in the SVN code.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
Propane Tank
Private First Class
Private First Class
Posts: 99
Joined: Mon Aug 17, 2009 12:44 pm

Re: Capture the Base

Post by Propane Tank »

Since I don't have C++ installed on my computer (I have Visual C# 2008 Express), can someone that has C++ convert the source code into my dll file then post it here, I would greatly appreiciate it.
Thanks,
Propane Tank
-Propane Tank
User avatar
blast
General
General
Posts: 4794
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Capture the Base

Post by blast »

See if this one works. I built it against 2.0.10 using Visual C++ .NET 2003.
Attachments
ctb.zip
Capture the base DLL 2.0.10-VC71
(2.69 KiB) Downloaded 154 times
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
Propane Tank
Private First Class
Private First Class
Posts: 99
Joined: Mon Aug 17, 2009 12:44 pm

Re: Capture the Base

Post by Propane Tank »

Thanks. I'll see if it works on my soccer tournament map.
-Propane Tank
User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Re: Capture the Base

Post by zaphod »

Good job (as usual)!
neat idea and creates many new map ideas and strategies to use it!
looking forward to use it soon ;-)



.
.
.
.
Image
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 784
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Re: Capture the Base

Post by allejo »

updated the plugin to 2.4
Attachments
ctb.cpp
BZFlag 2.4
(2 KiB) Downloaded 144 times
Post Reply