Actions

SCHG

Difference between revisions of "Sonic Riders/Memory Editing/Functions"

From Sonic Retro

m (Append Template)
m (Text replacement - "== (.*) ==" to "==$1==")
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{SCHG Riders}}
 
{{SCHG Riders}}
== Disclaimer ==
 
  
The following structures are illustrated through the use of C# code in order to simplify maintenance of this SCHG.
+
==Disclaimer==
  
Exported from the following Github project: https://github.com/sewer56lol/Sewer56.SonicRiders and mirrored by hand.
+
This page is empty until any functions are 100% confirmed.
 
+
Thus is currently a stub.
=== Hoverboarding Speed Formulae ===
 
 
 
<pre>
 
 
 
/// <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);
 
}
 
</pre>
 

Latest revision as of 16:27, 24 March 2020

SCHG: Sonic Riders
Main Article
Memory Editing & Functions

Variables
Structures
Functions
Enumerables
Mathematical Formulae

Files
File Structure
Sound Editing
Voices

Disclaimer

This page is empty until any functions are 100% confirmed. Thus is currently a stub.