Isolated Map Areas Possible?
Moderator: Moderators
Isolated Map Areas Possible?
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?
Not using purely the current map-system. You could probably do it with a lua gadget of some sort.
- clumsy_culhane
- Posts: 370
- Joined: 30 Jul 2007, 10:27
Re: Isolated Map Areas Possible?
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..
Re: Isolated Map Areas Possible?
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.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)
- TheFatController
- Balanced Annihilation Developer
- Posts: 1177
- Joined: 10 Dec 2006, 18:46
Re: Isolated Map Areas Possible?
You could have them land at the border if they crossed, that'd stop them flying around and bouncing off the invisible walls
Re: Isolated Map Areas Possible?
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.
- TheFatController
- Balanced Annihilation Developer
- Posts: 1177
- Joined: 10 Dec 2006, 18:46
Re: Isolated Map Areas Possible?
I was replying to the original post that requested a way to stop aircraft.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.
Another way would be to put some super powerful gaia AA units down.
Re: Isolated Map Areas Possible?
Haha, that's just too radical. I think it'd be rather simple with Lua.TheFatController wrote:Another way would be to put some super powerful gaia AA units down.
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.
Re: Isolated Map Areas Possible?
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.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.
Re: Isolated Map Areas Possible?
personally i would send some fighterssmoth wrote: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.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.
Re: Isolated Map Areas Possible?
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.
Re: Isolated Map Areas Possible?
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.
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.
Re: Isolated Map Areas Possible?
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.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.
Re: Isolated Map Areas Possible?
I'ma airdrop heavy artillery and anti-air in your no move zone >:)
