Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: eduran on December 09, 2013, 01:46:41 PM

Title: (solved) Undo SetTerrainOverride
Post by: eduran on December 09, 2013, 01:46:41 PM
Once you have used SetTerrainOverride on a cell, is there a way to remove its effect? The only possibility I currently see is to set the override level to match the terrain height. But that still prevents Terps/Mass Artifacts from working properly.
Title: Re: Undo SetTerrainOverride
Post by: Clean0nion on December 09, 2013, 02:06:26 PM
<-x <-y dup2 GetTerrain SetTerrainOverride
How does that mess with Terps? If you simply can't avoid the terpulatory problems you're having, just disable them.
Title: Re: Undo SetTerrainOverride
Post by: Grayzzur on December 09, 2013, 02:07:37 PM
Because you can't easily track all the changes when a user is terping. To have to run through every tick and check the whole map for changes would be wasteful.

It looks to me like each cell starts out with a terrain override of -1, and if you set it back to -1, it seems to go back to normal behavior, terps and all.
Title: Re: Undo SetTerrainOverride
Post by: eduran on December 09, 2013, 02:38:53 PM
Quote from: Grayzzur on December 09, 2013, 02:07:37 PM
It looks to me like each cell starts out with a terrain override of -1, and if you set it back to -1, it seems to go back to normal behavior, terps and all.

Thank you, that is exactly what I was looking for.
Title: Re: (solved) Undo SetTerrainOverride
Post by: Grayzzur on December 09, 2013, 03:35:35 PM
Added a blurb about -1 to the wiki page.