skyColorCTF and mirrorCTF

Expand and mod your server.
Post Reply
User avatar
L4m3r
Hater of Everything
Hater of Everything
Posts: 724
Joined: Tue Feb 08, 2005 5:15 am
Location: Los Angeles

skyColorCTF and mirrorCTF

Post by L4m3r »

This idea was actually stolen from Tropican8, who achieved the same effect with using the Janitor plugin.

These, however, are two super-simple, load-and-forget plugins, whereas janitor is a bit more versatile and complex.

When a team captures a flag, skyColorCTF and mirrorCTF will change the sky color and mirror (respectively) to the color of that team. For instance, if Red team capures a flag, the sky and/or ground (depending on which ones yo use) will turn red.

If a player captures his or her own flag, the sky/mirror will turn black.

These plugins are just a quickie, but a neat effect I thought would be worth having. Enjoy. ;) My server (l4m3r.servegame.com:4200) is running skyColorCTF if you want to see a demo.

EDIT: Credit also goes to Meacan, who according to Trop was the first person to come up with this idea.
Attachments
colorctf_source.zip
Source for both plugins
(76.68 KiB) Downloaded 474 times
colorctf_windows.zip
Both plugins (Windows)
(4.46 KiB) Downloaded 434 times
colorctf_linux.zip
Both plugins (Linux)
(8.26 KiB) Downloaded 439 times
Last edited by L4m3r on Wed Feb 22, 2006 12:52 am, edited 1 time in total.
Optimism is just a milder alternative to denial.
User avatar
Tropican8
Private First Class
Private First Class
Posts: 312
Joined: Fri Mar 18, 2005 11:51 pm
Location: As close to the grove as you can get

Post by Tropican8 »

Can you set the Colors for each team? In 4-team CTF some of them look off unless you do darkred, darkgreen, darkblue, and purple (not dark).
User avatar
L4m3r
Hater of Everything
Hater of Everything
Posts: 724
Joined: Tue Feb 08, 2005 5:15 am
Location: Los Angeles

Post by L4m3r »

I tested them all and they looked OK on my end. If you prefer different colors, you can change the source (it's pretty easy to read). just change what it assigns the variable newcolor to- say, from green to darkgreen.

IMO the only one that looks weird is purple... looks more blue to me.
Optimism is just a milder alternative to denial.
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

sound like it would be hard on the eyes, but cool never the less.
User avatar
L4m3r
Hater of Everything
Hater of Everything
Posts: 724
Joined: Tue Feb 08, 2005 5:15 am
Location: Los Angeles

Post by L4m3r »

Win Xp wrote:sound like it would be hard on the eyes, but cool never the less.
I don't think it's so bad with skyColor, but yeah, if you use mirror (or both) it can be that way.
Optimism is just a milder alternative to denial.
User avatar
Tropican8
Private First Class
Private First Class
Posts: 312
Joined: Fri Mar 18, 2005 11:51 pm
Location: As close to the grove as you can get

Post by Tropican8 »

Win Xp wrote:sound like it would be hard on the eyes, but cool never the less.
L4m3r wrote:IMO the only one that looks weird is purple... looks more blue to me.
Those were the two reasons I used dark colors. They look so much better and it separates blue and purple IMHO.
Legolas_
Private First Class
Private First Class
Posts: 513
Joined: Thu Jan 20, 2005 10:24 pm

Post by Legolas_ »

not bad, I do hope you have some credit input there for the original idea. maybe you could put in the file, a Credits.txt file?


Other than that, it works fine, thx for the plugin
User avatar
Tropican8
Private First Class
Private First Class
Posts: 312
Joined: Fri Mar 18, 2005 11:51 pm
Location: As close to the grove as you can get

Post by Tropican8 »

EDIT: Double Post
Last edited by Tropican8 on Fri Feb 24, 2006 4:06 pm, edited 1 time in total.
User avatar
Tropican8
Private First Class
Private First Class
Posts: 312
Joined: Fri Mar 18, 2005 11:51 pm
Location: As close to the grove as you can get

Post by Tropican8 »

L4m3r wrote:This idea was actually stolen from Tropican8, who achieved the same effect with using the Janitor plugin.
Meacan had the original idea to use Janitor that way. Its even in his Janitor documentation as an example of how to write Janitor scripts. I just used it on my server (and was the 1st to to the best of my knowledge.)

I'll take full credit for using Janitor as an insulter though. I'm pretty sure I thought that one up on my own.
User avatar
Matt?
Private First Class
Private First Class
Posts: 281
Joined: Sun Jan 09, 2005 10:15 pm
Location: st. john wa
Contact:

Post by Matt? »

sounds cool, i think it would be best for 2 team ctf because you get reminded of who just owned you, which makes you more into capping the flag
Image
User avatar
L4m3r
Hater of Everything
Hater of Everything
Posts: 724
Joined: Tue Feb 08, 2005 5:15 am
Location: Los Angeles

Post by L4m3r »

Ok, I added a note to the first post for Meacan.

This plugin is so simple that it does not warrant documentation in my opinion, much less an author credit, and thus lacks both... but I certainly give props for the idea. ;)
Optimism is just a milder alternative to denial.
temporal distraction
Sergeant
Sergeant
Posts: 250
Joined: Wed Jan 05, 2005 3:12 pm

Post by temporal distraction »

Here are mac builds. OSX 10.4.5 so YMMV if you try this with other systems.

Have fun!
Attachments
mirrorCTF.zip
(27.36 KiB) Downloaded 364 times
skyColorCTF.zip
(26.51 KiB) Downloaded 359 times
User avatar
[dmp]
Captain
Captain
Posts: 282
Joined: Mon Dec 09, 2002 3:20 pm
Location: CPH, Denmark
Contact:

Post by [dmp] »

Tropican8 wrote:Meacan had the original idea to use Janitor that way. Its even in his Janitor documentation as an example of how to write Janitor scripts.
A guy was on #bzflag who asked if it was possible to change skycolor after capturing. And as I was working on Janitors features to change vars according to events, this seemed like a perfect example to show off.

But the idea itself wasn't mine.


And Tropican8, I'm gonna try to debug janitor soon as i get my dev environment up again (harddisk crash is so counter-productive :( )
I don't need huge pictures here.
User avatar
Tropican8
Private First Class
Private First Class
Posts: 312
Joined: Fri Mar 18, 2005 11:51 pm
Location: As close to the grove as you can get

Post by Tropican8 »

meacan wrote:And Tropican8, I'm gonna try to debug janitor soon as i get my dev environment up again (harddisk crash is so counter-productive :( )
Yay, I'll be around to test it once you get things worked out.
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 809
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Re: skyColorCTF and mirrorCTF

Post by allejo »

plugins updated to 2.4
Attachments
skyColorCTF.cpp
BZFlag 2.4
(1.47 KiB) Downloaded 193 times
mirrorCTF.cpp
BZFlag 2.4
(1.45 KiB) Downloaded 186 times
Post Reply