if GS_RAILS_SKINS==nil rawset(_G,"GS_RAILS_SKINS",{}) end --Make sure your own lump has this line too!

if GS_RAILS and GS_RAILS.blockload return end --Don't include this part in your own file
if GS_RAILS_SKINS["modernsonic"] return end --Let Spork override this file, naturally.

--Modern Sonic stats?
GS_RAILS_SKINS["modernsonic"] = {} 
local SKIN = GS_RAILS_SKINS["modernsonic"]

SKIN["S_SKIN"] = {
JUMPBOOST = false, --He has a pretty low jump in Unleashed.
SIDEHOP = 26, --Modern's sidehop is slow, but he has a big fancy jumparc!
SIDEHOPARC = 25,
SIDEHOPTIME = 13,
SIDEFLIP = SPR2_SPNG, --Cool sideflip, of course!

CROUCH = false,
CROUCHBUTTON = BT_SPIN,
AUTOBALANCE = true,
SLOPEPHYSICS = true,
SLOPEMULT = -45, --Lets Modern negate slope partially rather than entirely.

HEROESTWIST = 1, --This thing is basically just a visual thing in Unleashed.
TWISTBUTTON = BT_CUSTOM2,
AUTODASHMODE = 0,
LAUNCHPOWER = -5,
STARTMODIFIER = -5, 
STARTSPEEDCONDITION = 69,
}

SKIN["CustomSideHop"] = function(p, s, GS,rail, SIDEJUMP)
	if GS_RAILS.GrindState(s, "hang") return "hangflip" end
	p.finishedtrick = true
	p.jumptimer = 50
end