#cdsonic by Lach
#Credit to whoever wrote the spindash script for MotorRoach's FSonic (I think it was RedEnchilada?) for said spindash script.
#Sprites ripped from Sonic CD, Sonic 2, and Sonic 3. Obtained from www.spriters-resource.com
#Sonic CD sfx obtained from www.sounds-resource.com
#Credit to MotorRoach for the original spindash sprites. (I only lazily resized them lol)
#Credit to DirkTheHusky for the horizontal spring sprites.
#Credit to TruthTomato and Robichu for sharing sprite sheets they found.
#Sprite editing, colormapping, and ability scripting done by me (Lach).

#Port to SRB2 2.2 by Golden Shine; AKA Super Mystic Sonic
#I'm leaving redundant sounds/freeslots/scripts in, just incase Lach wants them.

#Fixed two things and added the steel blue color, by Marioshi06#8463
#Homing attack is buggy, and 2d mode functions are disabled
#Super Sprites glitch out in certain circumstances, no idea why.
#I could work on this more but I lost motivation. If anyone is willing to fix this further go right ahead.
#Overall this is a fun and playable character all-around.

#Sprite edits and additional sprites by Cotton (me!! :D) and Whisper

#Changed character select description to be accurate to CD's current moveset.
#New falling sprites by NytheDragon
#Fixed dash sprites not appearing during peel-out or midair.
#Changed CD's shading to fit other skincolors and the Steel Blue skincolor to fit other characters.

#Whisper's changes:

#Added time travel sparkles when using vertical springs.
#Added Sonic CD soundtrack.
#Mostly removed Sonic CD soundtrack because it destroyed servers.
#Added several emote commands.
#Changed lua filenames to be more readable.
#Changed the CSS icon. Sprite made by DeltaConduit
#WALKA2A8 sprite by Blitzerhog12

#Cotton's changes:

#New dash, balance, walk, wait, continue, and stand sprites
#Fixed dust particles (with some code from Kirb's Run Dust addon) and Elemental Shield fire trails.
#Changed emerald HUD graphics; replaced spring with an empty slot and updated the missing emerald sprites to fit 2.2.
#Changed CD's vertical springs to a blue recolor of their Sonic 1/CD sprites.


Character
SkinName = cdsonic
DisplayName = CD-Sonic
TagTextColor = SKINCOLOR_BLUE
TagOutlineColor = SKINCOLOR_YELLOW
OppositeColor = SKINCOLOR_SKY
PlayerText = ^4CD Sonic^0 looks simple, but each Chaos Emerald gives him a new power!

^4Ability:^0 Spring Thok
Press Jump in midair to bounce forwards or upwards.

^4Ability:^0 S. Peel Out
Hold ^4Custom 2^0 and forwards to charge up a high-speed dash.

^4Ability:^0: Emerald Power
Use ^4Custom1^0 or ^4Fire^0 to activate a special ability. Beware the ring cost!
#
#Original description below:
#PlayerText = ^2CD Sonic^0 is difficult to control, but wields enormous speed and a plethora of abilities.
#
#^2Aerial Abilities:^0
#* Jump: Spring Thok
#* Spin: Shield Power^6
# -^7Elemental^6: Bounce
# -^4Force^6: Plummet
# -^2Attraction^6: Suspend
# -None: Spring Spawn
#
#^2Extra Abilities:^0
#* Spin + Jump: Spindash
#* Spin + Up: Peel-out
#* Fire / Custom 1:
#	Emerald Power