Thread: Bug Report Rabbits can't slide
View Single Post
FabiAN[NC]

JCF Member

Joined: Jan 1970

Posts: 9

FabiAN[NC] has disabled reputation

Aug 12, 2025, 06:31 PM
FabiAN[NC] is offline
its me again!!, i found something out, i must tell about it
.
i told from my experience, that in "Puke Nuk3m Arena 1" the Slide works,
and in other servers, i made the experience that Slide doesnt works
.
so i thought that this server where it works, must run a mutator, that make Slide possible again!
=
i was right!! about it
+ that server have a mutator running that bring the Slide effect back.
.
1. create a new file, and name it to: stvoldslope.mut
2. add this code:
Code:
#pragma name "Toggle old slope physics"

bool stickyByDefault = false;
bool suppressSlopeCommand = true;

enum oldslope_packetType { setSticky, getSticky };

void setSlopeSticky(bool sticky, bool dontSendPacket = false) {
    jjPlayersStickToSlopes = sticky;

    if(!dontSendPacket) {
        jjSTREAM packet;
        packet.push(uint8(setSticky));
        packet.push(sticky);

        jjSendPacket(packet, 0);
    }

    if (jjIsServer)
        jjConsole(">> |||Slope sticking " + (sticky ? "|||||ENABLED" : "||||||DISABLED"), true);
}

void onLevelLoad() {
    if (jjIsServer)
        jjPlayersStickToSlopes = stickyByDefault;
    else {
        waitingForResponse = true;
        jjSTREAM packet;
        packet.push(uint8(getSticky));
        jjSendPacket(packet, 0);
    }
}

bool onLocalChat(string &in stringReceived, CHAT::Type chatType) {
    if (stringReceived == "!slope on") {
        setSlopeSticky(true);

        return suppressSlopeCommand;
    }

    if (stringReceived == "!slope off") {
        setSlopeSticky(false);

        return suppressSlopeCommand;
    }

    return false;
}

bool waitingForResponse = false;

void onReceive(jjSTREAM &in packet, int clientID) {
    uint8 type;

    if (packet.pop(type)) {
        if (type == setSticky) {
            bool stick;
            if (packet.pop(stick))
                setSlopeSticky(stick, waitingForResponse);
        } else if (jjIsServer && type == getSticky) {
            jjSTREAM newPacket;
            newPacket.push(uint8(setSticky));
            newPacket.push(jjPlayersStickToSlopes);

            jjSendPacket(newPacket, clientID);
        }
    } else {
        jjConsole("> Failed to pop packet from client #" + (clientID + 1) + " (one-indexed)");
    }
}
.
3. start your own server on local,
4. say this command: /mutators stvoldslope.mut on
5. with this mutator, it Bring back the Slide effect (if anyone need it)
.
when the mutator is running, you can try out commands like:
!slope on
and
!slope off
.
just test it out, and look what happend
when your rabbit is running with maximum speed, and you just hold on,
if you made "!slope on" then it doesnt works to slide
if you turn "!slope off" then it works to slide
this also have effect for all players in your server
.

Last edited by FabiAN[NC]; Aug 12, 2025 at 06:48 PM. Reason: fixing some things.....