Isolated Map Areas Possible?

Isolated Map Areas Possible?

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Isolated Map Areas Possible?

Post by REVENGE »

Would it be possible to completely isolate certain areas on a map, and restrict traveling to them via say, a gateway only? (The closest example I can think of is WC3 styled maps with Gates and large mountains preventing even aircraft from traveling there)
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: Isolated Map Areas Possible?

Post by Warlord Zsinj »

Not using purely the current map-system. You could probably do it with a lua gadget of some sort.
User avatar
clumsy_culhane
Posts: 370
Joined: 30 Jul 2007, 10:27

Re: Isolated Map Areas Possible?

Post by clumsy_culhane »

See the map made by KDR for his Pong mod. The bit in the centre is unabled to be moved to. I think it was done by some kind of LUA magic..
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Isolated Map Areas Possible?

Post by Pxtl »

REVENGE wrote:Would it be possible to completely isolate certain areas on a map, and restrict traveling to them via say, a gateway only? (The closest example I can think of is WC3 styled maps with Gates and large mountains preventing even aircraft from traveling there)
Impossible with Spring air-units. You could use Lua to force the issue, but it would annoy and confuse the players since aircraft wouldn't automatically avoid the no-fly-zone.
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: Isolated Map Areas Possible?

Post by TheFatController »

You could have them land at the border if they crossed, that'd stop them flying around and bouncing off the invisible walls
User avatar
Alchemist
Posts: 81
Joined: 21 Oct 2005, 23:46

Re: Isolated Map Areas Possible?

Post by Alchemist »

That'd defeat the whole point of having aircraft. I think it's valid to restrict access to land and or water units but air is air.
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: Isolated Map Areas Possible?

Post by TheFatController »

Alchemist wrote:That'd defeat the whole point of having aircraft. I think it's valid to restrict access to land and or water units but air is air.
I was replying to the original post that requested a way to stop aircraft.

Another way would be to put some super powerful gaia AA units down.
User avatar
Alchemist
Posts: 81
Joined: 21 Oct 2005, 23:46

Re: Isolated Map Areas Possible?

Post by Alchemist »

TheFatController wrote:Another way would be to put some super powerful gaia AA units down.
Haha, that's just too radical. I think it'd be rather simple with Lua.

Just set up a no unit zone by setting up an array of coordinates from a script. And have it check every few frames to see if any units have entered the area. If so, activate moveCtrl and simply make them move out.

That's the pretty basic idea so it probably would not be so efficient.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Isolated Map Areas Possible?

Post by smoth »

Alchemist wrote:That'd defeat the whole point of having aircraft. I think it's valid to restrict access to land and or water units but air is air.
and when your enemy lands his air in the no move zone to heal and you can do little about it you will regret that.
pintle
Posts: 1763
Joined: 19 Dec 2005, 16:01

Re: Isolated Map Areas Possible?

Post by pintle »

smoth wrote:
Alchemist wrote:That'd defeat the whole point of having aircraft. I think it's valid to restrict access to land and or water units but air is air.
and when your enemy lands his air in the no move zone to heal and you can do little about it you will regret that.
personally i would send some fighters
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Isolated Map Areas Possible?

Post by REVENGE »

Okay, looks like the main problem is keeping aircraft away from the boundaries. I could use movectrl, but I suspect aircraft behavior will go to hell, and not to mention patrol commands and such would be fucked.
User avatar
Alchemist
Posts: 81
Joined: 21 Oct 2005, 23:46

Re: Isolated Map Areas Possible?

Post by Alchemist »

I'm not exactly sure how (I haven't looked at this myself) but you could filter patrol points. If it's possible to mess with the user interface in such a manner it would just be simple code.
1) Figure out what side of the "barrier" the unit is on. 2) Make sure no points cross the "barrier". 3) If any point crosses, or lands on, the "barrier," simply edit it so it ends up outside the "barrier" on the same side as the aircraft.

That would be how to fix it. But limiting aircraft is still fail.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Isolated Map Areas Possible?

Post by REVENGE »

Alchemist wrote:I'm not exactly sure how (I haven't looked at this myself) but you could filter patrol points. If it's possible to mess with the user interface in such a manner it would just be simple code.
1) Figure out what side of the "barrier" the unit is on. 2) Make sure no points cross the "barrier". 3) If any point crosses, or lands on, the "barrier," simply edit it so it ends up outside the "barrier" on the same side as the aircraft.

That would be how to fix it. But limiting aircraft is still fail.
Oh no, I'm not worried about that. The problem would probably arise when I choose to patrol aircraft close to the boundaries. If there's one thing about Springs' patrol code, it's that it's unreliable and units will often expand their patrol paths far beyond your designated ranges. I'm afraid movectrl will cause the unit to just get stuck at the border.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Isolated Map Areas Possible?

Post by smoth »

I'ma airdrop heavy artillery and anti-air in your no move zone >:)
Post Reply

Return to “Map Creation”