[Snippet] Vietnam slide

Started by EK.IceFlake, Jul 09, 2017, 04:02 PM

Previous topic - Next topic

EK.IceFlake

Since VCMP developers removed a very useful feature called the 'Vietnam Slide', I decided to reimplement it.
https://pastebin.com/nXhSx2Xn
Add this to scripts/slide.nut and add this line to sqmod.ini:
Execute=scripts/slide.nut

You can edit the constants at the top to fine-tune the slide.

It's initiated the same way it was before the latest bug which broke the native slide but it has an extra plus point that the slider can see themselves sliding.

EK.IceFlake

#1
Unfortunately this script is very bugged. It is extremely shaky and does not check for collisions.
I have a new one that does the slide client-side and is much better.

Here is the code. Expect to do some heavy modifications to make it fit your script because this one is integrated quite tightly to other scripts I have.

Confidential server file (server side) (CC0 1.0)
https://pastebin.com/5SSggYiK (client side 1) (AGPL 3)
https://pastebin.com/aABcz9cU (client side 2) (AGPL 3)

Somewhere:
/*
    something.nut

    Copyright ©  2017 Ice Flake

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

Sliding    <- false;
Angle    <- 0.0;

Add the constants it requires and make a routine that sends all connected players their sliding status and angle.
:edit: And add my routine script.

vito1

Nice script. I hope player.Angle will be without lag in nearest future :)