Page 1 of 1

Changing color of World Wepon

Posted: Sat May 06, 2006 6:41 pm
by Alex135
I don't know if this has ben documented or not... but I have tested it and
if you add "color" to the world weapon stuff in a bzflag map and then have the
ctf team color number. You can change the color of the world weapon.

like have:

color 1

for red ww.

i only tested this with SW

for you who don't know here is the way the color works

1 = red
2 = green
3 = blue
4 = purple

these might not work exactly documented here... but i think i got it the
right way...

Code: Select all


weapon
   name red_sw
   position 0 0 0 
   rotation 0
   initdelay 0
   delay 2 2 2 
   type SW
   color 1
end
that should give you a red sw

I posted this for the intention of helping Louman for his latest map H2O
thinking he didn't really know about this and i thought that the sw needed
a different color.

- Alex135

Posted: Sat May 06, 2006 11:26 pm
by ClayOgre
I tried your code, very interesting. Just for the heck of it, I plugged some other values in to see what would happen, got a couple of other colors, plus the default yellow rogue color.

Image

Posted: Sat May 06, 2006 11:40 pm
by Spazzy McGee
hey, is this prehaps a sign that the code is there for two new teams in future versions of BZFlag?

Posted: Sat May 06, 2006 11:42 pm
by The Knights Who Say Ni
no it would be just one because the last one will be observer i think

Posted: Sun May 07, 2006 12:33 am
by Legolas_
the last would be observer, and the blue would be when you are at a replay server. Nice screenie ogre

Posted: Sun May 07, 2006 12:53 am
by L4m3r
IIRC, 5 is obs, 6 is rabbit, and 7 is hunter.

...and thanks, I've always wanted to know how to do this...

Posted: Sun May 07, 2006 6:46 pm
by Goodbye2U
Now for a couple questions that have probably puzzled us all...

Why is there a bolt named "observer_bolt" ?
Can observers shoot?
If not, why is it there?

Posted: Sun May 07, 2006 7:30 pm
by The Knights Who Say Ni
yer we probably need a new topic for that but good qusetion

Posted: Sun May 07, 2006 7:39 pm
by slime
Heh , maybe make it so when you are roaming as an observer , you can shoot bullets and jump as well , instead of just driving around.

Posted: Mon May 08, 2006 12:46 am
by Goodbye2U
No need to jump, you can control height and direction of view.
You're right, we need a new topic for this. :wink:

Posted: Tue May 09, 2006 7:47 pm
by Alex135
Not many posts for 2 days in here, so i thought ide say nice discovery on the
other colors.

I never did know about this... im gona experiment with trying to add a
specific color to the world wepon.

Ill edit the post here and put my results.

If i can get a specific color, ill just try to get the sw to go rainbow to. :P

This way we can save the devs some question answering in the IRC.. :lol:

Results can be expected soon (probably not today :( )

Posted: Mon Jun 19, 2006 3:52 pm
by Legolas_

Posted: Mon Jun 19, 2006 6:11 pm
by Alex135
cool shots... sorry i havn't havn't said anything... ive ben away from bz a
while... but im still around...

nice shots :) a little small tho hehe.