Skip to content

0.4.0

Choose a tag to compare

@AlmostGalactic AlmostGalactic released this 09 Oct 02:23
· 2 commits to main since this release

Everything from 0.3.1 to 0.3.9 in one update.

New:

  • Bullets.Launch flies the game's own bullets (9mm, 7.62 or a 12-gauge pellet), so a mod gun wounds people exactly like the game's guns do: through the body, out the other side, with blood and the same impact sound. Bullets.Fire and Pierce are still there for instant single wounds.
  • Effects: explosions, muzzle flashes, fire, smoke, sparks and debris made of cubes, with Explosion, MuzzleFlash, Burst, Smoke, Flame and Flash. Cubes are made a few at a time ahead of need, so a big explosion doesn't stall the game.
  • Tissue.Regrow grows destroyed and damaged flesh back on a creature or a limb, out from what's left, over a few seconds. Limbs that came off stay off.
  • Tissue.Dissolve eats flesh away, all of it or only some organs, such as the bones. Given a point, such as where something went in, it starts there and spreads out with an uneven edge.
  • Inventory.AddCategory adds your own tab to the terminal, after the game's own. File tools, guns and props under it by name; WithCategory moves any mod item, props included, into another category. Mods that add the same category share it.
  • The terminal makes room for as many tabs as there are: tabs that don't fit in one column go into more columns, and the panel widens to fit them. A category can hold more than the game's 24 items, and long names shrink to fit the header. A tab without its own icon shows its first item's, scaled to fill the tab.
  • Damage.Apply(collider, wounds) makes several wounds on a part in one go, which is much cheaper than one call for each. Wound radii are capped at 16 voxels (Damage.MaxRadiusVoxels), since bigger ones could take a tenth of a second each.

Fixed:

  • Textures.Solid fills its texture one pixel at a time. Filling it from an array went through a copy in the interop that could crash the game a while later.
  • The game could crash when a body healed by Tissue.Regrow was deleted, if it had been shot.
  • WorldLabels could stop working with an InvalidCastException after a label was shown for a while.
  • Effects.Explosion smoke was nearly black and far too big up close.