modoption idea
Moderator: Moderators
Re: modoption idea
Something tells me doing that would dictate that since pathing is not changing, units can walk into a firey doom.
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: modoption idea
Has anyone tested adjusting the entire heightmap?
Re: modoption idea
I forget who it was.
Zwzsg did some experimentation. Achieving some really interesting dynamic results.
but when I was working on my map options code I was told that it is very expensive to do the sort of things like adjusting the water level for the entire map. I could have been told wrong
. I would be happy to know it was possible.
Zwzsg did some experimentation. Achieving some really interesting dynamic results.
but when I was working on my map options code I was told that it is very expensive to do the sort of things like adjusting the water level for the entire map. I could have been told wrong

-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: modoption idea
As I said.
Spring.AdjustHeightMap(0,0,Game.mapSizeX,Game.mapSizeZ,n), n = any number. Causes a freeze of about 1/4 of a second in CA (which has 15 movedefs) on Scorpio Battleground which is a 16x16 map and it has large areas of water. All the pathing correctly recalculates.
Spring.AdjustHeightMap(0,0,Game.mapSizeX,Game.mapSizeZ,n), n = any number. Causes a freeze of about 1/4 of a second in CA (which has 15 movedefs) on Scorpio Battleground which is a 16x16 map and it has large areas of water. All the pathing correctly recalculates.
Re: modoption idea
dont turn the easy doable lua solution into a roland-emmerich-i-destroy-everything-nightmare-with-no-happy-end
Re: modoption idea
That was not the conclusion at all (there aren't even any references made to "applying damage to units" in that thread). What is clearly mentioned is the function
... which happens to be the one that handles updates of the...Auswaschbar wrote: CBasicMapDamage::RecalcArea(int, int, int, int)
... upon a terrain deformation event, along with repathing in the affected area. The expense does not come from a single item.Kloot wrote: heightmap, heightmap _texture_, normalmap, slopemap, terrain LOS states, positions of features
Re: modoption idea
Are heightmap changes collected so that if i lower a square 5 times, it will only recalc once at the end of the frame?
Re: modoption idea
That.The expense does not come from a single item.
Whole map, like 24/24? Sure, you can do that, Smoth, but only at runtime, otherwise you will probably desync people while it runs. Tried some stuff, that was my conclusion. Not a really big deal, if you want a map that's never quite the same twice, but obviously there are some things that aren't possible.
Re: modoption idea
Oh, of course. Normal terrain deformation happens when the map is damaged... so the class that handles terrain deformation stuff is the mapdamage class.
Durrrr.
Durrrr.