by paramat » Tue May 07, 2013 14:41
Thanks for your comments.
Casimir,
The impacts are triggered occasionally by abm on dirt, grass and sand nodes. The mese block doesn't actually fall, what happens is you hear a bang and the crater is generated.
As the crater is excavated the primary excavated nodes (stone, desert stone, dirt, grass, desert sand, sand, trees) are counted and then randomly layered back onto and around the crater in the same proportions and with the same total number of nodes. Stone is broken into gravel. Grass becomes dirt. Water, snow, plants are assumed to be vapourized and are not counted. As the ejected material is added it strips surrounding trees of their leaves.
Finally damage is inflicted to nearby players depending on distance, a direct hit is fatal.
This code is derived from my moonlet realm generator mod, which also has meseor impact, the moonlet realm has little atmosphere so meseor impact is common. Meseor impact is so much fun i had to add it to the normal landscape.
Apparently Mese is "possibly of extra-terrestrial origin" so naturally it falls as meseors.
VanessaE and Inocudom,
Yeah currently i'm trying to find the balance between simplicity and being anal when it comes to which nodes to count and which to place. Obsidian and mese crystal are certainly good ideas, but i'm still on 0.4.4 so can't use those nodes myself, but i may write them in anyway.
Last edited by
paramat on Tue May 07, 2013 17:59, edited 1 time in total.