Capture the Flag Back (CTFB) : a gametype for COD2
Version : 1.1
Author : La Truffe (latruffe666@hotmail.com)

++ Credits

Matthias : original CTFB gametype in Admiral mod
Bell : AWE mod
Ravir : cvardef function
Wizz & Wildcard : WW2X mod

++ History log

1.1
- fixed bug when flag carrier disconnects
- players get points for defending their flag (dvar scr_ctfb_points_defend) or assisting the carrier of their flag (dvar scr_ctfb_points_assist)
- dvar for flag protection (defend or assist) distance : scr_ctfb_flagprotectiondistance
- auto-return of dropped flag after a configurable delay (dvar scr_ctfb_flagautoreturndelay)
- flag auto-returns in minefields, like in CTF

1.0
- initial version

++ Object

CTFB is a great gametype Matthias introduced in his Admiral mod.

It works exactly as CTF, except that a flag won't automatically return to its base when a player of the same team touches it.
In this case, the flag will have to be returned to its base by a player of the team.
As a consequence, a player may carry both flags at the same time.

This adaptation of CTFB differs only from the Admiral mod version by the following :
- actions related to flags are logged
- less localized strings warnings
- status icons for flag carriers ; blinking for a player carrying both flags
- slight internal change to ensure compatibility with the "sprint heavy flag" options of AWE and WW2X

++ Compatibility with COD2

COD2 1.3
Do NOT try it on older versions, it will probably not work well, if working at all.

++ Compatibility with mods

CTFB 1.0 is made compatible with the latest WW2X mod (1.5 and later).
For other mods an adaptation may probably be needed.

++ Compatibility with maps

CTFB is obviously compatible with maps supporting CTF.
In random flag position mode, it makes use of DM spawn points to place flags. Using this option requires maps supporting DM.

++ Configuration

Please see the gametypes.cfg for a description of the new dvars, and a note about dvar overriding.

++ Limitations / problems

The mod does not include configuration options from a listen server ; please use a dedicated server instead, listen servers are known to be mods unfriendly anyway.

CTFB being an additional gametype, it may not be possible to vote for this gametype with the standard voting option. This is a known COD2 limitation, and there's little we can do for that. Also, maps won't be showing on the menu if you select CTFB, even if they actually work fine with CTFB.

The serverinfo screen has been stripped down in the WW2X version, because this mod reserves half of the serverinfo screen for itself.

++ Copyright

Copywhat ?? no, seriously... as long as you don't forget the credit you're free to do anything you want with this mod.

++ Feedback

Please give your feedback (comments, bug reports, suggestions, cheers, insults or whatever) preferably in this thread, or by a PM in this forum, or by email at latruffe666@hotmail.com.
Remember that this is still beta, and may (read : "surely") contain bugs, as it's difficult to test in conjunction with every standard option or many features provided by extreme+
I'm particularly interested in script error reports from the console log, because it's sometimes difficult to reproduce bugs.
Another sweet tool for helping the debugging is to make a small demo (with the console command /record) showing the problem.

Have fun with this gametype !