-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,fairyrings_rotate].cs2
47 lines (47 loc) · 1.18 KB
/
[clientscript,fairyrings_rotate].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
// 398
[clientscript,fairyrings_rotate](int $int0, component $component1, component $component2, component $component3, component $component4, component $component5)
def_int $int6 = 0;
if ($int0 = 1) {
$int6 = calc(2048 - %varbit3985 * 512);
} else if ($int0 = 2) {
$int6 = calc(2048 - %varbit3986 * 512);
} else if ($int0 = 3) {
$int6 = calc(2048 - %varbit3987 * 512);
} else {
return;
}
def_int $int7 = if_getmodelangle_z($component1);
if ($int7 < 0 | $int7 >= 2048) {
$int7 = 0;
}
def_int $int8 = 0;
if ($int7 ! $int6) {
if ($int6 < $int7) {
$int6 = calc($int6 + 2048);
}
$int8 = calc($int6 - $int7);
if ($int8 < 1024) {
if ($int8 > 10) {
$int7 = calc($int7 + 10);
} else {
$int7 = $int6;
}
} else if ($int8 < 2038) {
$int7 = calc($int7 + 2038);
} else {
$int7 = $int6;
}
}
$int7 = calc($int7 % 2048);
if ($int7 < 0) {
if ($int7 < -2048) {
$int7 = 0;
} else {
$int7 = calc($int7 + 2048);
}
}
if_setmodelangle(0, 0, 0, 0, $int7, 1000, $component1);
if_setmodelangle(0, 0, 0, 0, $int7, 1000, $component2);
if_setmodelangle(0, 0, 0, 0, $int7, 1000, $component3);
if_setmodelangle(0, 0, 0, 0, $int7, 1000, $component4);
if_setmodelangle(0, 0, 0, 0, $int7, 1000, $component5);