Page 1 of 1

Change aircraft cruisealt (or lock it to a height) on a map

Posted: 27 Nov 2009, 20:37
by Beherith
Hi guys, Im wondering if its possible on a map to make the aircraft not go below a certain height. The heightmap has insanely steep and deep cliffs separating the land masses, and I dont want aircraft to go low and crash into cliffs and behave bad.

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 27 Nov 2009, 21:34
by smoth
or clip through the cliffs :\.

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 00:06
by Forboding Angel
Umm there is some variable that was added to control aircraft ascension and descent speed, you could set that to a super high number. Additionally, if the plane has maxaccel=0.3; it should deal with them pretty well, but if you're making this map for BA, fogeddaboudit.

Sry :-/

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 01:46
by smoth
they will still clip into terrain on aproach. It also fucks with bombing runs etc... I wish we could set a true level of flight.

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 01:56
by Regret
Better solution would be to be able to define "(3D) playable area(s)" on a map, everything else would be for decoration only.

f.e. making hills in the background etc.

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 02:11
by JohannesH
Regret wrote:Better solution would be to be able to define "(3D) playable area(s)" on a map, everything else would be for decoration only.

f.e. making hills in the background etc.
Planes can still get off-map, on purpose or accidentally, and if the height differene is big enough they cannot be shot while there and can bug when coming out.

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 02:19
by smoth
Regret wrote:Better solution would be to be able to define "(3D) playable area(s)" on a map, everything else would be for decoration only.

f.e. making hills in the background etc.
I don't understand, more details please.

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 02:33
by Regret
smoth wrote:I don't understand, more details please.
Units being able to exist only in given area of the map, everything else is treated as non-playable, as in beyond the map edge.

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 02:55
by SinbadEV
Regret wrote:
smoth wrote:I don't understand, more details please.
Units being able to exist only in given area of the map, everything else is treated as non-playable, as in beyond the map edge.
planes already can fly outside of the map in certain situations so wouldn't really help...

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 02:59
by jK
there is a modinfo tag to disallow planes to leave the map

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 03:19
by BrainDamage
can't engine airplane flight behaviour be changed instead to "look ahead" along direction of order, look for max height + some constant ( cruise altitude? ) and make an interpolation from current position so it starts raising altitude from far distance rather than after literally colliding with the hill?

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 05:24
by mongus
What you do when the plane changes direction. or is given 10 confusing destination orders.

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 07:04
by Beherith
Goddamn forum ate my post again, so here goes.

Take a look at the gadget in my map TMA-0, it has an allowcommand callin, which disallows giving commands outside the asteroid boundaries, its extremely simple and highly customizable for all kinds of weird map shapes. For most purposes its as good as defining an arbitrary shape for the map (how it would handle concave shapes is left as an exercise for the reader).

Actually, I will be using that as well, since I realized that I'm only going to be realistically get surround meshes on my maps if I make the map itself bigger, and restrict the camera and the command able area.

I definitely have to touch the camera, since scrolling and having the view drop into 2000 elmos deep chasms is probably very annoying.

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 12:10
by Regret
Beherith wrote:I definitely have to touch the camera, since scrolling and having the view drop into 2000 elmos deep chasms is probably very annoying.
Map touching camera???? Are you crazy?

Re: Change aircraft cruisealt (or lock it to a height) on a map

Posted: 28 Nov 2009, 23:04
by AF
Its a general camera fault, one he should never have had to think about.