"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...?
Printable View
"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...?
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)
Is there also a way to make a single character don't spindash as well?
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.