skyColorCTF and mirrorCTF
skyColorCTF and mirrorCTF
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.
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 493 times
-
- colorctf_windows.zip
- Both plugins (Windows)
- (4.46 KiB) Downloaded 456 times
-
- colorctf_linux.zip
- Both plugins (Linux)
- (8.26 KiB) Downloaded 460 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.
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.
IMO the only one that looks weird is purple... looks more blue to me.
Optimism is just a milder alternative to denial.
- Tropican8
- Private First Class
- Posts: 312
- Joined: Fri Mar 18, 2005 11:51 pm
- Location: As close to the grove as you can get
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.)L4m3r wrote:This idea was actually stolen from Tropican8, who achieved the same effect with using the Janitor plugin.
I'll take full credit for using Janitor as an insulter though. I'm pretty sure I thought that one up on my own.
-
- Sergeant
- Posts: 250
- Joined: Wed Jan 05, 2005 3:12 pm
Here are mac builds. OSX 10.4.5 so YMMV if you try this with other systems.
Have fun!
Have fun!
- Attachments
-
- mirrorCTF.zip
- (27.36 KiB) Downloaded 392 times
-
- skyColorCTF.zip
- (26.51 KiB) Downloaded 377 times
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.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.
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.
Re: skyColorCTF and mirrorCTF
plugins updated to 2.4
- Attachments
-
- skyColorCTF.cpp
- BZFlag 2.4
- (1.47 KiB) Downloaded 209 times
-
- mirrorCTF.cpp
- BZFlag 2.4
- (1.45 KiB) Downloaded 207 times