-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCOD2AS.asl
82 lines (73 loc) · 1.82 KB
/
COD2AS.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
state("CoD2SP_s")
{
string98 map : 0xCFEBD0;
int loading1 : 0x415010;
}
startup
{
settings.Add("missions", true, "Missions");
vars.missions = new Dictionary<string,string> {
{"demolition", "Demolition"},
{"tunkhunt", "Repairing the Wire"},
{"trainyard", "The Pipeline"},
{"downtown_assault", "Downtown Assault"},
{"cityhall", "City Hall"},
{"downtown_sniper", "Comrade Sniper"},
{"decoytrenches", "The Diversionary Raid"},
{"decoytown", "Holding The Line"},
{"elalamein", "Operation Supercharge"},
{"eldaba", "The End of the Beginning"},
{"libya", "Crusader Charge"},
{"88ridge", "88 Ridge"},
{"toujane_ride", "Outnumbered and Outgunned"},
{"toujane", "Retaking Lost Ground"},
{"matmata", "Assault on Matmata"},
{"duhoc_assault", "The Battle of Pointe du Hoc"},
{"duhoc_defend", "Defending the Pointe"},
{"silotown_assault", "The Silo"},
{"beltot", " Prisoners of War"},
{"crossroads", "The Crossroads"},
{"newvillers", "The Tiger"},
{"breakout", "The Brigade Box"},
{"bergstein", "Approaching Hill 400"},
{"hill400_assault", "Rangers Lead the Way"},
{"hill400_defend", " The Battle for Hill 400"},
{"rhine", " Crossing the Rhine"},
};
foreach (var Tag in vars.missions)
{
settings.Add(Tag.Key, true, Tag.Value, "missions");
};
}
init
{
vars.doneMaps = new List<string>();
}
start
{
if ((current.map == "moscow") && (old.map == "movie_eastern"))
{
vars.doneMaps.Clear();
return true;
}
}
split
{
if (current.map != old.map)
{
if (settings[current.map])
{
vars.doneMaps.Add(old.map);
return true;
}
}
return (current.map == "credits");
}
reset
{
return ((current.map == "movie_eastern") && (old.map != "movie_eastern"));
}
isLoading
{
return (current.loading1 == 0);
}