Tremulous Forum

Mods => Modding Center => Topic started by: rotacak on September 19, 2009, 11:16:55 am

Title: Wrong buildable angles on wall
Post by: rotacak 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:

(http://img12.imageshack.us/img12/6933/shot0029j.jpg)

Can you tell me how to fix that?
Title: Re: Wrong buildable angles on wall
Post by: David 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.
Title: Re: Wrong buildable angles on wall
Post by: rotacak 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.
Title: Re: Wrong buildable angles on wall
Post by: rotacak 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.