23.10.2012, 15:04
Southclaw's Underwater Swimming Fix
What?
Here's something I just made and tested, it's a small fix for something that's been annoying me for a long time!Videos
Ever tried to swim through some underwater structure to find you get pushed up to the ceiling and get stuck? I have a custom level that contains some pipes that lead underwater and people get stuck down there and die all the time! I did a test and you get boosted up at a velocity of around 0.01715.
I just made this quickly to fix that problem, while you are underwater and you are looking either straight ahead or down your player will get a downwards (Z) velocity boost of 0.0026 to keep you at a constant depth.
A video comparison could probably better explain what this code does, but my main PC has a broken PSU and the one I'm using now can only just play SA:MP let alone record!Download
I'll add one as soon as my PC is fixed.
PastebinHope you like this script, any bugs please tell me and I will get to work fixing them
(Requires y_timers)