Repository navigation
0.4.0
Everything from 0.3.1 to 0.3.9 in one update.
New:
Bullets.Launchflies 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.FireandPierceare still there for instant single wounds.Effects: explosions, muzzle flashes, fire, smoke, sparks and debris made of cubes, withExplosion,MuzzleFlash,Burst,Smoke,FlameandFlash. Cubes are made a few at a time ahead of need, so a big explosion doesn't stall the game.Tissue.Regrowgrows 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.Dissolveeats 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.AddCategoryadds your own tab to the terminal, after the game's own. File tools, guns and props under it by name;WithCategorymoves 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.Solidfills 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.Regrowwas deleted, if it had been shot. WorldLabelscould stop working with anInvalidCastExceptionafter a label was shown for a while.Effects.Explosionsmoke was nearly black and far too big up close.