12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- state("iw7_ship")
- {
- string100 CurrentLevelName : 0x21E5F3C;
- byte Loader : 0x5D65B77;
- }
- startup
- {
- settings.Add("missions", true, "Missions");
- vars.missions = new Dictionary<string,string>
- {
- {"europa", "Rising Threat"},
- {"phparade", "Black Sky: Parade"},
- {"phstreets", "Black Sky: Under Attack"},
- {"phspace", "Black Sky: Take to the Sky"},
- {"shipcrib_moon", "Retribution: Aftermath"},
- {"moon_port", "Operation Port Armor: Civilian Terminal"},
- {"moonjackal", "Operation Port Armor: Shipping Storage"},
- {"sa_moon", "Operation Port Armor: Boarding Party"},
- {"shipcrib_europa", "Retribution: Back in the Fight"},
- {"sa_assassination", "Operation Deep Execute"},
- {"shipcrib_titan", "Retribution: Doing What Needs to be Done"},
- {"titan", "Operation Burn Water: Refinery"},
- {"titanjackal", "Operation Burn Water: Fight or Flight"},
- {"shipcrib_rogue", "Retribution: Rescued"},
- {"rogue", "Operation Dark Quarry"},
- {"shipcrib_prisoner", "Retribution: Cost of Victory"},
- {"prisoner", "Operation Black Flag: Prisoner Escort"},
- {"heist", "Operation Black Flag: Trap is Sprung"},
- {"heistspace", "Operation Blood Storm: Trojan House"},
- {"marscrash", "Operation Blood Storm: Crash Landing"},
- {"marscrib", "Operation Blood Storm: Regroup"},
- {"marsbase", "Operation Blood Storm: All or Nothing"},
- {"yard", "Operation Blood Storm: Assault the Shipyard"},
- };
- 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: Inifinite Warfare",
- MessageBoxButtons.YesNo,MessageBoxIcon.Question
- );
-
- if (timingMessage == DialogResult.Yes)
- {
- timer.CurrentTimingMethod = TimingMethod.GameTime;
- }
- }
- }
- init
- {
- vars.doneMaps = new List<string>(); // Like most newer cods you can enter old levels while still playing the game, so gotta have doneMaps
- }
- onStart
- {
- vars.doneMaps.Clear();
- }
- split
- {
- if ((current.CurrentLevelName != old.CurrentLevelName) && (settings[current.CurrentLevelName]) && (!vars.doneMaps.Contains(old.CurrentLevelName)))
- {
- vars.doneMaps.Add(old.CurrentLevelName);
- return true;
- }
- }
- isLoading
- {
- return (current.Loader == 0);
- }
|