"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...?
"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 Projects:SRB2 Name: Professor-Hedgehog
SRB2 Server Name: The Professor's Lab
S1RB (Sonic 1 Mod - Reboot)
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 :/
Lua is the answer.
That should do it.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)
Originally Posted by SRB2Originally Posted by Steam
Is there also a way to make a single character don't spindash as well?
SRB2 Projects:SRB2 Name: Professor-Hedgehog
SRB2 Server Name: The Professor's Lab
S1RB (Sonic 1 Mod - Reboot)
Using Sky's code:
Just add the underlined part. This will prevent the character with the respective skin name to be unable to spin dash.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)
Example
maybe can use this.
I somehow saved the world from destruction.
(this happened in a roleplay server.)