Last active
May 22, 2025 19:18
-
-
Save wRadion/c63511f9084137a249048f611fe3e8bb to your computer and use it in GitHub Desktop.
Shoot For The Stars autosplitter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Shoot for the Stars autosplitter | |
* by wRadion and Meta | |
*/ | |
state("ShootForTheStars") | |
{ | |
float X : "ShootForTheStars.exe", 0x05CB5540, 0x310, 0xDC0, 0x0, 0x1D0, 0x38, 0x18; | |
float Y : "ShootForTheStars.exe", 0x05CB5540, 0x310, 0xDC0, 0x0, 0x1D0, 0x38, 0x1C; | |
bool newRun : "ShootForTheStars.exe", 0x05CB5540, 0x310, 0x188, 0x10, 0x68, 0x28, 0xE0; | |
bool canMove : "ShootForTheStars.exe", 0x05CB5540, 0x310, 0x188, 0x10, 0x68, 0x28, 0xF8; | |
} | |
startup | |
{ | |
vars.endY = -74233.0f; | |
vars.splits = new Dictionary<string, float>() { | |
{ "Ambulance", -7125.0f }, | |
{ "Subway", -24227.0f }, | |
{ "Plane 1", -36864.0f }, | |
{ "Plane 2", -45108.0f }, | |
{ "Building", -52675.0f }, | |
{ "Pimpin Pastries", -64525.0f } | |
}; | |
vars.reachedSplits = new List<string>(); | |
} | |
start | |
{ | |
return !old.canMove && current.canMove; | |
} | |
reset | |
{ | |
if (!old.newRun && current.newRun) | |
{ | |
vars.reachedSplits.Clear(); | |
return true; | |
} | |
} | |
split | |
{ | |
if (current.Y < vars.endY) | |
return true; | |
foreach (var kv in vars.splits) | |
{ | |
if (vars.reachedSplits.Contains(kv.Key)) | |
continue; | |
if (current.Y < kv.Value) | |
{ | |
vars.reachedSplits.Add(kv.Key); | |
return true; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment