addHook("ThinkFrame", do
for player in players.iterate
if player.mo.skin == "skin_name"
player.charflags = $1 | SF_SUPER
end
end
end)
addHook("ThinkFrame", do
for player in players.iterate
if player.mo.skin == "skin_name"
if player.powers[pw_super]
player.powers[pw_emeralds] = 127
player.charflags = $1 & !SF_SUPER
else
player.charflags = $1 | SF_SUPER
end
end
end
end)
Also to note another factor: Players cannot get colors other than the yellow super sonic color, unless one ends up using more lua in order to manually change the colors.
Both allow for the super transformation, but the second code allows for using the abilities from Match such as the super whirlwind jump that tails has, while the first code locks you into using Super Sonic's Floating ability...
So either Super Float or Ability based super ability, take your pick.