The impossible

The impossible

Requests for features in the spring code.

Moderator: Moderators

Post Reply
Frans
Posts: 22
Joined: 25 Aug 2007, 07:12

The impossible

Post by Frans »

Is it possible to make selectable features on a map have surfaces with heightmaps, for use with deformable features?

And, is it possible to allow units to walk and/or build on a feature?

I know you can make units walk on features, and i'm sure you can do it with lua, but I am not really good with lua.

some ideas for what this could be used for...

Overhanging cliffs...

Bridges...

I really want the bridge part, i'm thinking maby of making a bridge model, and placing it on the map, and having the surface of the bridge have a heightmap, and use lua to simulate health for the bridge. when it is too damaged, it gets blown apart.

But, thats only how i think it'd be done. I have several map ideas, that could use bridges, or some similar thing.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: The impossible

Post by KDR_11k »

Everyone wants a bridge feature. Spring isn't designed for more than one y coordinate per (x,z) coordinate. Your only option is to alter the pathfinder and use lua MoveCtrl to move units across the bridge.
User avatar
Zpock
Posts: 1218
Joined: 16 Sep 2004, 23:20

Re: The impossible

Post by Zpock »

You could maybe do it straight in LUA by trying to detect when a unit should go on the bridge to get to his movement order and then split the order up to move in front of the bridge and then use movectrl and all that.
Frans
Posts: 22
Joined: 25 Aug 2007, 07:12

Re: The impossible

Post by Frans »

ok, so i can use the lua movectrl commands, and such, to move units across a bridge, but how about a whole platform? in the sky? and being able to build on it?

heh, think of a map, with two frontiers, one the ground, and one maby on a cloud? just a example, but that might be a cool map!
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: The impossible

Post by KDR_11k »

There's no difference between a bridge and a platform in the sky, you just have to intercept anything pertaining to the ground and move it to that platform instead. Sounds easy but is fucking hard. Good luck.
Frans
Posts: 22
Joined: 25 Aug 2007, 07:12

Re: The impossible

Post by Frans »

KDR_11k wrote:Sounds easy but is fucking hard. Good luck.
What a hell of an understatement that is, considering my current level of lua knowledge.
User avatar
Zpock
Posts: 1218
Joined: 16 Sep 2004, 23:20

Re: The impossible

Post by Zpock »

The hard part is making an algorithm for detecting that the unit needs to cross the bridge.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: The impossible

Post by FLOZi »

Much easier to just lua a landbridge and let the pathfinder take care of it.
Post Reply

Return to “Feature Requests”