Skip to content

Instantly share code, notes, and snippets.

@bakapear
Created April 17, 2021 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakapear/9fb780950ef34a08604b3d88d8f922b8 to your computer and use it in GitHub Desktop.
Save bakapear/9fb780950ef34a08604b3d88d8f922b8 to your computer and use it in GitHub Desktop.
// AutoSplitter for LaserCatJump https://dopamine-overdose.itch.io/lasercatjump
//
// levelIdentifier values: (couldnt find a better one sorry)
// Start: 49, Audio: 47, Credits: 36, Select: 53
// 1: 99, 2: 113, 3: 92, 4: 107, 5: 138, 6: 118
state("LaserCatJump")
{
byte levelIdentifier: "UnityPlayer.dll", 0x013274F8, 0x4E8;
}
init
{
vars.levels = new byte[] {49, 99, 113, 92, 107, 138, 118, 36};
}
start
{
if(current.levelIdentifier == vars.levels[1]) return true;
}
split
{
if(Array.IndexOf(vars.levels, current.levelIdentifier) > Array.IndexOf(vars.levels, old.levelIdentifier)) return true;
}
reset
{
if(current.levelIdentifier == vars.levels[0]) return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment