smoth wrote:typemaps don't work that way.
Didn't think so. Was just a guess. If you could make up a terrain-type that says "bots and vehicles move at 70%" and then whenever the terrain is modified you apply that type to anything underwater you could brute-force a flat underwater slowdown that way... but yeah, that level of control over the typemap doesn't exist.
Pxtl wrote:0.5 if you want to be backwards-compatible - that's what every game that included depthmod was getting until this version.
Otherwise I'd say zero, for simplicity's sake.
So nobody using negative depthmods for underwater speedboost? I guess there's no point in supporting that case if nobody does it.
Well, there's that max(0.01f...) snippet that was added to avoid divide-by-zero. That's effectively defining the max speedup as 100x normal. But otherwise it looks like the code should allow for underwater speedups with negative slopemod bounded at a hard cap of 100x normal speed. I should give it a try and see what happens.
Either way, though... no point worrying about that behavior if nobody uses it. Undefined behavior is undefined.