• Is It Possible to Increase Thickness/Friction/Consistency in Water?
    3 replies, posted
I'm making a map and I want the water to make a player move slower in it like it's thicker or there's higher friction. I'm aware of player_speedmod and stuff, but isn't there a more convenient way of doing it?
I don't think there is. At best you might be able to achieve it with func_vphysics_trap or something of the sort but I don't think there's any way to alter the properties of water without touching actual code.
If there is no proper way of doing it you could try a func_push pushing downwards?
Ive personally never tried to alter it but here is my assumption Most water materials have their $surfaceprop set to water, which if we go to our scripts folders we can see in the surfaceproperties manifest that water has these default settings. "water" {     "density"    "1000"     "elasticity"    "0.1"     "friction"    "0.8"     "stepleft"    "Water.StepLeft"     "stepright"    "Water.StepRight"     "bulletimpact"    "Water.BulletImpact"     "audioreflectivity" "0.33"     "audioroughnessfactor" "0.1"     "audiohardnessfactor" "0.0"     "gamematerial"    "S" } Within several vmt files that come with hl2 the comments for various lines about surfaceprop mention that is also governs physics. Indeed friction can have extreme results which gives us the sliding effect on ice and glass surfaces, however density would be irrelevant to most materials since you cannot get inside a brush without noclip. You can edit the surfaceproperties.txt to add some variants to the density value and see if that affects anything. By default the only other options are slime with 2000 density, and quicksand with 600 density. You could try one of those to see if its what you need, as embedding a script for only one new surface would be a lot of extra work in the end.
Sorry, you need to Log In to post a reply to this thread.