Author Topic: Suggest you about planes altitude  (Read 353 times)

Offline LAPD

  • Rank: Private
  • *
  • Posts: 185
Suggest you about planes altitude
« on: January 12, 2011, 10:12:56 pm »
It is necessary to make dependence between height of planes of airstrike and napalm on measurements of height of a map. There are many custom map (and some stock map (mp_decoy) on which any value of ex_planes_altitude doesn't work, planes fly by without dropping a bombs. Anyway scripters can withdraw height of a current map and to subtract some units and make its altitude univeral.

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Suggest you about planes altitude
« Reply #1 on: January 13, 2011, 10:13:52 am »
That's the way it is working right now. The height of the map is calculated by doing bullet traces. 200 units are subtracted to make sure the xmodel does not touch the upper edges of the map.

If you have set ex_planes_altitude in ambientfx.cfg, the code will take this altitude value IF IT IS LESS than the precalculated height. You can add the map variable extension to ex_planes_altitude to assign map specific heights:

set ex_planes_altitude_mp_decoy "1800"

(1800 is just an example; you have to figure out the best value yourself)

Offline LAPD

  • Rank: Private
  • *
  • Posts: 185
Re: Suggest you about planes altitude
« Reply #2 on: January 13, 2011, 08:08:29 pm »
I am already set ex_planes_altitude "2000" for all maps, i understand that if in some cases (decoy too) height of map LESS than it is, then planes altitude is sets to precalculated height automatically? If so, then your automatic calculation is not working properly, because planes continue to fly without bombs anyway (((