-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathLiveSplit.SunsetOverdrive.asl
68 lines (58 loc) · 1.58 KB
/
LiveSplit.SunsetOverdrive.asl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
state("Sunset", "Steam")
{
bool Loads: 0x42ACC48;
int Starter: 0x45AA825;
int MissionSuccess: 0x3C199B4;
}
state("Sunset", "Windows Store")
{
bool Loads: 0x45BADF0;
int Starter: 0x3EF82D8;
int MissionSuccess: 0x3EA2764;
}
init
{
switch(modules.First().ModuleMemorySize)
{
case 80991232: version = "Steam"; break;
case 83477504: version = "Windows Store"; break;
default: version = "Unknown"; break;
}
}
startup
{
settings.Add("SO", true, "Sunset Overdrive");
settings.Add("MISSIONS", true, "Split on each Mission Success Screen", "SO");
//settings.Add("END", true, "Split when the Fizzco Building is defeated", "SO");
if (timer.CurrentTimingMethod == TimingMethod.RealTime)
{
var timingMessage = MessageBox.Show (
"This game uses Time without Loads (Game Time) as the main timing method.\n"+
"LiveSplit is currently set to show Real Time (RTA).\n"+
"Would you like to set the timing method to Game Time?",
"LiveSplit | Sunset Overdrive",
MessageBoxButtons.YesNo, MessageBoxIcon.Question
);
if (timingMessage == DialogResult.Yes)
timer.CurrentTimingMethod = TimingMethod.GameTime;
}
}
isLoading
{
return current.Loads;
}
start
{
return current.Starter == 2 && !current.Loads;
}
split
{
if(current.MissionSuccess == 3 && old.MissionSuccess != 3)
{
return settings["MISSIONS"];
}
}
exit
{
timer.IsGameTimePaused = true;
}