state("UE4Game-Win64-Shipping") { int level_thingy : 0x2A20E78; bool main_menu : 0x2A20FD8; } init { refreshRate = 250; vars.lastSplit = 0; vars.lastMain = 0; vars.justStarted = 0; } update { if(!current.main_menu && old.main_menu) { vars.lastMain = 0; } vars.lastSplit++; vars.lastMain++; vars.justStarted++; } start { if(!current.main_menu && old.main_menu) { vars.justStarted = 0; return true; } return false; } split { if(current.level_thingy != old.level_thingy && vars.lastSplit > 125 && vars.justStarted > 125) { vars.lastSplit = 0; return true; } return false; } reset { return current.main_menu && !old.main_menu; }