Sonic Riders/Memory Editing/Functions
From Sonic Retro
Revision as of 15:15, 14 July 2018 by Sewer56lol (talk | contribs) (Created page with "== Disclaimer == The following structures are illustrated through the use of C# code in order to simplify maintenance of this SCHG. Exported from the following Github projec...")
Revision as of 15:15, 14 July 2018 by Sewer56lol (talk | contribs) (Created page with "== Disclaimer == The following structures are illustrated through the use of C# code in order to simplify maintenance of this SCHG. Exported from the following Github projec...")
Disclaimer
The following structures are illustrated through the use of C# code in order to simplify maintenance of this SCHG.
Exported from the following Github project: https://github.com/sewer56lol/Sewer56.SonicRiders and mirrored by hand.
Hoverboarding Speed Formulae
/// <summary> /// Calculates the speed of an individual extreme gear for a specific formation. /// </summary> /// <param name="extremeGear">The extreme gear for which to calculate the gear speed for (Enumerable).</param> /// <param name="formationType">The type of the character to calculate the gear speed for (Speed, Fly, or Power).</param> public static float GetGearSpeed(ExtremeGear* extremeGear, FormationTypes formationType) { float characterTypeSpeedMultiplier = Players.CharacterTypeStats[(int)formationType].MaxSpeedMultiplier; float speed = 216 * (characterTypeSpeedMultiplier + extremeGear->SpeedHandlingMultiplier); // Apply Speed Multiplier return speed * (extremeGear->SpeedMultiplier + 1); }