new gamemode - keep the base [source included!]
#64
OK now I moved it to last revision of AC
(not officially lol, I mean I just merged it)

Download & install :
If you are using windows :
Download http://iafclan.free.fr/mods/e/release.zip
Unpack it and copy/paste it into your AC install directory
then run assaultcube_tktb.bat
If you are not using windows, you'll have to compile it yourself.

Sources
Sources download link :
http://iafclan.free.fr/mods/e/src.zip
If you want to see the code I wrote, search for both "// base mode" and "// shuffle tag" comments


Team Keep The Base
/mode 16 then /map yourmap
There are 2 bases (defined by an area around each flag)
You have to be in enemy base to score (10 s in enemy base = 1 point)
You can't take the enemy base if your base is taken
Bases are delimited by cylinders on the map

Team Keep The Zone

/mode 17 then /map yourmap
There is 1 zone located at the middle of a map by the mapper
The player who scores is the first player in zone of the team which has the most players in zone.
This zone is delimited by a yellow cylinder, and a flag in the middle

How to map for this modes
If you want to create a flag with a base size of 25, for example, you have to type :
/newent ctf-flag 0 25 (for CLA)
/newent ctf-flag 1 25 (for RVSF)
/newent ctf-flag 2 25 (for TKTZ mode)
Default size used is 30. So you can play TKTB on any map which has flags spawns.
But, you can't play TKTZ on a map without ctf-flag of type "2"


How to shuffle teams with tags
/callvote 13 "list of tags"
for example :
/callvote 13 "IAF| =MyS="

you can use an alias :
/alias shuffletag [callvote 13 $arg1]

then
/shuffletag "IAF| =MyS="

(server side check functions are crap, I know, I have to re-make them :)

(Thanks to everybody who helped me to test, especially to Pakit, who never lost patience when I was asking him to connect and connect again to my server... :P)

(Mod edit: fixed download URL)
Thanks given by:


Messages In This Thread
RE: new gamemode - keep the base - by tempest - 18 Sep 10, 10:37AM
RE: new gamemode - keep the base - by Luc@s - 18 Sep 10, 11:12AM
RE: new gamemode - keep the base - by maprojoy - 18 Sep 10, 12:48PM
RE: new gamemode - keep the base - by Huntsman - 18 Sep 10, 01:35PM
RE: new gamemode - keep the base - by cOGhost - 18 Sep 10, 03:00PM
RE: new gamemode - keep the base - by tempest - 18 Sep 10, 03:21PM
RE: new gamemode - keep the base - by BurN. - 18 Sep 10, 03:53PM
RE: new gamemode - keep the base - by tempest - 18 Sep 10, 06:03PM
RE: new gamemode - keep the base - by Syntax - 19 Sep 10, 09:10AM
RE: new gamemode - keep the base - by Luc@s - 19 Sep 10, 09:37AM
RE: new gamemode - keep the base - by Ext3rmin8er - 19 Sep 10, 09:42AM
RE: new gamemode - keep the base - by Luc@s - 19 Sep 10, 09:48AM
RE: new gamemode - keep the base - by Luc@s - 19 Sep 10, 11:12AM
RE: new gamemode - keep the base - by Gibstick - 19 Sep 10, 02:24PM
RE: new gamemode - keep the base - by V-Man - 19 Sep 10, 04:07PM
RE: new gamemode - keep the base - by Luc@s - 19 Sep 10, 04:42PM
RE: new gamemode - keep the base - by Luc@s - 19 Sep 10, 05:48PM
RE: new gamemode - keep the base - by DEKiMA - 18 Oct 10, 05:13AM
RE: new gamemode - keep the base - by Luc@s - 19 Sep 10, 05:52PM
RE: new gamemode - keep the base - by tempest - 19 Sep 10, 07:16PM
RE: new gamemode - keep the base - by Luc@s - 20 Sep 10, 06:02PM
RE: new gamemode - keep the base - by MathiasB - 20 Sep 10, 07:58PM
RE: new gamemode - keep the base - by Luc@s - 22 Sep 10, 08:21AM
RE: new gamemode - keep the base - by Cactus - 23 Sep 10, 06:18AM
RE: new gamemode - keep the base - by Bullpup - 23 Sep 10, 04:47PM
RE: new gamemode - keep the base - by Luc@s - 23 Sep 10, 07:46PM
RE: new gamemode - keep the base - by pakit - 25 Sep 10, 09:04AM
RE: new gamemode - keep the base - by Orynge - 25 Sep 10, 11:03AM
RE: new gamemode - keep the base - by Luc@s - 25 Sep 10, 12:03PM
RE: new gamemode - keep the base - by tempest - 25 Sep 10, 12:05PM
RE: new gamemode - keep the base - by flowtron - 26 Sep 10, 03:32PM
RE: new gamemode - keep the base - by Luc@s - 26 Sep 10, 04:08PM
RE: new gamemode - keep the base - by Gibstick - 26 Sep 10, 03:59PM
RE: new gamemode - keep the base - by Alien - 27 Sep 10, 11:22PM
RE: new gamemode - keep the base - by Luc@s - 28 Sep 10, 05:09PM
RE: new gamemode - keep the base - by Matasar - 28 Sep 10, 07:34AM
RE: new gamemode - keep the base - by DrauL - 28 Sep 10, 07:58AM
RE: new gamemode - keep the base - by Alien - 28 Sep 10, 07:17PM
RE: new gamemode - keep the base - by Bullpup - 28 Sep 10, 09:51PM
RE: new gamemode - keep the base - by Luc@s - 16 Oct 10, 09:30AM
RE: new gamemode - keep the base - by Luc@s - 17 Oct 10, 09:58AM
RE: new gamemode - keep the base - by Luc@s - 17 Oct 10, 02:25PM
RE: new gamemode - keep the base - by Luc@s - 17 Oct 10, 06:25PM
RE: new gamemode - keep the base - by Brahma - 18 Oct 10, 03:39AM
RE: new gamemode - keep the base - by Luc@s - 18 Oct 10, 08:15PM
RE: new gamemode - keep the base - by DEKiMA - 19 Oct 10, 01:51PM
RE: new gamemode - keep the base - by Luc@s - 19 Oct 10, 08:23AM
RE: new gamemode - keep the base - by Luc@s - 19 Oct 10, 03:09PM
RE: new gamemode - keep the base - by Luc@s - 19 Oct 10, 05:39PM
RE: new gamemode - keep the base - by Zarjio - 19 Oct 10, 07:28PM
RE: new gamemode - keep the base - by V-Man - 20 Oct 10, 07:36AM
RE: new gamemode - keep the base - by Luc@s - 22 Oct 10, 06:07PM
RE: new gamemode - keep the base - by Luc@s - 23 Oct 10, 10:51AM