• last month
A quick test of 's swim script for efpse.

added a few features..
18-Feb-25 Changelog...
Fixed a bug where the player can swim whilst outside of the water.
Set the the water-plane's custom-modifier to seamless (no visible edges).
Added water-caustics animation to water-surface for above/below water.
Added transparent-dither to water (now see-through, without culling underwater entities).
Added splash sound when entering water.
Added sound-loop when underwater.
Added splash sound when leaving water.
Underwater sound-loop stops when leaving water.
Added animated shark enemy sprite.
Player holsters weapon whilst water.
Added 25% underwater camera zoom (mimics real-life underwater magnification).
Adjusted players underwater camera speed.
Adjusted fog-depth and HUD texture-colour slightly more natural/realistic.
Disabled footstep sounds when underwater.
Enabled footstep sounds when on land.
Added a breathing timer (player drowns if underwater too long).
Health slowly depletes whilst drowning.
Resurfacing prevents drowning.
Added underwater gurgling sound whilst drowning.
gurgling sound stops when not drowning.
Added gasping sound when resurfacing after drowning.

Recommended