Author Topic: Wrong buildable angles on wall  (Read 3092 times)

rotacak

  • Posts: 761
  • Turrets: +39/-64
Wrong buildable angles on wall
« on: September 19, 2009, 11:16:55 am »
Hi. When I will try to build hovels around me, then it is ok when I am on floor. But when I am on wall, then all hovels are in same angle:



Can you tell me how to fix that?

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Wrong buildable angles on wall
« Reply #1 on: September 19, 2009, 01:24:39 pm »
Hovels can't be built on walls.
All the ones that can be built on walls are the same however the rotate, so it's probably a bitch to fix.
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.

rotacak

  • Posts: 761
  • Turrets: +39/-64
Re: Wrong buildable angles on wall
« Reply #2 on: September 19, 2009, 03:52:56 pm »
On my server can be builded on walls. I tried same experiment with hive and it's rotated. But hovel (and any new buildings what I added) no. BBox will be still same, I know, but that model should be rotated.

rotacak

  • Posts: 761
  • Turrets: +39/-64
Re: Wrong buildable angles on wall
« Reply #3 on: September 22, 2009, 12:01:18 am »
I found how to make it. In g_buildable.c is:
Code: [Select]
built->s.angles[ PITCH ] = 0.0f;
I chandet it to:
Code: [Select]
built->s.angles[ PITCH ] = angles[ PITCH ];
But I don't know why it was set to 0.0f, maybe it will cause something bad now.