Results 1 to 6 of 6

Thread: Disabling Spindash

  1. #1
    Join Date
    March 31st, 2013
    Location
    In a closet.
    Posts
    206
    Level
    30

    Disabling Spindash

    "We" are having trouble, for "our" SRB2-1 mod, But however we need to disable the spindash. does anyone know how to disable the spindash...?
    SRB2 Name: Professor-Hedgehog
    SRB2 Server Name: The Professor's Lab
    SRB2 Projects:
    S1RB (Sonic 1 Mod - Reboot)

  2. #2
    Join Date
    March 3rd, 2013
    Location
    In France, I believe.
    Posts
    575
    Level
    38
    Actually, the Spindash SEEMS hardcoded for Sonic, but it's still possible to disable it by messing around with Tails and Knux's header. For Sonic, you should ask in the Mb or something casue I dont think anyone here could help you :/
    Steam ID: Nymphali Festif | SRB2 Nickname: Lat' | Skype: superrainboom
    > "I'm a boy. What? You're laughing? ...Bitches, please, I'M FABULOUS! "

  3. #3
    Join Date
    March 25th, 2010
    Posts
    1,442
    Level
    58
    Lua is the answer.

    Code:
    addHook("ThinkFrame", do
        for player in players.iterate
            if player.mo
            and (player.pflags & PF_STARTDASH)
                player.mo.state = S_PLAY_STND
                player.pflags = $1 & ~PF_STARTDASH
            end
        end
    end)
    That should do it.
    Quote Originally Posted by SRB2
    <Mystyc Cheez> I ****ING QUIT
    Mystyc Cheez left the game
    <~Sky> Am I too awesome or something?
    <X\Wind> Why is everyone on red...
    <X\Wind> Is Sky that awesome?
    Quote Originally Posted by Steam
    20:48 - Sky: one does not simply ban him
    20:49 - Wind: we must gather the chaos emeralds and blast him

  4. #4
    Join Date
    March 31st, 2013
    Location
    In a closet.
    Posts
    206
    Level
    30
    Is there also a way to make a single character don't spindash as well?
    SRB2 Name: Professor-Hedgehog
    SRB2 Server Name: The Professor's Lab
    SRB2 Projects:
    S1RB (Sonic 1 Mod - Reboot)

  5. #5
    Join Date
    December 22nd, 2010
    Posts
    1,192
    Level
    26
    Using Sky's code:

    Code:
    addHook("ThinkFrame", do
        for player in players.iterate
            if player.mo and player.mo.skin == "SKIN NAME HERE"
            and (player.pflags & PF_STARTDASH)
                player.mo.state = S_PLAY_STND
                player.pflags = $1 & ~PF_STARTDASH
            end
        end
    end)
    Just add the underlined part. This will prevent the character with the respective skin name to be unable to spin dash.

    Example
    If we use this:
    Code:
    addHook("ThinkFrame", do
        for player in players.iterate
            if player.mo and player.mo.skin == "tails"
            and (player.pflags & PF_STARTDASH)
                player.mo.state = S_PLAY_STND
                player.pflags = $1 & ~PF_STARTDASH
            end
        end
    then only Tails will be unable to use the Spin Dash.

    Husbando to a special kitty~♥

  6. #6
    Join Date
    December 20th, 2017
    Location
    New York
    Posts
    31
    Level
    7
    maybe ​ can use this.
    I somehow saved the world from destruction.
    (this happened in a roleplay server.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •