Page 1 of 1

Flags in constricted area

Posted: Wed Sep 27, 2006 7:05 am
by macsforme
The screenshot below is a tunnel in one of my maps:

Image

There is a ground plane a few units up from the top of the tunnel. Whenever I drop a flag inside the tunnel, the flag flies up through the roof of the tunnel and comes to rest on the ground plane up above. I really want the flag to just stop at the roof of the tunnel, and fall back to the floor. Is there any way to constrict flags to not fly up through the roof?

Posted: Wed Sep 27, 2006 9:16 pm
by TD-Linux
One of the problems is your tunnel ceiling is too low for the flag, whatever the limit is. I've got a guess that you might be able to change that limit by changing one of the _flag* variables? Specifically, try lowering _flagHeight, which is the height of the flag used in physics I think (to change the *visible* height of a flag, you use _flagPoleSize instead).

Yeah, I'm pretty sure lowering the value of _flagHeight will do the trick.

Posted: Tue Oct 03, 2006 7:30 am
by macsforme
Okay, thanks a lot. I'll give it a try.

Posted: Thu Oct 05, 2006 4:41 am
by macsforme
Nope, didn't work. I didn't see any noticeable difference at all with the a change to the _flagHeight variable (although I suppose there must be something). Any other ideas?

Posted: Thu Oct 05, 2006 7:22 pm
by Alex135
i think that the only way to change this is to raise the ceeling up.

There is also another salution... make the tanks flat as pankakes... but that probably wont do much good :P although it is quite easy to do.

You need to change the height of the ceeling, sorry :(

Although in the next release of bzflag, the devs should change it so you can change the height the flag go's when it is dopped... just an idea

Posted: Fri Oct 06, 2006 1:05 pm
by ducatiwannabe
I'm not quite sure how high, but I believe a roof needs to be at least 13-14 units high for the flag not to float up to the level above where you want it to be.

For example, your tunnel looks to be about five units high. Maybe seven? That's about a little less than half of what you need. I don't think even zones can fix that. :(

Perhaps one of the flag variables? Anybody?

Posted: Fri Oct 06, 2006 3:25 pm
by eagle
I have this problem too...I dont think it's fixable in this version of BZFlag no matter what I do it still floats up.








p.s. alex u got a lot of spelling mistakes :wink:

Posted: Fri Oct 06, 2006 6:34 pm
by Goodbye2U
Out of curiosity, make the flags higher(taller).
I think the flag has to be completely over the ceiling to stay there.
Taller flags would probably prevent that.
The downside is that every flag would have their own tall flagpole :?
but Im sure if it works it will beat raising the ceiling.

Posted: Sat Oct 07, 2006 4:32 am
by macsforme
Thanks for the help, guys. DW, the tunnel is exactly 6 units high. :wink: You came awfully close... I figure you must be a pro at this. :D

Anyway, I guess I'll just have to make the ceiling higher. Everyone be sure to come by and play sometime! gnurdux.homelinux.net:5170

Posted: Sat Oct 07, 2006 12:01 pm
by eagle
It's a really nice map....I see you made the tunnels taller. this map would be cool if it's theme was a mine or somthing.