Tremulous Forum

Mods => Modding Center => Topic started by: Jack Bauer on October 31, 2009, 11:25:43 pm

Title: File that handles build angles?
Post by: Jack Bauer on October 31, 2009, 11:25:43 pm
I was just wondering what file handles build angles. I want to be able to build turrets and what not on walls so...
Title: Re: File that handles build angles?
Post by: gimhael on November 01, 2009, 07:51:30 am
The file is src/game/bg_misc.c. You have to change minNormal and invertNormal, minNormal is the minimal cosine of the angle of the ground (e.g. 0 degrees -> 1, 60 degrees -> 0.5, 90 degrees -> 0) and invertNormal must be true to allow building upside down.