Author Topic: Space between buildings (aliens)  (Read 3718 times)

rotacak

  • Posts: 761
  • Turrets: +39/-64
Space between buildings (aliens)
« on: September 20, 2009, 12:03:43 am »
Hi, when I add new building for aliens, everything is ok when I build it on floor. But if I will build it on ceiling or wall, then between building and wall/ceiling is big space or building is partialy in wall/ceiling.

Same like with baricade:



How I can fix that? In bg_misc.c is "vec3_t mins;", "vec3_t maxs;" and "float zOffset;". I don't understand what for is offset. Is possible to fix it with these values?

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Space between buildings (aliens)
« Reply #1 on: September 20, 2009, 12:40:36 am »
All bounding boxes are axis aligned, so enable drawBBOX and it'll show the model massively out of alignment with the box.  There's a reason everything that can be built on walls is a cube...
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

mooseberry

  • Community Moderators
  • *
  • Posts: 4005
  • Turrets: +666/-325
Re: Space between buildings (aliens)
« Reply #2 on: September 20, 2009, 01:11:13 am »
Didn't benmachine do something similar along time ago? I can't remember specifically but I thought almost all buildings could be on ceiling and walls.
Bucket: [You hear the distant howl of a coyote losing at Counterstrike.]

मैं हिन्दी का समर्थन

~Mooseberry.

rotacak

  • Posts: 761
  • Turrets: +39/-64
Re: Space between buildings (aliens)
« Reply #3 on: September 20, 2009, 02:37:01 am »
All bounding boxes are axis aligned, so enable drawBBOX and it'll show the model massively out of alignment with the box.  There's a reason everything that can be built on walls is a cube...
I know, but it's same with acid and hive and they are ok. How to fix others too?