Flags

General talk about the map making process.
Post Reply
Flaxchoo
Private
Private
Posts: 4
Joined: Mon Nov 28, 2011 2:57 pm

Flags

Post by Flaxchoo »

So this is about Flags in one place.
I often see flags spawn & respawn on one place.
How can I do that? My flags randomly spawn everywhere on the map. How can i shorter their territory? please help.
User avatar
SkillDude
Private First Class
Private First Class
Posts: 336
Joined: Sun Apr 01, 2007 4:50 pm
Location: United States

Re: Flags

Post by SkillDude »

Map makers create zones which have either the flag or zoneflag properties. The flag property will tell the map that that is a possible position for those flags, but they must be created with the +f option. The zoneflag property on the other hand, will create flags and place them in that zone, and only for that zone.

See http://wiki.bzflag.org/Zone for more details on creating a zone.
Flaxchoo
Private
Private
Posts: 4
Joined: Mon Nov 28, 2011 2:57 pm

Re: Flags

Post by Flaxchoo »

Tyvm.
I have this one more question:
How to make Colored boxes and Pyramids?
I saw them around that they are called Meshboxes but when i checked them out on BZWiki nothing useful came out.
Give me an exaple please?
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: Flags

Post by JeffM »

The wiki has a number of articles on how to make a map, It is a good place to start learning how to make a map.
ImageJeffM
Flaxchoo
Private
Private
Posts: 4
Joined: Mon Nov 28, 2011 2:57 pm

Re: Flags

Post by Flaxchoo »

Ive dug in by myself, found it: http://wiki.bzflag.org/Material
I need a material to change the color:P
PS dont worry, i alredy made 2 maps and they were on top of list, i know how maps are made in generaly, i just dont know the fancy stuff like colored, seen-through boxes or textures.
But Wiki will tell me, like you said.
User avatar
mahem1
Private First Class
Private First Class
Posts: 91
Joined: Thu Jan 14, 2010 2:18 am
Location: Antarctica

Re: Flags

Post by mahem1 »

Maybe use the 'color' attribute. I think diffuse does the same thing too
As far as I know it take 4 values. They are Red, Green, Blue, Alpha, and it seems that the values only go from 0 to 1.
Example : color 1 0 0 1
This would make you a red mesh.
You are right that they wiki isn't very detailed, but it gives you enough to play around on a local server and test out different options and stuff.
Lag makes me miss all of the good stuff.
And random bans..........
Image
User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: Flags

Post by joevano »

mahem1 wrote:You are right that they wiki isn't very detailed, but it gives you enough to play around on a local server and test out different options and stuff.
It's a wiki, fix it if you don't think it is detailed enough.
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln
User avatar
ahs3
Private First Class
Private First Class
Posts: 327
Joined: Sun Mar 04, 2007 8:33 pm
Location: Press '/' to search
Contact:

Re: Flags

Post by ahs3 »

you can also specify a color.

example: diffuse green

all of this info is on the wiki. it just has to be read.
Flaxchoo
Private
Private
Posts: 4
Joined: Mon Nov 28, 2011 2:57 pm

Re: Flags

Post by Flaxchoo »

Wait so i do not need to do a Material stuff?
And plus, can I only make Red, Gree, Blue and Purple? I mean, i want to make White, can someone please post an example on my message pls -.-
Your telling me all this, please POST it, seeing it will teach me the most thank you.
User avatar
SkillDude
Private First Class
Private First Class
Posts: 336
Joined: Sun Apr 01, 2007 4:50 pm
Location: United States

Re: Flags

Post by SkillDude »

Think of colors as mixing up light. What happens when you put red, green, and blue together? You get white. (http://upload.wikimedia.org/wikipedia/c ... nation.jpg) Therefore, in BZFlag code, a Material will have something like this:

Code: Select all

material
name whitecolor
color 1 1 1 1
end
meshbox
matref whitecolor
end
You can make any color visible to the human eye using just these three color channels. Imagine throwing in red and blue together, you get a purple color. The fourth value is an alpha. It determines how transparent the object itself is.

And you do need materials to apply any kind of color, texture, or visual modification to any object.
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Flags

Post by blast »

There is also pre-defined colors you can used, which is documented on the wiki. Look for colors there.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
Post Reply