Created
April 6, 2025 03:08
-
-
Save wRadion/8d95d4b5a61caf63c423597d54295f2f to your computer and use it in GitHub Desktop.
Blood Typers autosplitter & load remover
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
| /* | |
| * Blood Typers autosplitter | |
| * by wRadion | |
| */ | |
| state("Blood Typers") { | |
| } | |
| startup { | |
| Assembly.Load(File.ReadAllBytes("Components/asl-help")).CreateInstance("Unity"); | |
| vars.Helper.GameName = "Blood Typers"; | |
| vars.Helper.LoadSceneManager = true; | |
| } | |
| init { | |
| vars.Helper.TryLoad = (Func<dynamic, bool>) (mono => { | |
| vars.Helper["TimeSessionStart"] = mono.Make<float>("_MainGame", "Inst", "projSceneManager", "playTimeSessionStart"); | |
| vars.Helper["TimeAtPopulate"] = mono.Make<float>("_MainGame", "Inst", "scoreBoardPanel", "timeAtPopulate"); | |
| return true; | |
| }); | |
| vars.loading = false; | |
| } | |
| start { | |
| // Level timer starts | |
| if (current.TimeSessionStart != old.TimeSessionStart) { | |
| vars.loading = false; | |
| return true; | |
| } | |
| } | |
| split { | |
| // Level timer ends | |
| if (current.TimeAtPopulate != old.TimeAtPopulate) { | |
| vars.loading = true; | |
| return true; | |
| } | |
| } | |
| isLoading | |
| { | |
| // Level timer starts | |
| if (current.TimeSessionStart != old.TimeSessionStart) { | |
| vars.loading = false; | |
| return false; | |
| } | |
| return vars.loading; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment