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)
(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)