CTFBonus
Posted: Fri May 19, 2006 7:25 pm
Author: Will Mulvihill aka Daler
Description: This plugin gives a configurable bonus to the one who captures the flag and their team in a CTF game. It was motivated by all the time I capped the flag myself and got little satistaction that the flag was capped. I also saw CTF games turning into FFA with no one caring about getting the flag in big games. This plugin and the further plans I have for it are to motivate teamwork and turn CTF games into CTF games! How it works is that you just have to capture the flag and you get a bonus (default is +5). As well, your entire team gets a bonus for "helping" to capture the flag (default is +2).
Min Version: Any bzfs release that has plugin support. I compiled it and am running it on 2.0.8. One caveat is that it has a bug that is client-side which I can not fix:
BUG BUG BUG: If you are not using a patched bzflag client, you will NOT see your own score increase as a result of these bonuses. You WILL see everyone else's bonuses. For example, your score is +1 and Steve, your teammate, is +3. When YOU cap the flag, your score will appear to be unchanged, BUT you will see that Steve has been bumped up to +5. And of course, Steve will see your score as +6, but his own score will appear to him as being still at +3. This bug is easily fixed, but it has to be done on the client side. There is nothing I can do on the server-side to force your own score to update. Fortunately, the patch for this is very simple and I'll attach the diff to this post in case anyone is brave and wants to patch their own bzflag source and recompile. This diff is to be applied to playing.cxx in src/bzflag. All it changes is the client will accept score updates from the server. NOTE: This is already fixed/done in the latest code I've seen in CVS, so a subsequent version of bzflag will likely fix this permanently. But please bug the devs to get the client-side to accept score updates from the server so that this plugin works fully in the future.
Files: I don't yet have a Windows version. Sorry.
Description: This plugin gives a configurable bonus to the one who captures the flag and their team in a CTF game. It was motivated by all the time I capped the flag myself and got little satistaction that the flag was capped. I also saw CTF games turning into FFA with no one caring about getting the flag in big games. This plugin and the further plans I have for it are to motivate teamwork and turn CTF games into CTF games! How it works is that you just have to capture the flag and you get a bonus (default is +5). As well, your entire team gets a bonus for "helping" to capture the flag (default is +2).
Min Version: Any bzfs release that has plugin support. I compiled it and am running it on 2.0.8. One caveat is that it has a bug that is client-side which I can not fix:
BUG BUG BUG: If you are not using a patched bzflag client, you will NOT see your own score increase as a result of these bonuses. You WILL see everyone else's bonuses. For example, your score is +1 and Steve, your teammate, is +3. When YOU cap the flag, your score will appear to be unchanged, BUT you will see that Steve has been bumped up to +5. And of course, Steve will see your score as +6, but his own score will appear to him as being still at +3. This bug is easily fixed, but it has to be done on the client side. There is nothing I can do on the server-side to force your own score to update. Fortunately, the patch for this is very simple and I'll attach the diff to this post in case anyone is brave and wants to patch their own bzflag source and recompile. This diff is to be applied to playing.cxx in src/bzflag. All it changes is the client will accept score updates from the server. NOTE: This is already fixed/done in the latest code I've seen in CVS, so a subsequent version of bzflag will likely fix this permanently. But please bug the devs to get the client-side to accept score updates from the server so that this plugin works fully in the future.
Files: I don't yet have a Windows version. Sorry.