---
Acrobatics v0.5 [Augmented-Burst-Storage System]
---
//by Angular

//WHAT IS IT
Acrobatics allows aerial antics in SRB2Kart - Press [BRAKE] to spin! Charge a spin in midair, and land to get speed bonuses! There are 3 styles to suit different playstyles.

//THANKS TO
Afrorule/Pepperdork for the ghost effect code and the original "Tricks" mod, which Acrobatics was originally written on top of.
Ashnal and Callmore for coding assistance/wisdom and some small snippets of code.
Marsh for Emblem and VFX Sprites.
yoshimo for new Augment charge SFX.

//HOW TO TRICK [Race]
Press and HOLD the [TRICK] button (BRAKE by default) to start a trick in midair!
You need to be ascending to start one in a Race.
Build the meter by holding down [TRICK]. Aim for the little purple for best results! If you overshoot, release the [TRICK] button.
--Don't OVERCHARGE [be in the red]! You'll forfeit your boosts or worse, wipeout [Depending on severity].
--Don't have the [TRICK] button held when you hit the ground! Tony Hawk's watching you.

//TRICK STYLES [Race]
There are 3 styles that have different landing effects. See what works for you the best!
BURST -- Release your charge for a huge boost forward!
	+You can zipboost in this mode for maneuverability - Release a stored drift after landing to barrel forward aggressively.
	+Chainable - the more jumps you can go for, the better!
	+Spark Rate Drift upped - bob and weavethrough lines and aggressively shove other racers out of the way!
	-Not as much staying power as augment or store.
STORE -- Your charge will be stored in a gauge. Press ITEM without an item to use the gauge and boost forward like a miniature sneaker.
	+Microboosts can be used any time you don't have an item on you.
	+Persists even in death.
	-No landing boost bonus.
	-If the meter is maxed out, no further tricks will give you additional boost. Use it or lose it!
	-Weak in comparison to the other 2.
AUGMENT -- Your charge will be converted to an overall boost in TOP SPEED [max bonus determined by SPEED]!
	+This speed stacks multiplicatively in everything you do - boosts, sneakers, growth, etc.
	+A fully augment speed 1 can edge oout a speed 9!
	-This bonus can be lost, little by little, by bonking into walls, getting spunout, dying, or driving too slow for too long. Keep up the pace!
	+Augment decay can be prevented by doing more tricks.


//HOW TO TRICK - AGGROBATICS [Battle]
Tap the TRICK button ANYTIME in midair to do a mini-double jump! This double jump gives you a little mobility in the air as well! 
Tap it AGAIN afterwards to perform a STOMP - You'll rocket to the ground and zero in on foes.
+The stomp creates a shockwave that'll push opponents away! Use it to shove people into pits, or clear a landing zone for the perfect shot!
-Once you start stomping, there's no stopping! Hope you aimed well.
-You'll be vulnerable for a split second after landing from a STOMP.


//LIST OF COMMANDS
-----
-----PLAYER SIDE
-----
ac_trickstyle [text or 0-2] alises: trickstyle, changetrick, trick, trickchange, ts
BURST
STORE
AUGMENT
*This does not have any effect in Battle Mode, which forces the STOMP style.
**A server may force a trickstyle upon everyone, preventing a player from changing their style.
---
ac_trickbtn [BRAKE/CUSTOM]* aliases: changetrickbutton, trickbutton, trickbtn
Allows the trick button to be mapped to BRAKE or CUSTOM1.
*This command will not work with certain other mods that use CUSTOM1/2/3 as essentials. Tricks will default to BRAKE in this instance.

-----
-----CUSTOMIZATION
-----
ac_trickreminder [on/off]
Toggles the trick reminder locally. If it's on, it'll remind you every two races.
---
ac_textalignment [centered/left]
The flavor text ["OK...", "NICE!", etc.] shows up on either 
---
ac_meterstyle [0-4, or type in the styles below]
0 - Disabled - No meter, all screen.
1 - Minimal - Thin as a stick.
2 - Simple - For a cleaner looking colorbar.
3 - Default - Out of the box look.
4 - Alternative - Thicker shades, thicker style.
---
ac_barsnap [yes/no]
STORE'S bar will snap towards the left side of the screen if there's no item - otherwise, it'll stay where it is at all times, regardless of item presence.
---
ac_augshow [potential/raw]
Toggles AUGMENT'S display - displays either POTENTIAL [total out of 100%, not a true 100%] or RAW [the actual percentage of an augmented bonus].

-----
-----SERVER SIDE [you'll need admin commands to change these]
-----
ac_forcetrick [freestyle/burst/store/augment] [-1, 0, 1, 2]
Forces everyone on a server to a homogenous trick style.
---
ac_acrohell [forced/disabled/hellmap] [-1, 0, 1]
Toggles daredevil mode - forced forces it on ALL maps, off removes it completely, hellmap means only hellmaps will experience this.
***This function will NOT work if [ac_forcetrick] is on - this is intentional.

//CHANGELOG

v0.5 - [ABS System]
--
A rather large changelog, here we go...

==MECHANICS==
+Styles in general got an overhaul -- the style of input has been codified into the old charge style for ALL styles.
+COMBO and CHARGE tricks have combined into BURST.
	+Chaining into another ramp with give a different audio cue and extend your trickboost time - BURST tricks add onto each other rather than restart their timer.
	+However, miss a trick, and you'll lose ALL your trickboost!
+BURST yields for tricks are slightly rebalanced - the boost power is slightly degraded in favor of a longer boost in most cases.
+BURST tricks reward driftstore by converting released driftboosts into zipboosts, which shove the player forward.
+NEW - STORE style will convert your trick into a gauge for miniature boosts... or a large boost if you store enough. Use ITEM with no item in your possession to use some of your boost!
+NEW - AUGMENT style add to your base speed as a permanent fixture - but are prone to harsh penalties from wallbonks, spinouts, and death. Great for players that can get a good rhythm going.
+Aggrobatics STOMP style will push people away [in MOST cases - see crossmod details]
+[ac_trickstyle] [trickstyle] [changetrick] [trickchange] [trick] [ts] will let you switch between them.
+[ac_forcetrick] Server owners may restrict a server to one trickstyle should they wish to.
+[ac_acrohell] Higher stakes - higher bonuses. Higher penalties...
+It's hard to keep your cool and trick when an SPB's on your tail...

==VISUALS==
+Splitscreen Support!
+[ac_active] - Finally, a toggle for servers!
+[ac_textalignment] - You can change where the flavor text shows up - defaults to "centered" but you can have it "left" like in 0.2a.
+Some of the meter styles have been modified for better conveyance/save screen real estate. Be sure to check out MINIMAL in particular.
+Moved centered trick text higher to not get in the way of driving view.
+Visuals have been cleaned up and reworked on trick sequences and boosts.
+A small emblem will show up next to your lapcount to show which trick you're currently using.
+Removed some status messages for the sake of simplicity.

==CUSTOMIZATION==
+Your HUD and trick preferences will be saved in "acrobatics.cfg" [The mod will make a file for you if you don't have one!].
+Use "ac_load" to load it, or specify a different config file.

==BUG FIXES==
+Too numerous to document all at once.


==CROSSMOD "SUPPORT"==

+HOSTMOD [v7+] by Tyron - 
	+Should show up as gameplay mechanic change.
	+Will add a couple of acro-specific tips to your serverlist.
+Team SRB2K Racing by Snu - 
	+A slingboost stronger than a karter's trickboost strength should happily override it.
	+Trickboosts stack onto an ultimate's boost! [And don't even get me started on Augment's effect.]
+Battle Plus, by Snu - 
	+In Hot Egg-tato mode, the tagged player's STOMP will draw players in - everyone else's STOMP has a stronger push to compensate.
	+In Emerald Thief mode, everyone's STOMP but the emerald owners will draw players in - the thief's STOMP has a stronger push to compensate.
+HPMod by Callmore - 
	+Trickfails will sap a little HP. Just a little.
	+Sometimes being mid-trickboost will hurt others! Aggrobatics makes its way onto the races.
+Countdown by Latius - Succesful tricks will give bonus time.
+Kart Rush by Latius - Succesful tricks will freeze the timer briefly; failed tricks will do damage in Death Wish mode.
+WAYTOOFAST by Angular - 
	+Augment style will work correctly with WTF adjustments.
+Slipstream/Boost Stacking by Ashnal - Trickboosts will be accounted for in boost stacks and chains.
	*Acrobatics must be loaded BEFORE Slipstream/Boost Stacking, as Slipstream uses Acro's Boost detection to properly apply stacks. The other way around will break boost stacking. Beware!

###KNOWN ISSUES###
-Some minor HUD alignemnt issues on non-green resolutions.
-KartMP's Hardsneakers will sometimes conflict and overwrite trickboost. Load KartMP BEFORE Acrobatics to mitigate this.

//PREVIOUS VERSIONS

v0.4 [Crossing Over]
--
+A sneakerboost to trickboost will be much smoother. [Thanks, Ashnal]
+Improved trickboost detection.
+Fixes a bug where replays would spew out undefined errors.
+Trickboost length adjustments across the board.
+Fixes a bug where mild and moderate trickfails would let players cheat out collisions from other items such as jawz or orbinauts.
+Crossmod Support: In Elimination mode, a player marked for death will receive double the amount of trickboost as a panic catchup mechanic.

v0.3a
--
+Fixed a bug where tricking was possible before the start of the race.
+Combo Tricks slightly overhauled to make more sense and be less situational.
+Improved trickboost detection.
+Fixed a bug with Hitfeed and updated to work with v2 [Thanks, Snu]


v0.3 - [Aggrobatics/UI]
--
+Trick Boost Length is now dependent on kart weight [1 is best]
+Trick Boost Strength is now dependent on kart speed [1 is best]
+Trick Boosts adjusted for a smoother driving experience.
+Aggrobatics - Press the TRICK button to leap into the air, and then again to STOMP in Battle Mode. 
+You can change your meter style! [ac_meterstyle]
+HUD UI overhauled to be more inline with the game's style.
+Meter is smaller and take up less real estate
+Squashed a good chunk of bugs
+Sometimes the meter would freeze for everyone if another player died

v0.2a
--
~Quickfix for HUD bug for spectators [lol]

v0.2 - [Something new]
--
-Message Board initial release.
~Adjusted trickboost algo into its own thing rather than a sneaker.
+SFX/Camera Adjustments.
+some overpowered effect toggle i dunno

v0.1 - [This is a demo]
--
Initial test release.

