| Description | Currently lasers stretch to their length, the laser always has the full texture, no matter what its length is. That worked back when lasers had no texture but now with custom graphics it looks silly. This patch changes it so the texture always remains the same size and the laser just shows the part that its length can contain. It also adds proper handling for when a laser impacts before it extends to full size by making the laser stay that size but scrolling the visible part of the texture before the laser contracts again (and preventing the laser from fading out if it has already hit). This greatly improves the look of very long laser shots with textures.
This also adds the tag "hardStop" (bool, default 0) which, if used, makes the laser not fade if it doesn't hit before hitting its range limit and instead has the laser stop immediately and contract, as if it had hit something. This looks better with really long lasers, especially those that are longer than their range. |
|---|