Page 1 of 1
Isolated Map Areas Possible?
Posted: 08 Sep 2008, 09:08
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)
Re: Isolated Map Areas Possible?
Posted: 08 Sep 2008, 09:57
by Warlord Zsinj
Not using purely the current map-system. You could probably do it with a lua gadget of some sort.
Re: Isolated Map Areas Possible?
Posted: 08 Sep 2008, 13:17
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..
Re: Isolated Map Areas Possible?
Posted: 08 Sep 2008, 15:26
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.
Re: Isolated Map Areas Possible?
Posted: 08 Sep 2008, 17:09
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
Re: Isolated Map Areas Possible?
Posted: 09 Sep 2008, 03:36
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.
Re: Isolated Map Areas Possible?
Posted: 09 Sep 2008, 10:42
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.
Re: Isolated Map Areas Possible?
Posted: 09 Sep 2008, 14:29
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.
Re: Isolated Map Areas Possible?
Posted: 09 Sep 2008, 17:50
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.
Re: Isolated Map Areas Possible?
Posted: 09 Sep 2008, 20:10
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
Re: Isolated Map Areas Possible?
Posted: 10 Sep 2008, 01:54
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.
Re: Isolated Map Areas Possible?
Posted: 10 Sep 2008, 03:03
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.
Re: Isolated Map Areas Possible?
Posted: 10 Sep 2008, 03:31
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.
Re: Isolated Map Areas Possible?
Posted: 10 Sep 2008, 19:26
by smoth
I'ma airdrop heavy artillery and anti-air in your no move zone >:)