Author Topic: File that handles build angles?  (Read 2605 times)

Jack Bauer

  • Posts: 200
  • Turrets: +6/-10
File that handles build angles?
« 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...
"Las guns are a woman's weapon. That's why they're called 'Las' guns!"
"In My Opinion", eg "IMO you should have googled it instead of asking"

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: File that handles build angles?
« Reply #1 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.