Flags in constricted area

Questions and answers about the how and why of making maps.
Post Reply
User avatar
macsforme
General
General
Posts: 2033
Joined: Wed Mar 01, 2006 5:43 am

Flags in constricted area

Post 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?
Attachments
tunnelwithflag.jpg
tunnelwithflag.jpg (133.34 KiB) Viewed 1012 times
User avatar
TD-Linux
Sergeant
Sergeant
Posts: 724
Joined: Wed Apr 27, 2005 8:26 pm
Location: Mountain View, CA

Post 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.
User avatar
macsforme
General
General
Posts: 2033
Joined: Wed Mar 01, 2006 5:43 am

Post by macsforme »

Okay, thanks a lot. I'll give it a try.
User avatar
macsforme
General
General
Posts: 2033
Joined: Wed Mar 01, 2006 5:43 am

Post 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?
User avatar
Alex135
Private First Class
Private First Class
Posts: 30
Joined: Sun Oct 09, 2005 8:17 pm
Contact:

Post 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
______________________________________________________

Image
Image

Hoster: alex135.gotdns.com ports 5154-5157
Admin: Heart Attack, Camelot, Allied, Lzone, LDDW
Cop: Badgerking, Person1
______________________________________________________
User avatar
ducatiwannabe
Private First Class
Private First Class
Posts: 3249
Joined: Tue Aug 10, 2004 3:55 pm
Location: Planet Earth
Contact:

Post 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?
User avatar
eagle
Private First Class
Private First Class
Posts: 510
Joined: Tue Jan 25, 2005 10:29 pm
Location: Round Hill, VA

Post 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:
~~~~~
I do know everything, just not all at once. Its a virtual memory problem.
User avatar
Goodbye2U
Private First Class
Private First Class
Posts: 162
Joined: Sat Feb 25, 2006 1:19 am
Location: In my farewells

Post 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.
I'm thinking I need a better sig than this...
User avatar
macsforme
General
General
Posts: 2033
Joined: Wed Mar 01, 2006 5:43 am

Post 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
User avatar
eagle
Private First Class
Private First Class
Posts: 510
Joined: Tue Jan 25, 2005 10:29 pm
Location: Round Hill, VA

Post 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.
~~~~~
I do know everything, just not all at once. Its a virtual memory problem.
Post Reply