Water Editor (Visuals Only)

If you liked this item, please rate it up on Steam Workshop page.

Author: ⑨lnsmall

Last revision: 18 Nov, 2023 at 23:59 UTC

File size: 207.89 KB

On Steam Workshop

Description:

A simple editor that allows you to modify some visual properties of water found on maps. If you’re tired of having really low visibility underwater, or just want to get silly and fill a pool with jello, this addon can help!

How to use

Just like with the default editors, spawn it from "Entities > Editors" in the spawn menu. Then, open the context menu with C, right click the entity, and select "Edit properties" to start changing stuff.

Features

The main features are:

  • Water fog editing
  • Reducing underwater screen blur
  • Disabling those ugly dirt particles that float around in the water

(Note that the editor can’t entirely get rid of blurring underwater – the engine forcibly renders at a lower resolution when your view is underwater. If you’re primarily concerned with making posters, try instead placing a camera underwater and moving the player above water, which should eliminate it entirely.)

Details about water fog editing

These settings act very similar to the default Fog Editor, allowing you to change the start distance, end distance, and color of the water fog. (Changing the max opacity is unfortunately not supported by the engine.)

There are some quirks to mention, however:

  • These settings act on "water materials". The "above" materials are used when you’re outside the water, and the "below" materials are used when you’re underwater. This can be a bit unintuitive at first, but should hopefully make sense if you mess around with the settings. (Or you can just leave it at the default of "All" and not care too much :p)
  • If you ever find that the current state of the water doesn’t match what you have set in your editor (e.g. if you’re using multiple editors at once and they’re overriding each other’s settings), there’s a "Force Apply Water Properties" button in the context menu that will reapply an editor’s settings.
  • The effects of the "fog start" and "fog end" settings can act pretty strange for above-water materials. I’d recommend leaving "fog start" at 0 if you’re primarily concerned with above-water visuals.

Console commands

As an alternative to the editor, you can also use console commands starting with "wateredit_" to achieve the same functionality. Remember that you can use the "help" command if you want to know what each command does.

Notes / credits

This addon should work fine in multiplayer, but I haven’t actually tested it, so I don’t know for certain. Please let me know how well it works!

The source code for the addon is available on GitHub[github.com].

The maps and models used in the preview images can be found here[gist.github.com].