-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,hh_get_status].cs2
69 lines (69 loc) · 1.58 KB
/
[proc,hh_get_status].cs2
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
// 1479
[proc,hh_get_status](loc $loc0, int $flags1, int $flags2, int $flags3)(int, int)
def_coord $coord4 = enum(loc, coord, enum_1368, $loc0);
if ($coord4 = null) {
return(0, 0);
}
def_int $x5 = coordx($coord4);
def_int $z6 = coordz($coord4);
def_int $flags7 = 0;
if ($x5 = 1) {
$flags7 = %var1365;
} else if ($x5 = 2) {
$flags7 = %var1366;
} else if ($x5 = 3) {
$flags7 = %var1367;
} else if ($x5 = 4) {
$flags7 = %var1368;
} else if ($x5 = 5) {
$flags7 = %var1369;
} else if ($x5 = 6) {
$flags7 = %var2202;
} else {
return(0, 0);
}
if (testbit($flags7, $z6) = ^false) {
return(0, 0);
}
def_coord $coord8 = enum(loc, coord, enum_1525, $loc0);
if ($coord8 ! null) {
if (inv_getobj(inv_576, coordx($coord8)) ! null) {
return(1, 1);
}
if ($loc0 = inconspicuous_rocks_elite_multi_29032) {
if (testbit($flags2, 31) = ^true) {
return(1, 1);
}
} else if ($loc0 = inconspicuous_hole_elite_multi_29033) {
if (testbit($flags3, 0) = ^true) {
return(1, 1);
}
} else if ($loc0 = inconspicuous_bush_master_multi_29060 & testbit($flags3, 11) = ^true) {
return(1, 1);
}
return(1, 0);
}
$coord8 = enum(loc, coord, enum_1440, $loc0);
if ($coord8 ! null) {
$x5, $z6 = coordx($coord8), coordz($coord8);
if ($x5 = 1) {
$flags7 = $flags1;
} else if ($x5 = 2) {
$flags7 = $flags2;
} else if ($x5 = 3) {
$flags7 = $flags3;
} else {
return(0, 0);
}
if (testbit($flags7, $z6) = ^true) {
return(1, 1);
}
return(1, 0);
}
if ($loc0 = inconspicuous_crate_master_multi_29057) {
if (testbit($flags3, 10) = ^true | testbit($flags3, 12) = ^true) {
return(1, 1);
}
return(1, 0);
}
return(0, 0);