12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- state("iw6sp64_ship")
- {
- string50 CurrentLevelName : 0x5816540;
- int Loader : 0x6024EA0;
- int Loader2 : 0x774853C;
- }
- startup
- {
- settings.Add("missions", true, "Missions");
-
- vars.missions = new Dictionary<string,string>
- {
- {"deer_hunt","Brave New World"},
- {"nml","No Man's Land"},
- {"enemyhq","Struck Down"},
- {"homecoming","Homecoming"},
- {"flood","Legends Never Die"},
- {"cornered","Federation Day"},
- {"oilrocks","Birds of Prey"},
- {"jungle_ghosts","The Hunted"},
- {"clockwork","Clockwork"},
- {"black_ice","Atlas Falls"},
- {"ship_graveyard","Into the Deep"},
- {"factory","End of the Line"},
- {"las_vegas","Sin City"},
- {"carrier","All or Nothing"},
- {"satfarm","Severed Ties"},
- {"loki","Loki"},
- {"skyway","The Ghost Killer"},
- };
- foreach (var Tag in vars.missions)
- {
- settings.Add(Tag.Key, true, Tag.Value, "missions");
- };
- if (timer.CurrentTimingMethod == TimingMethod.RealTime) // stolen from dude simulator 3, basically asks the runner to set their livesplit to game time
- {
- 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? This will make verification easier",
- "LiveSplit | Call of Duty: Ghosts",
- MessageBoxButtons.YesNo,MessageBoxIcon.Question
- );
-
- if (timingMessage == DialogResult.Yes)
- {
- timer.CurrentTimingMethod = TimingMethod.GameTime;
- }
- }
- }
- start
- {
- return ((current.CurrentLevelName == "prologue") && (current.Loader2 == 0));
- }
- split
- {
- return ((current.CurrentLevelName != old.CurrentLevelName) && (settings[current.CurrentLevelName]));
- }
- isLoading
- {
- return ((current.Loader == 0) && (current.Loader2 == 1));
- }
- reset
- {
- return (current.CurrentLevelName == null);
- }
|